/*
Theme Name: Ambassadors for Christ Church
Theme URI: https://afcchurchmaesot.org
Author: Ambassadors for Christ Church
Author URI: https://afcchurchmaesot.org
Description: A professional, trust-focused WordPress theme built for Ambassadors for Christ Church — the humanitarian arm of the Christian Outreach Centre Foundation Thailand. Designed for donations, community engagement, and transparent humanitarian work.
Version: 5.4.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afc-theme
Tags: charity, nonprofit, humanitarian, donations, responsive, custom-logo, custom-menu, featured-images

Ambassadors for Christ Church Theme — Built for impact. Designed for trust.
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* =========================================================
       AFC DESIGN TOKENS v2
       主色取自 AFC Logo 的十字与地图（#D80054 品牌红），
       为满足 WCAG AA 在正文尺寸下加深为 #A8003F。
       背景走温暖象牙白，深色只用于导航、深色带与页脚。
       所有前景/背景组合已验算对比度（见下方注释的比值）。
       ========================================================= */

    /* ---- 语义色（唯一来源） ---- */
    --background:      #FBF9F5;   /* 温暖象牙白 */
    --surface:         #FFFFFF;   /* 卡片/面板 */
    --surface-wash:    #F4EEE7;   /* 暖沙色分节底 */
    --surface-deep:    #2A2523;   /* 暖炭灰深色带（白字 15.14:1）。
                                     原为深梅红 #3A1620，大面积铺开偏艳，
                                     与品牌红撞色；换成中性暖炭后红色才跳得出来。 */
    --text-primary:    #241A1D;   /* 16.1:1 on ivory */
    --text-secondary:  #5C4A50;   /*  7.8:1 on ivory */
    --text-on-dark:    #F7F1EC;
    --border:          rgba(36, 26, 29, 0.14);
    --border-strong:   rgba(36, 26, 29, 0.22);
    --primary:         #A8003F;   /*  7.3:1 on ivory —— 正文尺寸可用 */
    --primary-hover:   #8A1038;   /*  9.0:1 */
    --brand:           #C4004E;   /*  5.8:1 —— Logo 锁定与大字强调 */
    --accent:          #B87514;   /* 暖琥珀：仅用于 ≥24px 大字、图标、边框 */
    --accent-text:     #8F5A0C;   /* 琥珀的正文安全版本 */
    --success:         #1F7A4D;   /*  5.1:1 */
    --error:           #B3261E;   /*  6.2:1 */
    --focus-ring:      #C4004E;

    /* ---- 兼容旧变量名（组件逐步迁移，值已指向新体系） ---- */
    --color-primary: var(--primary);
    --color-primary-dark: var(--primary-hover);
    --color-primary-light: #C4004E;
    --color-secondary: var(--accent);
    --color-secondary-dark: var(--accent-text);
    --color-secondary-light: #D89A3A;
    --color-white: var(--surface);
    --color-off-white: var(--background);
    --color-light-gray: #E8E0D8;
    --color-mid-gray: #6B5B60;   /* 4.5:1 起步：原 #7A6A6F 在白底上仅 4.4:1，不达 AA */
    --color-dark-gray: #3B2B30;
    --color-text: var(--text-primary);
    --color-text-light: var(--text-secondary);
    --color-success: var(--success);
    --color-danger: var(--error);
    --color-ink: var(--surface-deep);
    --color-accent-warm: #C2632B;
    --section-wash: var(--surface-wash);
    --section-panel: #FAF6F1;

    /* ---- 字体 ----
       标题用 Fraunces（人文衬线，温暖不陈旧）；正文 Inter；
       缅文 Noto Sans Myanmar，泰文 Noto Sans Thai —— 均自托管 WOFF2，
       并通过 unicode-range 拆分，英文首屏不会因多语言字体变慢。 */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mm: 'Noto Sans Myanmar', 'Padauk', 'Myanmar Text', sans-serif;
    --font-th: 'Noto Sans Thai', 'Sarabun', 'Thonburi', sans-serif;

    /* ---- 布局宽度 ---- */
    --container-max: 1200px;
    --container-narrow: 760px;   /* ≈65–75 字符行宽 */
    --container-wide: 1360px;
    --measure: 68ch;             /* 正文最佳行宽 */
    --header-height: 76px;
    --header-height-scrolled: 62px;
    --bottomnav-height: 62px;

    /* ---- 阴影：四档，全部克制（层级靠边框+背景+留白建立） ---- */
    --shadow-sm: 0 1px 2px rgba(58, 22, 32, 0.05);
    --shadow-md: 0 2px 8px rgba(58, 22, 32, 0.07);
    --shadow-lg: 0 8px 24px rgba(58, 22, 32, 0.09);
    --shadow-xl: 0 16px 40px rgba(58, 22, 32, 0.12);
    --shadow-card: var(--shadow-sm);
    --shadow-card-hover: 0 6px 18px rgba(58, 22, 32, 0.10);

    --border-card: 1px solid var(--border);
    --border-card-strong: 1px solid var(--border-strong);
    --border-hair: 1px solid rgba(36, 26, 29, 0.10);

    /* ---- 圆角：三档 + 药丸（全站不得超过三种同屏出现） ---- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 18px;
    --radius-pill: 999px;
    --radius-img: 12px;

    /* ---- 间距体系（8pt 基准，全站唯一来源） ---- */
    --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
    --sp-9: 96px;  --sp-10: 120px;

    /* ---- 区块纵向节奏（桌面大、手机收敛） ---- */
    --section-y: clamp(56px, 7vw, 104px);
    --section-y-sm: clamp(40px, 5vw, 72px);

    /* ---- 控件尺寸（触控目标 ≥44px） ---- */
    --btn-h: 48px;
    --btn-h-sm: 40px;
    --btn-radius: var(--radius-pill);
    --tap-min: 44px;

    /* ---- 字号阶（响应式，避免手机上标题过大） ---- */
    --fs-hero: clamp(2.1rem, 1.3rem + 3.3vw, 3.75rem);
    --fs-h2:   clamp(1.65rem, 1.28rem + 1.6vw, 2.5rem);
    --fs-h3:   clamp(1.12rem, 1.03rem + 0.45vw, 1.4rem);
    --fs-lead: clamp(1.04rem, 0.99rem + 0.32vw, 1.2rem);
    --fs-body: 1rem;
    --fs-sm:   0.875rem;
    --fs-xs:   0.8125rem;
    --lh-body: 1.7;
    --lh-tight: 1.18;

    /* ---- 图片比例（全站统一，杜绝混乱裁切） ---- */
    --ratio-hero: 16 / 9;
    --ratio-wide: 3 / 2;
    --ratio-square: 1 / 1;
    --ratio-portrait: 4 / 5;

    /* ---- 动效：克制，200–450ms ---- */
    --dur-fast: 180ms;
    --dur: 260ms;
    --dur-slow: 420ms;
    --transition: var(--dur) ease;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

/* 大标题用衬线 display 字体；h3 以下保持无衬线（小字号衬线易发虚） */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.18;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 4.25rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.btn-donate {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-donate:hover {
    background: linear-gradient(135deg, var(--color-secondary-dark), #a07d22);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Desktop: 3-column flex — [Logo] [Nav center] [Donate right] */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding img {
    height: 50px;
    width: auto;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
}

.site-branding .site-title span {
    color: var(--color-secondary);
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Navigation — fills center space on desktop */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-secondary);
    background-color: rgba(212, 175, 55, 0.1);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Desktop Donate button — right side of header */
.nav-donate-desktop {
    flex-shrink: 0;
}

.nav-donate-desktop .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Donate button — hidden on desktop, shown inside mobile menu */
.nav-donate-mobile {
    display: none;
}

/* Mobile Menu Toggle — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    --hero-color-start: var(--color-primary);
    --hero-color-end: #072a33;
    --hero-accent: var(--color-secondary);
    --hero-overlay-opacity: 0.72;
    --hero-bg-position: center center;
    --hero-mobile-bg-position: center center;
    --hero-bg-size: cover;
    --hero-mobile-bg-size: cover;
    --hero-bg-zoom: 1;
    --hero-mobile-bg-zoom: 1;
    --hero-current-bg-position: var(--hero-bg-position);
    --hero-current-bg-size: var(--hero-bg-size);
    --hero-current-bg-zoom: var(--hero-bg-zoom);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-color-start) 0%, var(--color-primary-dark) 52%, var(--hero-color-end) 100%);
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-single,
.hero-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image-layer,
.hero-bg-slide {
    background-position: var(--hero-current-bg-position);
    background-repeat: no-repeat;
    background-size: var(--hero-current-bg-size);
    inset: 0;
    position: absolute;
    transform: scale(var(--hero-current-bg-zoom));
    transform-origin: center center;
}

.hero-bg-slide {
    animation: afcHeroSlideshow 18s infinite;
    opacity: 0;
}

.hero-bg-slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-bg-slide:nth-child(3) {
    animation-delay: 12s;
}

@keyframes afcHeroSlideshow {
    0%, 28% {
        opacity: 1;
        transform: scale(var(--hero-current-bg-zoom));
    }
    34%, 100% {
        opacity: 0;
        transform: scale(calc(var(--hero-current-bg-zoom) + 0.06));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide {
        animation: none;
        opacity: 1;
        transform: scale(var(--hero-current-bg-zoom));
    }

    .hero-bg-slide:not(:first-child) {
        display: none;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(5, 34, 41, var(--hero-overlay-opacity)), rgba(5, 34, 41, 0.5)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.055)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--color-white), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--hero-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.38);
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--hero-accent);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--hero-accent);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 2.4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ============================================
   MISSION HIGHLIGHTS
   ============================================ */

.mission-highlights-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%),
        repeating-linear-gradient(135deg, rgba(15, 76, 92, 0.04) 0 1px, transparent 1px 16px);
    border-bottom: var(--border-card);
    border-top: 1px solid rgba(15, 76, 92, 0.08);
    overflow: hidden;
    padding: 3.25rem 0 3.5rem;
    position: relative;
}

.mission-highlights-header {
    margin: 0 auto 1.5rem;
    max-width: 760px;
    text-align: center;
}

.mission-highlights-header h2 {
    font-size: 1.85rem;
    margin-bottom: 0.6rem;
}

.mission-highlights-header p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin: 0;
}

.mission-highlights-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mission-highlight-card {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    display: grid;
    grid-template-rows: 92px minmax(0, 1fr);
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

a.mission-highlight-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 18px 42px rgba(15, 76, 92, 0.13);
    color: var(--color-text);
    transform: translateY(-2px);
}

.mission-highlight-art {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 76, 92, 0.92), rgba(8, 43, 51, 0.92)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 14px);
    display: flex;
    justify-content: center;
    min-height: 92px;
    position: relative;
}

.mission-highlight-art::before,
.mission-highlight-art::after {
    border: 1px solid rgba(255,255,255,0.2);
    content: '';
    position: absolute;
    transform: rotate(12deg);
}

.mission-highlight-art::before {
    height: 58px;
    left: 18px;
    top: 18px;
    width: 58px;
}

.mission-highlight-art::after {
    bottom: 16px;
    height: 34px;
    right: 24px;
    width: 34px;
}

.mission-highlight-card-2 .mission-highlight-art {
    background:
        linear-gradient(135deg, #D4AF37, #8A6A12),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 14px);
}

.mission-highlight-card-3 .mission-highlight-art {
    background:
        linear-gradient(135deg, #2F7A68, #0F4C5C),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 2px, transparent 2px 14px);
}

.mission-highlight-card-4 .mission-highlight-art {
    background:
        linear-gradient(135deg, #4C6B8A, #0F4C5C),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 2px, transparent 2px 14px);
}

.mission-highlight-icon {
    align-items: center;
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
    color: var(--color-primary);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    position: relative;
    width: 52px;
    z-index: 1;
}

.mission-highlight-icon svg {
    height: 24px;
    width: 24px;
}

.mission-highlight-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.95rem;
}

.mission-highlight-copy strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.25;
}

.mission-highlight-copy span {
    color: var(--color-text-light);
    display: -webkit-box;
    font-size: 0.9rem;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ============================================
   CORE WORK CARDS
   ============================================ */

.core-work-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8f7 54%, #ffffff 100%);
    border-bottom: var(--border-card);
    border-top: var(--border-card);
    padding: 3.25rem 0 3.75rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.45rem 1.2rem;
    text-align: center;
    transition: all var(--transition);
    border: var(--border-card-strong);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.work-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: rgba(212, 175, 55, 0.55);
}

.work-card:hover::before {
    transform: scaleX(1);
}

.work-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(15, 76, 92, 0.08), rgba(15, 76, 92, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: all var(--transition);
}

.work-card:hover .work-card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    transform: scale(1.06);
}

.work-card h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.work-card p {
    color: var(--color-text-light);
    display: -webkit-box;
    font-size: 0.84rem;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Bottom row centering for 5 cards in 3-column grid */
.work-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-grid-5 .work-card:nth-child(4),
.work-grid-5 .work-card:nth-child(5) {
    /* These will be on the second row */
}

/* Center the last two cards */
@supports (display: grid) {
    .work-grid-5 {
        justify-items: center;
    }
    .work-grid-5 .work-card {
        width: 100%;
    }
    .work-grid-centered {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.15rem;
    }
    .work-grid-centered .work-card {
        flex: 0 1 calc(33.333% - 0.84rem);
        min-width: 240px;
    }
}

/* ============================================
   IMPACT / PROJECTS SECTION
   ============================================ */

.impact-section {
    background:
        linear-gradient(90deg, rgba(15, 76, 92, 0.035) 0 1px, transparent 1px 100%),
        var(--section-panel);
    border-bottom: var(--border-card);
    border-top: 1px solid rgba(15, 76, 92, 0.08);
    padding: 3.75rem 0;
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem;
    align-items: center;
}

.impact-text h2 {
    margin-bottom: 1rem;
}

.impact-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.impact-text p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.impact-image-placeholder {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-xl);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

.impact-image {
    border: var(--border-card-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    height: 320px;
    overflow: hidden;
}
.impact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.projects-grid.cols-1 { grid-template-columns: 1fr; }
.projects-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.projects-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.project-card {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.project-card-image {
    border-bottom: var(--border-card);
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    padding: 1.15rem;
}

.project-card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.project-card-body p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
    background:
        linear-gradient(180deg, #f4f8f7 0%, #ffffff 100%);
    border-bottom: var(--border-card);
    border-top: var(--border-card);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: all var(--transition);
    border: var(--border-card-strong);
    position: relative;
}

.blog-card::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    content: '';
    height: 3px;
    left: 0;
    opacity: 0.9;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 175, 55, 0.55);
}

.blog-card-image {
    border-bottom: var(--border-card);
    height: 150px;
    background: var(--color-off-white);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-off-white), var(--color-light-gray));
    color: var(--color-mid-gray);
    font-size: 0.85rem;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.95rem;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--color-mid-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-body h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card-body h3 a {
    color: var(--color-primary);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-body h3 a:hover {
    color: var(--color-secondary);
}

.blog-card-excerpt {
    color: var(--color-text-light);
    display: -webkit-box;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card .read-more {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap var(--transition);
    margin-top: auto;
}

.blog-card .read-more:hover {
    gap: 0.625rem;
    color: var(--primary-hover);
}

/* Global Read More */
.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    /* 手指点得到：纯文字链接原本只有 22px 高 */
    padding: 6px 0;
    min-height: 32px;
    transition: gap var(--transition), color var(--transition);
}
.read-more:hover {
    gap: 0.625rem;
    color: var(--primary-hover);
}

/* ============================================
   GALLERY SLIDER
   ============================================ */

.gallery-section {
    padding: 3.75rem 0 4rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
    border-bottom: var(--border-card);
    border-top: var(--border-card);
    overflow: hidden;
}
.gallery-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}
.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}
.gallery-slide {
    flex: 0 0 calc(33.333% - 1rem);
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    height: 230px;
    position: relative;
}

.gallery-slide::after {
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: calc(var(--radius-md) - 2px);
    content: '';
    inset: 8px;
    pointer-events: none;
    position: absolute;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.gallery-slide img:hover {
    transform: scale(1.05);
}
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    color: var(--color-primary);
    transition: all var(--transition);
}
.gallery-prev:hover,
.gallery-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.widget-area {
    margin: 2rem 0;
}

.widget-area .widget {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
}

.widget-area .widget + .widget {
    margin-top: 1rem;
}

.widget-area .widget-title,
.widget-area .widget h2,
.widget-area .wp-block-heading {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.widget-area-blog-top {
    margin-top: 0;
}

.widget-area-blog-bottom,
.widget-area-gallery-bottom,
.widget-area-gallery-after {
    margin-bottom: 0;
}

.widget-area-gallery-before {
    margin-top: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   DONATE PAGE
   ============================================ */

.donate-hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 8rem 0 4rem;
    margin-top: var(--header-height);
    text-align: center;
}

.donate-hero h1 {
    color: var(--color-white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.donate-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.donate-content {
    padding: 4rem 0;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.donate-qr-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-light-gray);
}

.donate-qr-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.donate-qr-section .qr-subtitle {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.donate-qr-list,
.bank-account-list {
    display: grid;
    gap: 1.25rem;
}

.bank-account-list {
    margin-bottom: 2rem;
}

.donate-qr-card {
    background: rgba(15, 76, 92, 0.035);
    border: 1px solid rgba(15, 76, 92, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.qr-placeholder {
    width: 280px;
    height: 280px;
    margin: 0 auto 1.5rem;
    background: var(--color-off-white);
    border: 3px dashed var(--color-light-gray);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid-gray);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    line-height: 1.5;
}

.qr-open {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.qr-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}

.qr-note {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.qr-note p,
.bank-account-note p {
    margin-bottom: 0;
}

.donate-bank-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-light-gray);
}

.donate-bank-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-details {
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.bank-account-list .bank-details {
    margin-bottom: 0;
}

.bank-account-title {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.bank-detail-value {
    text-align: right;
    font-weight: 500;
    color: var(--color-text);
}

.bank-account-note {
    border-top: 1px solid var(--color-light-gray);
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.donate-instructions {
    background: rgba(15, 76, 92, 0.05);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.donate-instructions h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.donate-instructions p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.donate-help {
    margin-top: 1.5rem;
}

.donate-help h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.donate-trust {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.donate-trust-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--color-white);
}

.donate-trust h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.donate-trust p {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.donate-contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.donate-contact-link.whatsapp {
    background: #25d366;
    color: var(--color-white);
}

.donate-contact-link.whatsapp:hover {
    background: #1da851;
    color: var(--color-white);
    transform: translateY(-2px);
}

.donate-contact-link.email {
    background: var(--color-primary);
    color: var(--color-white);
}

.donate-contact-link.email:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.donate-contact-link.primary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.donate-contact-link.primary:hover {
    background: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.donate-contact-link.secondary {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.donate-contact-link.secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.qr-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
}

.qr-modal img {
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    max-height: 90%;
    max-width: 90%;
}


/* ============================================
   PAGE HEADERS (INNER PAGES)
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 6.25rem 0 3.25rem;
    margin-top: var(--header-height);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.45rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.page-header .breadcrumb {
    margin-top: 1.5rem;
    position: relative;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.page-header .breadcrumb a:hover {
    color: var(--color-secondary);
}

.page-header .breadcrumb span {
    color: rgba(255,255,255,0.4);
    margin: 0 0.5rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* 纵向留白由各区块自己负责（每块本来就带 52–100px），
   容器再加一层会在页首页尾各多出一条白边；页尾那条夹在深色 CTA
   与深色页脚中间，看着就是一道莫名其妙的白色断带。 */
.about-content {
    padding: 0;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.about-section p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.mission-vision-card {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border-left: 4px solid var(--color-secondary);
}

.mission-vision-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.mission-vision-card p {
    margin-bottom: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
}

.value-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   OUR WORK PAGE
   ============================================ */

.work-section {
    background: var(--section-panel);
    border-bottom: var(--border-card);
    padding: 3.75rem 0;
}

.work-section:last-child {
    border-bottom: none;
}

.work-section:nth-child(even) {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
}

.work-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.work-section:nth-child(even) .work-detail {
    direction: rtl;
}

.work-section:nth-child(even) .work-detail > * {
    direction: ltr;
}

.work-detail-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.work-detail-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.work-detail-content p {
    color: var(--color-text-light);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.work-detail-image {
    border: var(--border-card-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    height: 320px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    overflow: hidden;
}

.work-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.work-detail-image:hover img {
    transform: scale(1.035);
}

.work-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    min-height: 250px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    color: var(--color-mid-gray);
    font-size: 0.9rem;
}

.work-detail-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text-light);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.contact-method:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--color-text);
}

.contact-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
}

.contact-method-icon.email-icon {
    background: var(--color-primary);
}

.contact-method-icon.whatsapp-icon {
    background: #25d366;
}

.contact-method-icon.facebook-icon {
    background: #1877f2;
}

.contact-method-icon.phone-icon,
.contact-method-icon.custom-icon,
.contact-method-icon.footer-extra-icon {
    background: var(--color-secondary);
}

.contact-method-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-method-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-mid-gray);
}

.contact-form-section {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.contact-form-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* WPForms Integration Styles */
.contact-form-plugin .wpforms-container {
    width: 100%;
}

.contact-form-plugin .wpforms-form {
    width: 100%;
}

.contact-form-plugin .wpforms-form .wpforms-field {
    padding: 0.5rem 0;
}

.contact-form-plugin .wpforms-form .wpforms-field-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.contact-form-plugin .wpforms-form input[type="text"],
.contact-form-plugin .wpforms-form input[type="email"],
.contact-form-plugin .wpforms-form input[type="tel"],
.contact-form-plugin .wpforms-form input[type="url"],
.contact-form-plugin .wpforms-form textarea,
.contact-form-plugin .wpforms-form select {
    width: 100% !important;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition);
    color: var(--color-text);
    box-sizing: border-box;
}

.contact-form-plugin .wpforms-form input:focus,
.contact-form-plugin .wpforms-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form-plugin .wpforms-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-plugin .wpforms-form .wpforms-field-name-first,
.contact-form-plugin .wpforms-form .wpforms-field-name-last {
    width: 48% !important;
}

.contact-form-plugin .wpforms-form .wpforms-submit-container {
    padding-top: 0.5rem;
}

.contact-form-plugin .wpforms-form button[type="submit"],
.contact-form-plugin .wpforms-form .wpforms-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.contact-form-plugin .wpforms-form button[type="submit"]:hover,
.contact-form-plugin .wpforms-form .wpforms-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-form-plugin .wpforms-form .wpforms-field-sublabel {
    font-size: 0.8rem;
    color: var(--color-mid-gray);
}

/* ============================================
   BLOG ARCHIVE & SINGLE
   ============================================ */

.blog-archive {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f7 170px, #f4f8f7 100%);
    border-top: 1px solid rgba(15, 76, 92, 0.08);
    padding: 4rem 0;
}

.blog-archive .container {
    max-width: 1680px;
}

.blog-layout {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    gap: 1.75rem;
}

.blog-layout.cols-2 .blog-posts,
.blog-layout.cols-3 .blog-posts,
.blog-layout .blog-posts {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-posts {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-posts.has-single-post,
.blog-layout.cols-2 .blog-posts.has-single-post,
.blog-layout.cols-3 .blog-posts.has-single-post {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-posts.has-single-post .blog-post-card {
    max-width: 620px;
    width: 100%;
}

.blog-posts > .pagination {
    grid-column: 1 / -1;
}

.blog-posts.has-single-post > .pagination {
    align-self: stretch;
    width: 100%;
}

.blog-post-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: var(--border-card-strong);
    position: relative;
    transition: all var(--transition);
}

.blog-post-card::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.blog-post-card:hover {
    box-shadow: 0 22px 52px rgba(15, 76, 92, 0.16);
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-3px);
}

.blog-post-thumbnail {
    background: var(--color-light-gray);
    border-bottom: var(--border-card);
    height: 185px;
    overflow: hidden;
}

.blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem;
}

.blog-post-content h2 {
    font-size: 1.08rem;
    margin-bottom: 0.75rem;
}

.blog-post-content h2 a {
    color: var(--color-primary);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-post-content h2 a:hover {
    color: var(--color-secondary);
}

.blog-post-meta {
    font-size: 0.78rem;
    color: var(--color-mid-gray);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.afc-card-details {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.afc-card-location,
.afc-card-external {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    line-height: 1.4;
}

.afc-card-location {
    background: rgba(15, 76, 92, 0.08);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
}

.afc-card-location-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.afc-card-location-terms a,
.afc-location-term-list a {
    background: rgba(212, 175, 55, 0.14);
    border-radius: 999px;
    color: var(--color-secondary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 0.3rem 0.65rem;
}

.afc-card-location-terms a:hover,
.afc-location-term-list a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.afc-card-external {
    color: var(--color-secondary-dark);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
}

.afc-card-external:hover {
    color: var(--color-primary);
}

.afc-card-details svg,
.afc-content-details svg {
    flex-shrink: 0;
}

.afc-content-details {
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.afc-content-details-group h2 {
    align-items: center;
    display: inline-flex;
    font-size: 1.15rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.afc-content-details-group + .afc-content-details-group {
    border-top: 1px solid var(--color-light-gray);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.afc-content-details dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.afc-content-details dl div {
    border-bottom: 1px solid var(--color-light-gray);
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 150px minmax(0, 1fr);
    padding-bottom: 0.75rem;
}

.afc-content-details dl div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.afc-content-details dt {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

.afc-content-details dd {
    color: var(--color-text);
    margin: 0;
}

.afc-location-term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.afc-content-details-actions {
    margin-top: 1.25rem;
}

.afc-content-details-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.blog-post-excerpt {
    color: var(--color-text-light);
    display: -webkit-box;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-post-card .read-more {
    margin-top: auto;
}

.blog-post-card .afc-card-details {
    min-height: 2.25rem;
}

.blog-post-card .afc-card-details:empty {
    display: none;
}

/* Single Post */
.single-post-content {
    padding: 5rem 0;
}

.single-post-content .container {
    max-width: 1320px;
}

.single-post-layout {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.single-post-article {
    max-width: 750px;
    margin: 0 0 0 auto;
}

.single-post-meta {
    justify-content: center;
    margin-bottom: 2rem;
}

.single-featured-image {
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.single-post-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.single-post-article .entry-content h2 {
    margin-top: 2.5rem;
}

.single-post-article .entry-content h3 {
    margin-top: 2rem;
}

.single-post-article .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post-article .entry-content ul,
.single-post-article .entry-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-post-article .entry-content li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.single-post-article .entry-content ol li {
    list-style: decimal;
}

.single-post-article .entry-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.single-post-article .entry-content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding: 1.5rem 2rem;
    background: var(--color-off-white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.single-post-tags {
    border-top: 1px solid var(--color-light-gray);
    margin-top: 3rem;
    padding-top: 2rem;
}

.single-post-tags strong {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.single-post-nav {
    border-top: 1px solid var(--color-light-gray);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
}

.single-post-nav > div:last-child {
    text-align: right;
}

.single-post-nav span {
    color: var(--color-mid-gray);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.single-post-nav a {
    font-size: 0.95rem;
    font-weight: 600;
}

.single-post-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.single-sidebar-card,
.single-post-sidebar .widget {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.single-sidebar-card h3,
.single-post-sidebar .widget-title,
.single-post-sidebar .widget h2,
.single-post-sidebar .wp-block-heading {
    border-bottom: 2px solid var(--color-light-gray);
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
}

.single-sidebar-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.single-sidebar-search .search-form label {
    flex: 1;
    min-width: 0;
}

.single-sidebar-search .search-field {
    height: 42px;
    width: 100%;
}

.single-sidebar-search .search-submit {
    min-height: 42px;
    padding: 0.6rem 0.9rem;
}

.single-related-list li,
.single-post-sidebar .widget ul li {
    border-bottom: 1px solid var(--color-light-gray);
    list-style: none;
    padding: 0.5rem 0;
}

.single-related-list li:last-child,
.single-post-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.single-related-list a,
.single-post-sidebar .widget ul li a {
    color: var(--color-text);
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
}

.single-related-list a:hover,
.single-post-sidebar .widget ul li a:hover {
    color: var(--color-primary);
}

.single-related-list span {
    color: var(--color-mid-gray);
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.single-sidebar-cta p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.single-post-sidebar ul {
    margin: 0;
    padding: 0;
}

/* Comments */
.afc-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-light-gray);
}
.afc-comments-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}
.afc-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.afc-comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-light-gray);
}
.afc-comment-list .comment .comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.afc-comment-list .comment .comment-author img {
    border-radius: 50%;
}
.afc-comment-list .comment .comment-author .fn {
    font-weight: 600;
    color: var(--color-primary);
}
.afc-comment-list .comment .comment-metadata {
    font-size: 0.8rem;
    color: var(--color-mid-gray);
    margin-bottom: 0.75rem;
}
.afc-comment-list .comment .comment-content p {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}
.afc-comment-list .comment .reply a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}
.afc-comment-form-wrapper {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-light-gray);
}
.afc-comment-form-wrapper .comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}
.afc-comment-form-wrapper .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}
.afc-comment-form-wrapper .comment-form input[type="text"],
.afc-comment-form-wrapper .comment-form input[type="email"],
.afc-comment-form-wrapper .comment-form input[type="url"],
.afc-comment-form-wrapper .comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition);
    color: var(--color-text);
    margin-bottom: 1rem;
}
.afc-comment-form-wrapper .comment-form input:focus,
.afc-comment-form-wrapper .comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.afc-comment-form-wrapper .comment-form textarea {
    resize: vertical;
    min-height: 150px;
}
.afc-comment-form-wrapper .comment-form .form-submit {
    margin-top: 0.5rem;
}

/* ============================================
   FULL GALLERY
   ============================================ */

.gallery-archive-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
    border-top: 1px solid rgba(15, 76, 92, 0.08);
}

.gallery-archive-section .container {
    max-width: 1680px;
}

.gallery-album-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gallery-album-filter a {
    align-items: center;
    background: var(--color-white);
    border: var(--border-card);
    border-radius: 999px;
    color: var(--color-primary);
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 40px;
    padding: 0.55rem 1rem;
}

.gallery-album-filter a:hover,
.gallery-album-filter a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.gallery-archive-layout {
    align-items: start;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
}

.gallery-archive-grid {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-photo-card {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-photo-card::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.gallery-photo-card:hover {
    box-shadow: 0 18px 42px rgba(15, 76, 92, 0.14);
    transform: translateY(-3px);
}

.gallery-photo-image {
    aspect-ratio: 16 / 11;
    background: var(--color-off-white);
    border-bottom: var(--border-card);
    display: block;
    overflow: hidden;
}

.gallery-photo-image img {
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
    width: 100%;
}

.gallery-photo-card:hover .gallery-photo-image img {
    transform: scale(1.04);
}

.gallery-photo-body {
    padding: 0.95rem;
}

.gallery-photo-body h2 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.gallery-photo-body h2 a {
    color: var(--color-primary);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gallery-photo-albums {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-photo-albums a {
    background: rgba(15, 76, 92, 0.08);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
}

.gallery-empty {
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.single-gallery-photo .container {
    max-width: 1320px;
}

.single-gallery-layout {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.single-gallery-main {
    min-width: 0;
}

.single-gallery-image {
    border: var(--border-card-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
}

.single-gallery-image img {
    width: 100%;
}

.single-gallery-albums {
    justify-content: center;
    margin-bottom: 2rem;
}

.afc-gallery-recent-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
}

.afc-gallery-recent-list li {
    border-bottom: 1px solid var(--color-light-gray);
    list-style: none;
    padding-bottom: 0.85rem;
}

.afc-gallery-recent-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.afc-gallery-recent-list a {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 58px minmax(0, 1fr);
}

.afc-gallery-recent-thumb {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(15, 76, 92, 0.16);
    border-radius: var(--radius-sm);
    display: block;
    overflow: hidden;
}

.afc-gallery-recent-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.afc-gallery-recent-title {
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
}

.afc-gallery-recent-list a:hover .afc-gallery-recent-title {
    color: var(--color-primary);
}

.afc-gallery-current-details-widget .afc-content-details {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0;
}

.afc-gallery-current-details-widget .afc-content-details-group h2 {
    display: none;
}

.afc-gallery-current-details-widget .afc-content-details dl div {
    grid-template-columns: 1fr;
}

.afc-gallery-current-details-widget .afc-content-details-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar .widget {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.35rem;
    margin-bottom: 1.25rem;
}

.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .wp-block-heading {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.sidebar .widget ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.sidebar .widget ul li a:hover {
    color: var(--color-primary);
}

.sidebar .widget > :last-child {
    margin-bottom: 0;
}

.sidebar .widget_recent_comments,
.single-post-sidebar .widget_recent_comments,
.widget-area .widget_recent_comments,
.sidebar .wp-block-latest-comments,
.single-post-sidebar .wp-block-latest-comments,
.widget-area .wp-block-latest-comments {
    display: none;
}

.sidebar .widget:has(.wp-block-latest-comments),
.single-post-sidebar .widget:has(.wp-block-latest-comments),
.widget-area .widget:has(.wp-block-latest-comments) {
    display: none;
}

.sidebar .widget_recent_entries li:nth-child(n+4),
.single-post-sidebar .widget_recent_entries li:nth-child(n+4),
.widget-area .widget_recent_entries li:nth-child(n+4),
.sidebar .wp-block-latest-posts li:nth-child(n+4),
.single-post-sidebar .wp-block-latest-posts li:nth-child(n+4),
.widget-area .wp-block-latest-posts li:nth-child(n+4) {
    display: none;
}

.sidebar .search-form,
.sidebar .wp-block-search__inside-wrapper,
.single-post-sidebar .search-form,
.single-post-sidebar .wp-block-search__inside-wrapper,
.widget-area .search-form,
.widget-area .wp-block-search__inside-wrapper {
    display: flex;
    gap: 0.65rem;
}

.sidebar .search-form label,
.sidebar .wp-block-search__input,
.single-post-sidebar .search-form label,
.single-post-sidebar .wp-block-search__input,
.widget-area .search-form label,
.widget-area .wp-block-search__input {
    flex: 1;
    min-width: 0;
}

.sidebar .search-field,
.sidebar .wp-block-search__input,
.single-post-sidebar .search-field,
.single-post-sidebar .wp-block-search__input,
.widget-area .search-field,
.widget-area .wp-block-search__input {
    height: 42px;
    width: 100%;
}

.sidebar .search-submit,
.sidebar .wp-block-search__button,
.single-post-sidebar .search-submit,
.single-post-sidebar .wp-block-search__button,
.widget-area .search-submit,
.widget-area .wp-block-search__button {
    min-height: 42px;
    padding: 0.6rem 0.9rem;
}

.sidebar .wp-block-latest-posts__list li,
.sidebar .wp-block-latest-posts li {
    margin-bottom: 0;
}

.afc-sidebar-categories a {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.afc-sidebar-categories a span {
    background: rgba(15, 76, 92, 0.08);
    border-radius: 999px;
    color: var(--color-mid-gray);
    font-size: 0.8rem;
    min-width: 1.75rem;
    padding: 0.125rem 0.5rem;
    text-align: center;
}

.projects-layout {
    align-items: start;
    display: grid;
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1fr) 300px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--footer-bg, var(--color-primary-dark));
    color: var(--footer-text, rgba(255,255,255,0.8));
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 350px;
}

.footer-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-item {
    height: 50px; /* default; overridden per-logo by an inline height from the Customizer */
    width: auto;
    border-radius: var(--radius-sm);
    transition: transform var(--transition);
}

.footer-logo-link:hover .footer-logo-item {
    transform: scale(1.08);
}

.footer-brand img {
    height: 50px;
    margin-bottom: 0;
}

.footer-brand p a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-brand p a:hover {
    color: var(--color-secondary-light);
}

.footer-brand .footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-brand .footer-title span {
    color: var(--color-secondary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-column h3,
.footer-column h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

.footer-column ul li {
    margin-bottom: 0.625rem;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-column ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
    color: var(--color-secondary);
}

.footer-contact-icon {
    width: 24px;
    text-align: center;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: var(--color-secondary);
}

/* 制作方署名按钮。放在版权行右侧 —— 是署名不是宣传，所以做成描边小按钮：
   平时安静，鼠标移上去才亮起来，不跟捐款按钮抢注意力。 */
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition),
                background var(--transition), transform var(--transition);
}
.footer-bottom a.footer-credit:hover,
.footer-credit:focus-visible {
    color: var(--color-secondary-light, #e0c56a);
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.08);
}
.footer-credit:focus-visible {
    outline: 2px solid var(--color-secondary, #d4af37);
    outline-offset: 2px;
}
.footer-credit-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: transform var(--transition), opacity var(--transition);
}
.footer-credit:hover .footer-credit-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* 手机：版权与署名各占一行、居中，别挤成一条 */
@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   ABOUT — CERTIFICATIONS
   ============================================ */

.about-certifications {
    background: var(--color-off-white);
}

.about-certifications-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Flexible certificate grid — balanced rows for any count, uniform card heights
   regardless of portrait/landscape source images. */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin: 0 auto;
}

/* The max-width caps how many cards fit per row so rows stay balanced
   (set per certificate count in PHP). */
.cert-grid.cert-cols-1 { max-width: 460px; }
.cert-grid.cert-cols-2 { max-width: 760px; }
.cert-grid.cert-cols-3 { max-width: 1160px; }

.cert-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 0 1 340px;
    max-width: 360px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    overflow: hidden;
    cursor: zoom-in; /* click to view larger */
    transition: transform var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover, 0 22px 52px rgba(15, 76, 92, 0.16));
}

/* Every certificate sits in the same-shaped frame and is shown whole (never
   cropped), so a tall portrait scan no longer towers over landscape ones. */
.cert-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain;
    background: var(--color-white);
    border-radius: var(--radius-sm);
}

.cert-caption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light, #555);
}

/* Download protection: blocks right-click, drag, and long-press save.
   A transparent shield sits over the image so it cannot be saved directly.
   (Screenshots cannot be prevented.) */
.afc-protected img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Transparent shield catches right-click / long-press so the image can't be
   saved, while clicks still bubble to the card to open the lightbox. */
.afc-protected .cert-shield {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: transparent;
    cursor: zoom-in;
}

/* ----- Certificate lightbox (click to view larger) ----- */
.cert-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cert-lightbox.open {
    display: flex;
}

.cert-lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
}

.cert-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cert-lightbox-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cert-lightbox-shield {
    display: none;
}

/* When the clicked certificate is protected, protect the enlarged view too. */
.cert-lightbox.is-protected .cert-lightbox-img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.cert-lightbox.is-protected .cert-lightbox-shield {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: transparent;
    cursor: zoom-out;
}

@media (max-width: 768px) {
    .cert-grid,
    .cert-grid.cert-cols-1,
    .cert-grid.cert-cols-2,
    .cert-grid.cert-cols-3 {
        max-width: 460px;
        gap: 1.5rem;
    }
    .cert-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-off-white);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   404 PAGE
   ============================================ */

.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: var(--header-height);
}

.page-404 h1 {
    font-size: 6rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.page-404 h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.page-404 p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.search-results-section {
    padding: 5rem 0;
}

.search-result-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h2 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.search-result-item h2 a {
    color: var(--color-primary);
}

.search-result-item h2 a:hover {
    color: var(--color-secondary);
}

.search-result-item p {
    color: var(--color-text-light);
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */

.wp-block-image {
    margin: 2rem 0;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-mid-gray);
    text-align: center;
    padding: 0.5rem 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   Our Work - Editor Content
   ============================================ */

.work-content-area {
    padding: 4rem 0;
}
.work-content-area .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.work-content-area .entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.work-content-area .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}
.work-content-area .entry-content h3 {
    margin-top: 2rem;
}
.work-content-area .entry-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.work-content-area .entry-content img {
    border-radius: var(--radius-xl);
    margin: 2rem 0;
}
.work-content-area .entry-content ul,
.work-content-area .entry-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.work-content-area .entry-content li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}
.work-content-area .entry-content ol li {
    list-style: decimal;
}
.work-content-area .entry-content .wp-block-columns {
    gap: 3rem;
    margin: 3rem 0;
}
.work-content-area .entry-content .wp-block-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.work-content-area .entry-content .wp-block-image img {
    margin: 0;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #1da851;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
    width: 30px;
    height: 30px;
}
.whatsapp-float-tooltip {
    position: absolute;
    right: 72px;
    background: var(--color-dark-gray);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .work-grid,
    .work-grid-5,
    .work-grid-centered {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid-centered .work-card {
        flex: 0 1 calc(50% - 1rem);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-archive-layout,
    .single-gallery-layout {
        grid-template-columns: 1fr;
    }

    .gallery-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-article {
        margin: 0 auto;
    }

    .sidebar {
        position: static;
    }

    .gallery-archive-sidebar,
    .single-gallery-sidebar {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-archive-sidebar .widget,
    .single-gallery-sidebar .widget {
        margin-bottom: 0;
    }

    .single-post-sidebar {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }

    .single-sidebar-card,
    .single-post-sidebar .widget {
        margin-bottom: 0;
    }

    .impact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-section:nth-child(even) .work-detail {
        direction: ltr;
    }

    .donate-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* --- Header: mobile / tablet layout --- */
    :root {
        --header-height: 70px;
    }

    .menu-toggle {
        display: flex;
        /* 触摸目标补到 44×44：图标本身仍是原来大小，靠内边距把可点区域撑开 */
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-donate-desktop {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        max-height: calc(100vh - var(--header-height));
        /* Override desktop flex layout for vertical mobile menu */
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-light-gray);
    }

    .main-navigation a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
        white-space: normal;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        color: var(--color-secondary);
        background-color: rgba(212, 175, 55, 0.08);
    }

    /* Donate button — directly after last menu item */
    .nav-donate-mobile {
        display: block;
        padding: 1rem 1.5rem 1.5rem;
    }

    .nav-donate-mobile .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .gallery-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .projects-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-layout .blog-posts,
    .blog-layout.cols-2 .blog-posts,
    .blog-layout.cols-3 .blog-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .hero {
        --hero-current-bg-position: var(--hero-mobile-bg-position);
        --hero-current-bg-size: var(--hero-mobile-bg-size);
        --hero-current-bg-zoom: var(--hero-mobile-bg-zoom);
        min-height: auto;
        padding: 3.75rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
    }

    .hero-stats {
        display: grid;
        gap: 0.75rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.35rem;
    }

    .hero-stat-label {
        font-size: 0.68rem;
        letter-spacing: 0.5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 2.75rem 0;
    }

    .mission-highlights-section {
        padding: 2.25rem 0 2.5rem;
    }

    .mission-highlights-header {
        margin-bottom: 1rem;
    }

    .mission-highlights-header h2 {
        font-size: 1.45rem;
    }

    .mission-highlights-header p {
        display: none;
    }

    .mission-highlights-grid {
        gap: 0.85rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-highlight-card {
        grid-template-rows: 74px minmax(0, auto);
        min-height: 145px;
    }

    .mission-highlight-art {
        min-height: 74px;
    }

    .mission-highlight-art::before {
        height: 38px;
        left: 10px;
        top: 12px;
        width: 38px;
    }

    .mission-highlight-art::after {
        bottom: 9px;
        height: 24px;
        right: 14px;
        width: 24px;
    }

    .mission-highlight-icon {
        height: 44px;
        width: 44px;
    }

    .mission-highlight-icon svg {
        height: 21px;
        width: 21px;
    }

    .mission-highlight-copy {
        padding: 0.75rem;
    }

    .mission-highlight-copy strong {
        font-size: 0.9rem;
    }

    .mission-highlight-copy span {
        display: none;
    }

    .core-work-section {
        padding: 2.75rem 0 3rem;
    }

    .impact-section {
        padding: 2.75rem 0;
    }

    .impact-content {
        gap: 1.5rem;
    }

    .impact-image {
        height: 220px;
    }

    .impact-text p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .gallery-section {
        padding: 2.75rem 0 3rem;
    }

    .blog-archive {
        padding: 3rem 0;
    }

    .blog-layout .blog-posts,
    .blog-layout.cols-2 .blog-posts,
    .blog-layout.cols-3 .blog-posts {
        gap: 0.85rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-post-content {
        padding: 0.85rem;
    }

    .blog-post-content h2 {
        font-size: 0.9rem;
    }

    .blog-post-thumbnail {
        height: 120px;
    }

    .blog-post-meta,
    .blog-post-excerpt {
        display: none;
    }

    .afc-content-details {
        padding: 1.25rem;
    }

    .afc-content-details dl div {
        grid-template-columns: 1fr;
    }

    .blog-post-thumbnail {
        height: 120px;
    }

    .single-post-content {
        padding: 3rem 0;
    }

    .single-post-layout {
        gap: 2rem;
    }

    .single-post-article .entry-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .single-post-sidebar {
        grid-template-columns: 1fr;
    }

    .single-post-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .single-post-nav > div:last-child {
        text-align: left;
    }

    .sidebar .widget {
        padding: 1.15rem;
    }

    .sidebar .widget-title,
    .sidebar .widget h2,
    .sidebar .wp-block-heading {
        font-size: 1.1rem;
    }

    .gallery-archive-grid,
    .gallery-archive-sidebar,
    .single-gallery-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-archive-sidebar,
    .single-gallery-sidebar {
        grid-template-columns: 1fr;
    }

    .gallery-photo-body {
        padding: 0.75rem;
    }

    .gallery-photo-body h2 {
        font-size: 0.82rem;
    }

    .gallery-album-filter {
        justify-content: flex-start;
    }

    .gallery-album-filter a {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .work-grid,
    .work-grid-5,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .work-grid-centered {
        flex-direction: row;
        gap: 0.75rem;
    }

    .work-grid-centered .work-card {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
        padding: 0.9rem 0.7rem;
    }

    .work-card-icon {
        height: 42px;
        margin-bottom: 0.65rem;
        width: 42px;
    }

    .work-card h3 {
        font-size: 0.82rem;
        line-height: 1.25;
        margin-bottom: 0;
    }

    /* 手机上保留卡片描述（截两行）——手机是主要流量来源，
       只留标题会让访客不知道我们具体做什么 */
    .work-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.78rem;
        line-height: 1.5;
        margin-top: 0.35rem;
    }

    .blog-grid {
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-image {
        height: 112px;
    }

    .blog-card-body {
        padding: 0.75rem;
    }

    .blog-card-meta,
    .blog-card-excerpt {
        display: none;
    }

    .blog-card-body h3 {
        font-size: 0.82rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .blog-card .read-more {
        font-size: 0.78rem;
    }

    .work-section {
        padding: 2.6rem 0;
    }

    .work-detail {
        gap: 1.25rem;
    }

    .work-detail-content h2 {
        font-size: 1.25rem;
    }

    .work-detail-content p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .work-detail-image {
        height: 210px;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .donate-hero h1 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .page-404 h1 {
        font-size: 4rem;
    }

    .gallery-section {
        padding: 3rem 0;
    }
    .gallery-slide {
        flex: 0 0 calc(100% - 0rem);
        height: 250px;
    }
    .gallery-prev, .gallery-next {
        width: 40px;
        height: 40px;
    }
    .projects-grid.cols-2,
    .projects-grid.cols-3 {
        grid-template-columns: 1fr;
    }
    .impact-image {
        height: 300px;
    }
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    .whatsapp-float-tooltip {
        display: none;
    }
    .afc-comment-form-wrapper {
        padding: 1.5rem;
    }
    /* Mobile text readability */
    body {
        font-size: 1rem;
        line-height: 1.8;
    }
    .blog-post-content {
        padding: 0.85rem;
    }
    .blog-post-content h2 {
        font-size: 0.9rem;
    }
    .work-content-area .entry-content {
        font-size: 1rem;
    }
    .gallery-lightbox-img {
        max-width: 95vw;
        max-height: 85vh;
    }
    .gallery-lightbox-close {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .page-header {
        padding: 5rem 0 2.75rem;
    }

    .page-header h1 {
        font-size: 1.85rem;
    }

    .work-card {
        padding: 0.85rem 0.65rem;
    }

    .donate-qr-section,
    .donate-bank-section {
        padding: 2rem 1.5rem;
    }

    .qr-placeholder {
        width: 240px;
        height: 240px;
    }

    .bank-detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .bank-detail-value {
        text-align: left;
    }

    .site-branding .site-title {
        font-size: 1rem;
    }

    .gallery-slide {
        height: 180px;
    }
    .hero {
        min-height: auto;
        padding: 3.25rem 0 2.75rem;
    }
    .hero-content {
        padding: 1.5rem 1rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 0.5rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }

    .mission-highlights-section {
        padding: 2rem 0;
    }

    .mission-highlights-grid {
        gap: 0.7rem;
    }

    .mission-highlight-card {
        border-radius: 10px;
        min-height: 132px;
    }

    .mission-highlight-copy {
        padding: 0.65rem;
    }

    .mission-highlight-copy strong {
        font-size: 0.84rem;
        line-height: 1.22;
    }
    .project-card-body {
        padding: 0.95rem;
    }
    .project-card-image {
        height: 150px;
    }

    .blog-grid,
    .blog-layout .blog-posts,
    .blog-layout.cols-2 .blog-posts,
    .blog-layout.cols-3 .blog-posts,
    .gallery-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-photo-image {
        aspect-ratio: 1 / 0.82;
    }

    .gallery-photo-albums,
    .gallery-photo-card .afc-card-details {
        display: none;
    }
    .afc-comment-form-wrapper {
        padding: 1rem;
    }
    .work-content-area {
        padding: 2.5rem 0;
    }
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-light { background: var(--color-off-white); }
.bg-white { background: var(--color-white); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }

/* ============================================
   FRONT PAGE CONTENT (Block Editor)
   ============================================ */

.front-page-content {
    padding: 4rem 0;
}

.front-page-content .entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content img:not(a img) {
    cursor: zoom-in;
    transition: transform var(--transition);
}

.entry-content img:not(a img):hover {
    transform: scale(1.02);
}

/* (contact-methods-bar removed — unused, was conflicting with .contact-method) */

/* ============================================
   GALLERY LIGHTBOX
   ============================================ */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 14, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 4.5rem 4.5rem;
    cursor: zoom-out;
}

/* hidden 属性必须压得过上面的 display:flex，否则关掉的查看器会盖住整页。 */
.gallery-lightbox[hidden],
.gallery-lightbox-nav[hidden],
.gallery-lightbox-caption[hidden] {
    display: none !important;
}

.gallery-lightbox-stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
}

.gallery-lightbox-img {
    max-width: min(1400px, 100%);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    cursor: default;
    animation: lbFade 0.22s ease;
}

@keyframes lbFade {
    from { opacity: 0; transform: scale(0.985); }
    to   { opacity: 1; transform: none; }
}

.gallery-lightbox-caption {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    max-width: 62ch;
    cursor: default;
}

.gallery-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

/* 上一张 / 下一张 */
.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.gallery-lightbox-nav svg { width: 26px; height: 26px; }
.gallery-lightbox-prev { left: 1.25rem; }
.gallery-lightbox-next { right: 1.25rem; }

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}
.gallery-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.gallery-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.gallery-lightbox-nav:focus-visible,
.gallery-lightbox-close:focus-visible {
    outline: 2px solid var(--color-gold, #d4a437);
    outline-offset: 3px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity var(--transition);
    z-index: 2;
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

/* 手机：箭头挪到底部两侧，别压在照片上 */
@media (max-width: 700px) {
    .gallery-lightbox { padding: 3rem 0.75rem 5.5rem; }
    .gallery-lightbox-img { max-height: 68vh; }
    .gallery-lightbox-nav {
        top: auto;
        bottom: 1rem;
        transform: none;
        width: 46px;
        height: 46px;
    }
    .gallery-lightbox-prev { left: 1.5rem; }
    .gallery-lightbox-next { right: 1.5rem; }
    .gallery-lightbox-prev:hover,
    .gallery-lightbox-next:hover { transform: none; }
    .gallery-lightbox-count { bottom: 1.85rem; }
}

/* 正文里的图片：明确告诉用户可以点开 */
img.afc-zoomable { cursor: zoom-in; }

.gallery-lightbox-trigger {
    cursor: zoom-in;
}

.gallery-lightbox-trigger img {
    transition: transform var(--transition);
}

.gallery-lightbox-trigger:hover img {
    transform: scale(1.03);
}

.work-detail-image a {
    display: block;
    height: 100%;
}

.work-detail-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
}

.work-detail-image a:hover img {
    transform: scale(1.03);
}

/* ============================================
   FLASH MESSAGES (front-end form feedback)
   ============================================ */

.afc-flash {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    max-width: min(560px, calc(100vw - 2rem));
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.95rem;
    animation: afcFlashIn 0.3s ease, afcFlashOut 0.5s ease 6s forwards;
}

.afc-flash-success { background: #e8f7ef; color: #1c7c46; border: 1px solid #b7e4cb; }
.afc-flash-error   { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c1; }
.afc-flash-info    { background: #e8f1f5; color: var(--color-primary); border: 1px solid #c4dbe4; }

@keyframes afcFlashIn  { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes afcFlashOut { to { opacity: 0; visibility: hidden; } }

/* ============================================
   GENERIC PHOTO GRID (gallery section blocks & album pages)
   ============================================ */

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.album-photo {
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin: 0;
}

.album-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition);
}

.album-photo:hover img {
    transform: scale(1.04);
}

.album-photo figcaption {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

@media (max-width: 600px) {
    .album-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .album-photo img { height: 140px; }
}

/* ============================================
   MOBILE BOTTOM APP NAV（照 MMTeak .bnav 形态，AFC 配色）
   ============================================ */

.bnav { display: none; }
.cs-bg { display: none; }
.callsheet { display: none; }

@media (max-width: 860px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

    .bnav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .95);
        backdrop-filter: saturate(1.3) blur(14px);
        -webkit-backdrop-filter: saturate(1.3) blur(14px);
        border-top: 1px solid rgba(15, 76, 92, .14);
        box-shadow: 0 -8px 26px rgba(15, 76, 92, .10);
    }
    .bnav a {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        padding: 4px 2px;
        color: var(--color-mid-gray);
        font-family: var(--font-heading);
        font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1;
        -webkit-tap-highlight-color: transparent;
    }
    .bnav a svg { width: 22px; height: 22px; display: block; }
    .bnav a.on { color: var(--color-primary); }
    .bnav .bnav-chat { margin-top: -24px; color: var(--color-secondary-dark); }
    .bnav .bnav-chat i {
        display: grid; place-items: center;
        width: 52px; height: 52px; border-radius: 50%;
        background: linear-gradient(180deg, #e6c755, #b8962e);
        border: 3px solid var(--color-primary);
        box-shadow: 0 10px 24px rgba(212, 175, 55, .45);
        color: #fff;
    }
    .bnav .bnav-chat i svg { width: 24px; height: 24px; }
    .bnav .bnav-chat:active i { transform: scale(.94); }

    /* 底部导航出现时，右下角 WhatsApp 悬浮球让位隐藏（功能已并入中央按钮） */
    .whatsapp-float { display: none; }

    /* 联系呼出面板 */
    .cs-bg.on {
        display: block; position: fixed; inset: 0; z-index: 991;
        background: rgba(5, 34, 41, .45);
    }
    .callsheet {
        position: fixed; left: 50%; transform: translateX(-50%) translateY(12px);
        bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 992;
        width: min(340px, calc(100vw - 32px));
        background: var(--color-white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        padding: 8px;
        opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .callsheet.on { display: block; opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
    .cs-item {
        display: flex; align-items: center; gap: 12px;
        padding: 12px 14px; border-radius: var(--radius-md);
        color: var(--color-text);
    }
    .cs-item:hover, .cs-item:active { background: var(--color-off-white); color: var(--color-text); }
    .cs-item + .cs-item { border-top: 1px solid var(--color-light-gray); }
    .cc-ic {
        display: grid; place-items: center; flex-shrink: 0;
        width: 40px; height: 40px; border-radius: 50%; color: #fff;
    }
    .cc-ic svg { width: 20px; height: 20px; }
    .cc-ic.wa { background: #25d366; }
    .cc-ic.em { background: var(--color-primary); }
    .cc-ic.fb { background: #1877f2; }
    .cs-t { display: flex; flex-direction: column; line-height: 1.35; }
    .cs-t b { font-size: .95rem; color: var(--color-primary); }
    .cs-t span { font-size: .8rem; color: var(--color-mid-gray); }

    /* 手机菜单展开时隐藏底部导航（照 MMTeak body.menu-open 行为） */
    body:has(.main-navigation.active) .bnav { display: none; }
}

/* ============================================================
   叙事区块（首页节奏：卡片网格 → 大数字 → 故事 → 满宽照片 → 信任）
   设计纪律：层级靠留白/边框/背景对比，不靠浓阴影与渐变。
   ============================================================ */

/* ---------- 通用：区块纵向节奏 ---------- */
.impact-numbers,
.story-section,
.programs-section,
.trust-section { padding: var(--section-y) 0; }
.partners-section { padding: var(--section-y-sm) 0; }

/* ---------- 成果数字 ----------
   两栏：左说明、右数字纵列。原来标题居中、三个数字横排，两侧空一大片，
   块头又高，整块看着空。可选背景照片（.has-media）压暗后作底加层次。 */
.impact-numbers {
    position: relative;
    background: var(--color-ink);
    color: #fff;
    overflow: hidden;
}
.impact-numbers > .container { position: relative; z-index: 1; }

/* 背景照片：压暗 + 从左往右加深，保证左栏文字始终有足够对比度 */
.inum-bg { position: absolute; inset: 0; z-index: 0; }
.inum-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inum-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(18,27,30,.96) 0%, rgba(18,27,30,.92) 50%, rgba(18,27,30,.87) 100%),
        radial-gradient(120% 110% at 0% 50%, rgba(0,0,0,.4), transparent 72%);
}

.inum-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

/* ---- 左：说明 ---- */
.inum-intro h2 {
    color: #fff;
    font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.75rem);
    line-height: 1.15;
    margin: 0;
}
.inum-intro h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: var(--sp-4);
    background: var(--color-secondary);
}
.inum-sub {
    margin-top: var(--sp-4);
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,.76);
    max-width: 46ch;
}
.inum-source {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    max-width: 46ch;
}
.inum-source p { margin: 0; }
.inum-source a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* ---- 右：数字 ---- */
.inum-grid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    /* 列间距为 0、改由标签内缩：这样两个单元格的上边线首尾相接，
       连成一整条分隔线；留着列间距的话中间会断一截。 */
    column-gap: 0;
    align-items: stretch;
}
/* 行本身摊平，让所有数字共用一个列宽 —— 各行各自成 grid 的话，
   「3」和「15,000+」的列宽不同，右边标签就参差不齐。 */
.inum { display: contents; }
.inum-fig,
.inum-text {
    padding: clamp(1.1rem, 2vw, 1.6rem) 0;
    border-top: 1px solid rgba(255,255,255,.12);
}
.inum-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
}
.inum:first-child .inum-fig,
.inum:first-child .inum-text { border-top: 0; padding-top: 0; }

/* 四个以上：两列排布，纵向不会拖太长（此时回到每行独立 grid） */
.inum-grid.is-wide {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: var(--sp-6);
}
.inum-grid.is-wide .inum {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 var(--sp-4);
    align-items: baseline;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: clamp(1.1rem, 2vw, 1.6rem) 0;
}
.inum-grid.is-wide .inum-fig,
.inum-grid.is-wide .inum-text { border-top: 0; padding: 0; }
.inum-grid.is-wide .inum:first-child,
.inum-grid.is-wide .inum:nth-child(2) { border-top: 0; padding-top: 0; }
.inum-fig {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem);
    line-height: .95;
    color: var(--color-secondary-light);
    letter-spacing: -0.025em;
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}
.inum-pre, .inum-suf { font-size: .5em; }
.inum-text { min-width: 0; }
.inum-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}
.inum-note {
    margin-top: var(--sp-2);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.6);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .inum-layout { grid-template-columns: 1fr; gap: var(--sp-6); align-items: start; }
    .inum-grid.is-wide { grid-template-columns: 1fr; }
    .inum-grid.is-wide .inum:nth-child(2) { border-top: 1px solid rgba(255,255,255,.12); }
    .inum-sub, .inum-source { max-width: none; }
}
@media (max-width: 520px) {
    /* 窄屏数字换到标签上方，别把标签挤成一竖条；
       数字与自己的标签之间不画线，线只出现在两组数据之间。 */
    .inum-grid,
    .inum-grid.is-wide .inum { grid-template-columns: minmax(0, 1fr); }
    .inum-fig { justify-content: flex-start; padding-bottom: 0; }
    .inum-text { border-top: 0; padding-top: var(--sp-2); padding-left: 0; }
    .inum:first-child .inum-fig { padding-top: 0; }
}

/* ---------- 真实故事 ---------- */
.story-section { background: var(--section-wash); }
.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(var(--sp-5), 4vw, var(--sp-8));
    align-items: center;
}
.story-media { margin: 0; }
.story-media img {
    width: 100%;
    aspect-ratio: var(--ratio-wide);
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}
.story-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--sp-3);
    letter-spacing: .02em;
}
.story-meta svg { width: 15px; height: 15px; }
.story-dot { opacity: .5; }
.story-body h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.story-quote {
    margin: 0 0 var(--sp-3);
    padding-left: var(--sp-4);
    border-left: 3px solid var(--color-secondary);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1rem + 0.55vw, 1.45rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--color-primary);
    font-style: italic;
}
.story-attrib {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--sp-4);
}
.story-body p { color: var(--color-text-light); line-height: 1.8; }
.story-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }

/* ---------- 满宽照片带 ---------- */
.photo-band {
    position: relative;
    min-height: clamp(300px, 42vw, 460px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.photo-band-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.photo-band-overlay {
    position: relative;
    width: 100%;
    padding: var(--sp-8) 0 var(--sp-7);
    background: linear-gradient(to top, rgba(15, 30, 35, .88) 0%, rgba(15, 30, 35, .55) 45%, rgba(15, 30, 35, 0) 100%);
    color: #fff;
}
.photo-band-overlay h2 {
    color: #fff;
    font-size: var(--fs-h2);
    margin-bottom: var(--sp-3);
    max-width: 18ch;
}
.photo-band-overlay p {
    color: rgba(255,255,255,.88);
    font-size: var(--fs-lead);
    max-width: 56ch;
    line-height: 1.7;
    margin-bottom: var(--sp-4);
}
.photo-band-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- 项目导航（主 + 次） ---------- */
.programs-section { background: var(--color-white); }
.prog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}
.prog-lead {
    display: flex;
    flex-direction: column;
    border: var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
a.prog-lead:hover { border-color: rgba(212,175,55,.6); transform: translateY(-2px); }
.prog-lead-media { display: block; }
.prog-lead-media img {
    width: 100%;
    aspect-ratio: var(--ratio-wide);
    object-fit: cover;
    display: block;
}
.prog-lead-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.prog-tag {
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    background: rgba(212,175,55,.12);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.prog-lead-body strong {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}
.prog-desc { color: var(--color-text-light); font-size: .95rem; line-height: 1.65; }
.prog-stat {
    margin-top: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
}
.prog-rest { display: grid; gap: var(--sp-3); align-content: start; }
.prog-item {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
    padding: var(--sp-3);
    border: var(--border-card);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
a.prog-item:hover { border-color: rgba(212,175,55,.6); background: var(--section-panel); }
.prog-item-media { flex: 0 0 92px; }
.prog-item-media img {
    width: 92px;
    aspect-ratio: var(--ratio-square);
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}
.prog-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prog-item-body strong {
    font-size: 1rem;
    color: var(--color-primary);
    line-height: 1.35;
}
.prog-item .prog-desc {
    font-size: .875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 合作伙伴 ---------- */
.partners-section { background: var(--section-panel); border-top: var(--border-hair); border-bottom: var(--border-hair); }
.partners-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-mid-gray);
    margin-bottom: var(--sp-5);
}
.partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(var(--sp-5), 5vw, var(--sp-8));
}
.partner img {
    height: 46px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .62;
    transition: filter .2s, opacity .2s;
}
.partner:hover img { filter: grayscale(0); opacity: 1; }
.partner-name { font-weight: 600; color: var(--color-mid-gray); }

/* ---------- 信任与透明 ---------- */
.trust-section { background: var(--color-white); border-top: var(--border-hair); }
.trust-inner {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    gap: clamp(var(--sp-5), 4vw, var(--sp-8));
    align-items: start;
}
.trust-head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.trust-head p { color: var(--color-text-light); line-height: 1.8; margin-bottom: var(--sp-4); }
.trust-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.trust-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.trust-ic {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: rgba(15,76,92,.07);
    color: var(--color-primary);
}
.trust-ic svg { width: 17px; height: 17px; }
.trust-list strong { display: block; color: var(--color-primary); font-size: 1rem; margin-bottom: 3px; }
.trust-list span span { color: var(--color-text-light); font-size: .92rem; line-height: 1.65; }

/* ---------- 手机端 ---------- */
@media (max-width: 860px) {
    .story-grid,
    .prog-grid,
    .trust-inner { grid-template-columns: 1fr; }
    .story-grid { gap: var(--sp-5); }
    .story-media { order: -1; }
    .inum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
    .inum { padding: var(--sp-4) var(--sp-3); }
    .photo-band { min-height: 340px; }
    .photo-band-overlay { padding: var(--sp-7) 0 var(--sp-5); }
    .prog-item-media { flex-basis: 76px; }
    .prog-item-media img { width: 76px; }
    .partner img { height: 36px; }
}
@media (max-width: 420px) {
    .inum-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero 重构：左对齐版式 + 克制遮罩 + 手机端收敛高度
   ============================================================ */
.hero-content.hero-left {
    text-align: left;
    margin: 0;
    max-width: 620px;
    padding-left: 0;
    padding-right: var(--sp-5);
}
.hero-content.hero-left .hero-description { margin-left: 0; margin-right: 0; max-width: 46ch; }
.hero-content.hero-left .hero-buttons { justify-content: flex-start; }
.hero-content.hero-left .hero-stats { justify-content: flex-start; }

/* 左对齐时遮罩偏左，右侧人物保持清晰 */
.hero:has(.hero-left)::before {
    background:
        linear-gradient(100deg, rgba(11, 26, 31, .90) 0%, rgba(11, 26, 31, .74) 34%, rgba(11, 26, 31, .30) 62%, rgba(11, 26, 31, .18) 100%);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 17ch;
}
.hero-content:not(.hero-left) h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero-description { font-size: var(--fs-lead); line-height: 1.72; }

.hero-trust {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(255,255,255,.16);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    max-width: 52ch;
}

@media (max-width: 860px) {
    /* 手机端 Hero 不占屏过长 */
    .hero { min-height: 0; }
    .hero-content { padding: var(--sp-8) var(--sp-4) var(--sp-7); }
    .hero-content.hero-left { padding-right: var(--sp-4); max-width: none; }
    .hero h1 { max-width: none; }
    .hero-buttons { gap: var(--sp-3); }
    .hero-buttons .btn { flex: 1 1 auto; justify-content: center; }

    /* 手机上文字必然压在照片上（宽度不够让开），所以遮罩要够厚，
       让照片退成氛围底纹而不是跟标题抢眼睛。竖屏时顶部也压深一档，
       否则白色大标题压在人物浅色衣服上会读不清。 */
    .hero:has(.hero-left)::before {
        background: linear-gradient(to top,
            rgba(11, 26, 31, .95) 0%,
            rgba(11, 26, 31, .88) 42%,
            rgba(11, 26, 31, .78) 72%,
            rgba(11, 26, 31, .68) 100%);
    }
    /* 人物往下挪：脸落在按钮下方的空档，不被标题盖住 */
    .hero-bg-image-layer { background-position: 62% 78% !important; }

    /* 徽章在窄屏会折行，一个折了行的胶囊很难看。
       手机上退成一条金色小字标签（去掉底色和边框），更克制也更高级。 */
    .hero-badge {
        background: none;
        border: 0;
        padding: 0 0 var(--sp-2);
        letter-spacing: .12em;
        font-size: .74rem;
        margin-bottom: var(--sp-3);
    }

    .hero-trust { margin-top: var(--sp-4); }
}

/* ============================================================
   图片系统统一：固定比例 + object-fit，杜绝拉伸与随机裁切
   （比例 token 见 :root --ratio-*）
   ============================================================ */

/* 文章封面（列表与首页卡片）统一 3:2 */
.blog-card-image,
.blog-post-thumbnail {
    aspect-ratio: var(--ratio-wide);
    height: auto;
    overflow: hidden;
    background: var(--color-off-white);
}
.blog-card-image img,
.blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;   /* 略偏上：人物头部不易被裁 */
    display: block;
}

/* 相册卡与图库网格统一 3:2 */
.gallery-photo-image {
    display: block;
    aspect-ratio: var(--ratio-wide);
    overflow: hidden;
    background: var(--color-off-white);
}
.gallery-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* 首页图库轮播统一 3:2 */
.gallery-slide {
    height: auto;
    aspect-ratio: var(--ratio-wide);
}
.gallery-slide img { height: 100%; object-position: center 40%; }

/* Our Work 图文块与 Impact 图 */
.work-detail-image,
.impact-image {
    height: auto;
    aspect-ratio: var(--ratio-wide);
}
.work-detail-image img,
.impact-image img { object-position: center 40%; }

/* 侧栏缩略图正方形 */
.afc-gallery-recent-thumb img,
.single-related-list img { aspect-ratio: var(--ratio-square); object-fit: cover; }

/* 任何图片都不允许被拉伸变形 */
img { max-width: 100%; height: auto; }
.blog-card-image img,
.blog-post-thumbnail img,
.gallery-photo-image img,
.gallery-slide img,
.work-detail-image img,
.impact-image img,
.story-media img,
.prog-lead-media img,
.prog-item-media img { height: 100%; }

/* ============================================================
   捐赠页 / 透明度页（2026 重构）
   —— Ways to Give 方式卡、可复制信息明细、PromptPay 二维码、步骤条
   设计纪律：层级靠边框 + 背景对比 + 留白；阴影仅在卡片 hover 时极轻微。
   ============================================================ */

/* ---------- Ways to Give：并列方式卡 ---------- */
.give-ways { background: var(--section-wash); border-top: var(--border-hair); border-bottom: var(--border-hair); }
.give-ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 42%, 340px), 1fr));
    gap: var(--sp-5);
    align-items: stretch;
}
.give-way {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    background: var(--color-white);
    border: var(--border-card-strong);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-5);
}
.give-way-ic {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--radius-md);
    background: rgba(15, 76, 92, .07);
    color: var(--color-primary);
}
.give-way-ic svg { width: 23px; height: 23px; }
.give-way-tag {
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    background: rgba(212, 175, 55, .12);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.give-way h3 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}
.give-way > p { color: var(--color-text-light); line-height: 1.72; margin: 0; }
.give-way-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.give-way-points li {
    display: flex;
    gap: var(--sp-2);
    align-items: flex-start;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--color-text-light);
}
.give-way-tick { flex: 0 0 18px; color: var(--color-success); margin-top: 2px; }
.give-way-tick svg { width: 18px; height: 18px; }
.give-way-link {
    margin-top: auto;
    padding-top: var(--sp-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--color-primary);
    text-decoration: none;
}
.give-way-link:hover { color: var(--color-secondary-dark); }
.give-way-link svg { width: 15px; height: 15px; }
.give-ways-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-6); }

/* ---------- 信息明细（可复制）+ 二维码 ---------- */
.bank-block { background: var(--color-white); }
.bank-block-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(var(--sp-5), 3.5vw, var(--sp-7));
    align-items: start;
}
.bank-block-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
.bank-panel,
.qr-panel {
    border: var(--border-card-strong);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    padding: clamp(var(--sp-5), 3vw, var(--sp-6));
    scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}
.qr-panel { background: var(--section-panel); text-align: center; }
.bank-panel-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--color-mid-gray);
    margin: 0 0 var(--sp-4);
}
.bank-panel-title + .bank-rows { margin-top: 0; }

/* 一个面板里放多个账户时，第二张往后要有明显的分隔 ——
   否则新账户的标题会紧贴上一张卡的说明文字，看着像同一段。 */
.bank-panel-title:not(:first-child) {
    margin-top: var(--sp-7);
    padding-top: var(--sp-6);
    border-top: 2px solid rgba(15, 76, 92, 0.14);
}

/* 值很长（银行地址这类）时改成上下排布，免得复制按钮被挤到下一行 */
.bank-row.is-long { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
.bank-row.is-long dd { justify-content: space-between; align-items: flex-start; }
.bank-row.is-long .bank-val { text-align: left; flex: 1 1 auto; }
.bank-rows { margin: 0 0 var(--sp-4); }
.bank-rows:last-child { margin-bottom: 0; }
.bank-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2) var(--sp-4);
    padding: var(--sp-3) 0;
    border-bottom: var(--border-hair);
}
.bank-row:first-child { padding-top: 0; }
.bank-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-row dt {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: .01em;
    flex: 0 0 auto;
}
.bank-row dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}
.bank-val {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.02rem;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
    text-align: right;
}
.bank-panel-note {
    margin: var(--sp-4) 0 0;
    padding-top: var(--sp-4);
    border-top: var(--border-hair);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* 复制按钮 */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 11px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
    background: var(--color-white);
    border: 1px solid rgba(15, 76, 92, .28);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.copy-btn:hover { background: rgba(15, 76, 92, .07); border-color: var(--color-primary); }
.copy-btn:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.copy-btn-ic { display: inline-flex; }
.copy-btn-ic svg { width: 14px; height: 14px; }
.copy-btn.is-copied {
    color: #fff;
    background: var(--color-success);
    border-color: var(--color-success);
}
.copy-btn.is-failed {
    color: #fff;
    background: var(--color-mid-gray);
    border-color: var(--color-mid-gray);
}

/* 二维码栏：够大、可点击放大 */
.qr-figure { margin: 0 0 var(--sp-3); }
.qr-figure-link {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: var(--sp-3);
    background: var(--color-white);
    border: var(--border-card);
    border-radius: var(--radius-md);
    cursor: zoom-in;
    transition: border-color .18s var(--ease-out);
}
.qr-figure-link:hover { border-color: rgba(212, 175, 55, .65); }
.qr-figure-link img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.qr-figure figcaption {
    margin-top: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.qr-figure figcaption strong { font-size: .98rem; color: var(--color-primary); }
.qr-figure figcaption span { font-size: var(--fs-sm); color: var(--color-text-light); line-height: 1.6; }
.qr-hint { margin: 0; font-size: var(--fs-sm); color: var(--color-mid-gray); }

/* 关键提示卡（账户名 ≠ 品牌名 等） */
.bank-callout {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    margin-top: clamp(var(--sp-5), 3vw, var(--sp-6));
    padding: var(--sp-5);
    background: rgba(212, 175, 55, .09);
    border: 1px solid rgba(212, 175, 55, .38);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-md);
}
.bank-callout-ic {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: rgba(212, 175, 55, .22);
    color: var(--color-secondary-dark);
}
.bank-callout-ic svg { width: 18px; height: 18px; }
.bank-callout > div { min-width: 0; }
.bank-callout h3,
.bank-callout h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin: 0 0 var(--sp-2);
}
.bank-callout p { color: var(--color-text); line-height: 1.75; margin: 0 0 var(--sp-2); }
.bank-callout p:last-child { margin-bottom: 0; }
.bank-callout strong { color: var(--color-primary); }

/* ---------- 步骤条 1-2-3 ---------- */
.steps-section { background: var(--section-wash); border-top: var(--border-hair); border-bottom: var(--border-hair); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); counter-reset: none; }
.step {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    background: var(--color-white);
    border: var(--border-card);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
}
.step-n {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .95rem;
}
.step-body { min-width: 0; }
.step-body h3 { font-size: 1.05rem; color: var(--color-primary); margin: 0 0 4px; line-height: 1.35; }
.step-body p { color: var(--color-text-light); line-height: 1.72; margin: 0; }
.steps-note {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: var(--border-hair);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.75;
}
.steps-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }

/* ---------- 手机端（≤860px / ≤430px） ---------- */
@media (max-width: 860px) {
    /* 单列堆叠：顺序与 Ways to Give 的 Option 1 / Option 2 保持一致 */
    .bank-block-grid { grid-template-columns: minmax(0, 1fr); }
    .give-ways-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    /* 账号很长时改为「标签在上、数值+复制在下」，避免横向溢出 */
    .bank-row { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
    .bank-row dd { justify-content: space-between; }
    .bank-val { text-align: left; }
    .bank-callout { flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
    .step { padding: var(--sp-4); gap: var(--sp-3); }
    .give-way { padding: var(--sp-5) var(--sp-4); }
    .qr-figure-link { max-width: 100%; }
}

/* ---------- 通用富文本区块（区块驱动内页的散文段落） ---------- */
.richtext-section .entry-content h2 {
    font-size: var(--fs-h2);
    margin-bottom: var(--sp-4);
}
.richtext-section .entry-content h3 {
    font-size: var(--fs-h3);
    color: var(--color-primary);
    margin: var(--sp-6) 0 var(--sp-3);
}
.richtext-section .entry-content p {
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: var(--sp-4);
}
.richtext-section .entry-content p:last-child { margin-bottom: 0; }
.richtext-section .entry-content strong { color: var(--color-primary); }

/* 通知条内多段落之间需要留白（.donate-instructions p 原本 margin-bottom:0） */
.donate-instructions p + p { margin-top: var(--sp-3); }

/* values_grid 说明段落（Where Your Gift Goes / Financial Stewardship） */
.about-section > .container > p {
    color: var(--color-text-light);
    line-height: 1.85;
    max-width: 72ch;
    margin-bottom: var(--sp-5);
}

/* values_grid / mission_vision 作为独立区块直接落在 <main> 上时（如捐赠页），
   补回区块纵向节奏 —— 在 .about-content 内部时不受影响。 */
.site-main > .about-section {
    padding: var(--section-y) 0;
    margin-bottom: 0;
}


/* =====================================================================
   pages-about-work.css（改版期并行开发的内页样式，上线前并入本文件）
   ===================================================================== */

/* ============================================================
   About（/about）与 Our Work（/our-work）内页样式
   —— 改版期间独立成文件，避免与 front.css 并行编辑冲突；上线前并入 front.css。

   作用域说明（重要）
     这两页用的是 front/pages/default.php，模板把所有区块包在 .about-content 里。
     但 /transparency 等页面同样走 default 模板，直接写 .about-content 会串到别的页面上。
     因此这里统一用两页各自独有的锚点做作用域：
       About    → .about-content:has(#who-we-are)
       Our Work → .about-content:has(#programs-nav)
     单个区块的微调则直接用区块自带的锚点 id（settings.anchor）当钩子，
     这样站主在后台调整区块顺序也不会串味。
     :has() 在目标浏览器（Chrome 105+ / Safari 15.4+ / Firefox 121+）已全面支持；
     万一不支持，整条规则被丢弃，页面退回 front.css 的默认样式，不会破版。

   设计纪律
     层级来自留白、字号级差、背景明暗与满宽照片，
     不用渐变、玻璃拟态、重阴影与大圆角堆砌。
     先写 375px 的默认样式，桌面在 media query 里加宽。
   ============================================================ */

/* ---------- 页面容器：让每个区块自己控制纵向节奏 ---------- */
/* default.php 用行内 style 写死了 padding:3rem 0 1rem，只能用 !important 覆盖 */
.about-content:has(#who-we-are),
.about-content:has(#programs-nav) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 锚点跳转时不被固定页头压住标题（对所有 default 模板页都是好事，不限定作用域） */
.about-content [id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* 「标题」区块的外层同时带 .section-header（front.css 给它限了 700px 并居中），
   导致整块底色缩成一条窄带。外层只负责整幅底色与间距，限宽交给里层。 */
.about-content:has(#who-we-are) .section-header-block,
.about-content:has(#programs-nav) .section-header-block {
    max-width: none;
    margin: 0;
}

/* ---------- 页首横幅：收紧比例，副题限宽便于阅读 ---------- */
.about-content:has(#who-we-are) .page-header,
.about-content:has(#programs-nav) .page-header {
    padding: calc(var(--header-height) * 0.55) 0 var(--sp-7);
}
.about-content:has(#who-we-are) .page-header p,
.about-content:has(#programs-nav) .page-header p {
    max-width: 46ch;
    font-size: var(--fs-lead);
    line-height: 1.6;
}

/* ---------- 首段导语：比正文大半级，建立段落层级 ---------- */
.about-content .lede {
    font-size: var(--fs-lead);
    line-height: 1.65;
    color: var(--color-text);
    font-weight: 500;
}

/* ============================================================
   About：Who We Are 图文
   （#who-we-are 本身就是 .impact-section，直接按 id 调）
   ============================================================ */
#who-we-are.impact-section {
    background: var(--color-white);
    border-top: 0;
    border-bottom: 0;
    padding: var(--section-y) 0;
}

/* ============================================================
   Our Work：项目图文块
   ============================================================ */

/* 去掉 front.css 的米色/白色交替底与投影，统一白底 + 发丝分隔线，
   靠留白而不是色块分段 */
.about-content:has(#programs-nav) .work-section {
    background: var(--color-white);
    border-bottom: 0;
    border-top: var(--border-hair);
    padding: var(--section-y) 0;
}

/* front.css 会按 DOM 次序再翻转一次左右（.work-section:nth-child(even)），
   与渲染器基于 work_detail 计数的行内 direction 叠加后次序会错乱。
   这里统一交给渲染器：非翻转块强制 ltr，翻转块的行内样式优先级更高，不受影响。 */
.about-content:has(#programs-nav) .work-section:nth-child(even) .work-detail {
    direction: ltr;
}

/* front.css 里 .work-detail-image 是 flex 容器，包着图片的 <a> 会收缩到图片本身宽度，
   4:3 的照片放进 3:2 的框里两侧就露出底色。这里让 <a> 撑满，图片正常裁切填充。
   底色同时从深青渐变改成中性纸色：图未加载时不会出现突兀的大色块。 */
.about-content:has(#programs-nav) .work-detail-image {
    display: block;
    background: var(--section-panel);
}
.about-content:has(#programs-nav) .work-detail-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 成果条目：跟在正文后的可核实事实列表 */
.wd-facts {
    list-style: none;
    margin: var(--sp-5) 0 0;
    padding: var(--sp-4) 0 0;
    border-top: var(--border-hair);
    display: grid;
    gap: var(--sp-3);
}
.wd-facts li {
    position: relative;
    padding-left: 1.15em;
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}
.wd-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-secondary);
}
.wd-facts strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* 生计项目的配图是机构自制的图文海报，裁切会切掉字：完整显示 */
#livelihood .work-detail-image {
    aspect-ratio: 4 / 3;
    background: var(--section-panel);
    border-color: rgba(15, 76, 92, 0.12);
}
#livelihood .work-detail-image img {
    object-fit: contain;
}

/* ---------- 满宽照片带：现场照人多且杂，需要更实的压暗层保证文字可读 ---------- */
#where-we-work .photo-band-overlay,
#field .photo-band-overlay {
    background: linear-gradient(to top,
        rgba(15, 30, 35, 0.94) 0%,
        rgba(15, 30, 35, 0.80) 42%,
        rgba(15, 30, 35, 0.32) 76%,
        rgba(15, 30, 35, 0) 100%);
}
#where-we-work .photo-band-overlay p,
#field .photo-band-overlay p {
    max-width: 52ch;
}

/* ============================================================
   About：Mission / Values 合成一条米白色带
   ============================================================ */
#mission,
#mission-cards,
#values {
    background: var(--section-wash);
    margin-bottom: 0;
}
#mission {
    padding: var(--section-y) 0 0;
}
#mission .section-header {
    margin-bottom: 0;
}
#mission-cards {
    padding: var(--sp-6) 0 0;
}
#mission-cards .about-grid {
    margin-top: 0;
}
#values {
    padding: var(--sp-7) 0 var(--section-y);
}

/* 使命 / 愿景双卡：白底 + 发丝边，比原来的灰底圆角更克制 */
#mission-cards .mission-vision-card {
    background: var(--color-white);
    border: var(--border-hair);
    border-left: 3px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
}

/* 价值观网格：白底卡片，与上方双卡同一套边框语言 */
#values .value-item {
    background: var(--color-white);
    border: var(--border-hair);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
}
#values .value-icon {
    width: 34px;
    height: 34px;
    background: rgba(15, 76, 92, 0.09);
    color: var(--color-primary);
    border: 1px solid rgba(15, 76, 92, 0.14);
}
#values .value-icon svg {
    width: 17px;
    height: 17px;
}
#values > .container > h2 {
    padding-bottom: var(--sp-3);
}

/* ============================================================
   About：注册与认可文件
   ============================================================ */
#documents {
    background: var(--section-wash);
    padding: var(--section-y) 0 0;
}
#documents .section-header {
    margin-bottom: 0;
}
#documents-grid {
    background: var(--section-wash);
    padding: var(--sp-6) 0 var(--section-y);
}

/* 证书是文件不是照片：不许裁切，完整居中显示在纸张色底上 */
#documents-grid .album-photo-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
#documents-grid .album-photo {
    background: var(--color-white);
    border: var(--border-hair);
    border-radius: var(--radius-md);
    box-shadow: none;
}
#documents-grid .album-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: var(--sp-4);
    background: var(--color-white);
}
#documents-grid .album-photo:hover img {
    transform: none;
}
#documents-grid .album-photo figcaption {
    border-top: var(--border-hair);
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.82rem;
    line-height: 1.55;
}

/* ============================================================
   About：合作与承诺（窄栏纯文字，给密集的页面一段呼吸）
   ============================================================ */
#partnership {
    background: var(--color-white);
    padding: var(--section-y) 0;
}
#partnership .entry-content h2 {
    font-size: var(--fs-h2);
    margin-bottom: var(--sp-5);
}
#partnership .entry-content p {
    color: var(--color-text-light);
    font-size: var(--fs-lead);
    line-height: 1.85;
}
#partnership .entry-content p + p {
    margin-top: var(--sp-4);
}

/* ============================================================
   Our Work：项目索引 + 跨项目承诺 + 现场报告
   ============================================================ */
#programs-nav {
    padding: var(--section-y) 0;
}

/* 跨项目的两块与其标题共用一条米白色带，与上方六个项目区分开 */
#cross-cutting {
    background: var(--section-wash);
    padding: var(--section-y) 0 0;
}
#cross-cutting .section-header {
    margin-bottom: 0;
}
/* #vulnerable / #cross-cutting / #reports 是 YGM「Our Work」页遗留的锚点样式，
   AFC 已无这些页面。留着它们只会误伤同名锚点 —— About 页的 #leadership
   正是被这条 padding:… 0 0 压掉了下内边距，按钮直接贴住下一节。
   #leadership 在 AFC 仍在用，因此保留背景色，但补回正常的上下内边距。 */
#leadership {
    background: var(--section-wash);
    border-top: 0;
    padding: var(--section-y) 0;
}

#reports {
    background: var(--color-white);
    padding: var(--section-y) 0;
}

/* ============================================================
   桌面端
   ============================================================ */
@media (min-width: 601px) {
    #documents-grid .album-photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: var(--sp-5);
    }
}

@media (min-width: 861px) {
    .about-content:has(#who-we-are) .page-header,
    .about-content:has(#programs-nav) .page-header {
        padding: calc(var(--header-height) * 0.8) 0 var(--sp-8);
    }
    /* 窄栏正文在桌面上略微内缩，避免贴着卡片区的边界 */
    #partnership .container-narrow {
        max-width: 720px;
    }
}


/* =====================================================================
   pages-gallery-blog.css（改版期并行开发的内页样式，上线前并入本文件）
   ===================================================================== */

/* ============================================================
   AFC — Photo Gallery + Blog（2026 改版）
   ------------------------------------------------------------
   设计纪律（与首页保持同一套语言）：
     * 只用 front.css :root 里已有的 token（间距 --sp-*、纵向节奏
       --section-y、字号 --fs-*、比例 --ratio-*、色板、--shadow-card）；
     * 层级靠「留白 + 细边框 + 背景对比 + 字体反差」建立，
       不用渐变块、玻璃、重投影、大圆角、入场动画；
     * 移动优先：基础样式即 375px 的样式，往上用 min-width 加宽。
   命名：全部以 gb- 前缀（gallery/blog），避免与并行改版的其它页面样式打架。
   ============================================================ */

/* ------------------------------------------------------------
   1. 页头（相册列表 / 相册详情 / 文章列表 / 文章详情共用）
   顶部导航是 fixed，所以页头自己让出 --header-height。
   ------------------------------------------------------------ */
.gb-head {
    background: var(--color-white);
    padding: calc(var(--header-height) + var(--sp-7)) 0 var(--sp-6);
    border-bottom: var(--border-hair);
}

.gb-head-wash { background: var(--section-wash); }

.gb-head .container { max-width: var(--container-max); }

.gb-crumbs {
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
    margin-bottom: var(--sp-4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    line-height: 1.5;
}
.gb-crumbs a { color: var(--color-mid-gray); text-decoration: none; }
.gb-crumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.gb-crumbs .gb-crumbs-sep { color: rgba(15, 76, 92, .3); }
.gb-crumbs .gb-crumbs-here {
    color: var(--color-text-light);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-eyebrow {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    margin: 0 0 var(--sp-3);
}

.gb-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3.1rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    margin: 0;
    max-width: 20ch;
}

.gb-lead {
    margin: var(--sp-4) 0 0;
    font-size: var(--fs-lead);
    line-height: 1.72;
    color: var(--color-text-light);
    max-width: 62ch;
}

/* 页头下的一行元信息（地点 / 日期 / 张数 / 阅读时长） */
.gb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-4);
    margin: var(--sp-4) 0 0;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.5;
}
.gb-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.gb-meta svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--color-secondary-dark); }
.gb-meta a { color: inherit; }
.gb-meta a:hover { color: var(--color-primary); }

/* ------------------------------------------------------------
   2. 区块与通用小组件
   ------------------------------------------------------------ */
.gb-section { padding: var(--section-y) 0; background: var(--color-white); }
.gb-section-wash { background: var(--section-wash); border-top: var(--border-hair); }
.gb-section-tight { padding: var(--section-y-sm) 0; }

.gb-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--sp-5);
    line-height: 1.25;
}

.gb-arrow { display: inline-flex; align-items: center; gap: 6px; }
.gb-arrow svg { width: 15px; height: 15px; }

.gb-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--color-primary);
    text-decoration: none;
}
.gb-more-link:hover { color: var(--color-secondary-dark); }
.gb-more-link svg { width: 15px; height: 15px; transition: transform .18s var(--ease-out); }
.gb-more-link:hover svg { transform: translateX(3px); }

/* 搜索 + 筛选条 */
.gb-toolbar {
    background: var(--section-wash);
    border-bottom: var(--border-hair);
    padding: var(--sp-4) 0;
}
.gb-toolbar-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.gb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.gb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 76, 92, .18);
    background: var(--color-white);
    color: var(--color-text);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s var(--ease-out), background .18s var(--ease-out), color .18s var(--ease-out);
}
.gb-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gb-chip span { color: var(--color-mid-gray); font-size: .78rem; }
.gb-chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.gb-chip.is-active span { color: rgba(255, 255, 255, .7); }

.gb-searchform {
    display: flex;
    gap: var(--sp-2);
    max-width: 420px;
    width: 100%;
}
.gb-searchform input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 14px;
    font: inherit;
    font-size: .92rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid rgba(15, 76, 92, .18);
    border-radius: var(--radius-pill);
}
.gb-searchform input[type="search"]:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}
.gb-searchform button {
    flex: 0 0 auto;
    padding: 9px 18px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background .18s var(--ease-out);
}
.gb-searchform button:hover { background: var(--color-primary-dark); }

.gb-result-note {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin: 0 0 var(--sp-5);
}
.gb-result-note a { color: var(--color-primary); font-weight: 600; }

.gb-empty {
    max-width: 46ch;
    padding: var(--sp-7) 0;
}
.gb-empty h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 0 var(--sp-3);
}
.gb-empty p { color: var(--color-text-light); line-height: 1.7; margin: 0 0 var(--sp-4); }

/* ------------------------------------------------------------
   3. 图库列表：首个相册大版式 + 其余卡片
   ------------------------------------------------------------ */
.gb-feature {
    display: grid;
    gap: var(--sp-5);
    margin-bottom: var(--sp-8);
    padding-bottom: var(--sp-8);
    border-bottom: var(--border-hair);
}
.gb-feature-media {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    /* 部分封面自带白底（拼图），加发丝边框才看得出图片边界 */
    border: var(--border-hair);
    aspect-ratio: var(--ratio-wide);
}
.gb-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transition: transform .5s var(--ease-out);
}
.gb-feature-media:hover img { transform: scale(1.02); }
.gb-feature-body { align-self: center; }
.gb-feature-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: var(--sp-3) 0 var(--sp-4);
    max-width: 22ch;
}
.gb-feature-body h2 a { color: var(--color-primary); text-decoration: none; }
.gb-feature-body h2 a:hover { color: var(--color-secondary-dark); }
.gb-feature-body p {
    color: var(--color-text-light);
    line-height: 1.78;
    margin: 0 0 var(--sp-5);
    max-width: 56ch;
}

.gb-albums {
    display: grid;
    gap: var(--sp-5);
}

.gb-album {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.gb-album:hover { border-color: rgba(15, 76, 92, .3); transform: translateY(-2px); }
.gb-album-media {
    display: block;
    aspect-ratio: var(--ratio-wide);
    overflow: hidden;
    background: var(--color-off-white);
}
.gb-album-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}
.gb-album-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--sp-2);
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
}
.gb-album-body h2,
.gb-album-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.gb-album-body h2 a,
.gb-album-body h3 a { color: var(--color-primary); text-decoration: none; }
.gb-album-body h2 a:hover,
.gb-album-body h3 a:hover { color: var(--color-secondary-dark); }
.gb-album-desc {
    color: var(--color-text-light);
    font-size: .93rem;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gb-album-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-top: auto;
    padding-top: var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
}

/* 相册元信息行（地点 / 日期 / 张数），任一为空时整个 span 不输出 */
.gb-meta-sm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px var(--sp-3);
    font-size: .8rem;
    color: var(--color-mid-gray);
    letter-spacing: .01em;
}
.gb-meta-sm > * { display: inline-flex; align-items: center; gap: 5px; }
.gb-meta-sm svg { width: 13px; height: 13px; color: var(--color-secondary-dark); }

/* ------------------------------------------------------------
   4. 相册详情
   ------------------------------------------------------------ */
.gb-album-intro {
    margin: var(--sp-5) 0 0;
    max-width: 68ch;
    font-size: var(--fs-lead);
    line-height: 1.78;
    color: var(--color-text-light);
}

/* 统一比例照片网格（后台上传的相册） */
.gb-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
    margin: 0;
}
.gb-photo { margin: 0; }
.gb-photo-link {
    display: block;
    aspect-ratio: var(--ratio-square);
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
    border: var(--border-hair);
    cursor: zoom-in;
}
.gb-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transition: transform .4s var(--ease-out);
}
.gb-photo-link:hover img { transform: scale(1.03); }
.gb-photo figcaption {
    margin-top: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* 迁移过来的相册正文（WordPress 图库区块）：
   原样保留内容，只把布局收拾成统一比例网格。 */
.gb-album-content { max-width: none; }
.gb-album-content > p {
    max-width: 68ch;
    color: var(--color-text-light);
    line-height: 1.78;
    margin: 0 0 var(--sp-4);
}
/* 「Before」「After」这类大字段落 → 小节标题 */
.gb-album-content p.has-large-font-size {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    font-weight: 600;
    color: var(--color-primary);
    margin: var(--sp-7) 0 var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: var(--border-hair);
    max-width: none;
}
.gb-album-content p.has-large-font-size:first-child { margin-top: 0; }
.gb-album-content p.has-large-font-size strong { font-weight: 600; letter-spacing: .01em; }
.gb-album-content p:empty { display: none; }

.gb-album-content .wp-block-gallery,
.gb-album-content .post-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
    margin: 0 0 var(--sp-6);
    padding: 0;
}
.gb-album-content .wp-block-gallery > figure,
.gb-album-content .post-gallery > figure {
    margin: 0;
    width: auto;
    max-width: none;
}
.gb-album-content .wp-block-gallery img,
.gb-album-content .post-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: var(--ratio-square);
    object-fit: cover;
    object-position: center 40%;
    display: block;
    border-radius: var(--radius-sm);
    margin: 0;
    /* 部分历史照片本身带白底（Facebook 拼图），加一道发丝边框，
       否则白底和白色页面糊在一起，看不出这是一张图 */
    background: var(--color-off-white);
    border: var(--border-hair);
}
.gb-album-content .wp-block-gallery figcaption,
.gb-album-content .post-gallery figcaption {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-top: var(--sp-2);
    line-height: 1.6;
}
/* 相册正文里的单张图片（非图库）也统一比例 */
.gb-album-content > figure.wp-block-image {
    margin: 0 0 var(--sp-6);
    max-width: 720px;
}
.gb-album-content > figure.wp-block-image img {
    width: 100%;
    border-radius: var(--radius-sm);
    aspect-ratio: var(--ratio-wide);
    object-fit: cover;
    object-position: center 40%;
}

/* 相册页脚：其它相册 */
.gb-mini-albums {
    display: grid;
    gap: var(--sp-4);
    margin: 0;
    padding: 0;
    list-style: none;
}
.gb-mini {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
    text-decoration: none;
    padding: var(--sp-3);
    border: var(--border-hair);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color .18s var(--ease-out);
}
.gb-mini:hover { border-color: rgba(15, 76, 92, .3); }
.gb-mini-media {
    flex: 0 0 84px;
    aspect-ratio: var(--ratio-square);
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
}
.gb-mini-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.gb-mini-body { min-width: 0; }
.gb-mini-body strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--color-primary);
    margin-bottom: 3px;
}
.gb-mini:hover .gb-mini-body strong { color: var(--color-secondary-dark); }

/* ------------------------------------------------------------
   5. 文章列表
   ------------------------------------------------------------ */
.gb-featured-post {
    display: grid;
    gap: var(--sp-5);
    margin-bottom: var(--sp-8);
    padding-bottom: var(--sp-8);
    border-bottom: var(--border-hair);
}
/* 后面没有列表时不要留一条悬空的分隔线（如只有一篇文章的分类页） */
.gb-featured-post:last-child,
.gb-feature:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.gb-featured-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    border: var(--border-hair);
    aspect-ratio: var(--ratio-wide);
}
.gb-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transition: transform .5s var(--ease-out);
}
.gb-featured-media:hover img { transform: scale(1.02); }
.gb-featured-body { align-self: center; }
.gb-featured-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 1.15rem + 1.5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    margin: var(--sp-3) 0 var(--sp-4);
    max-width: 24ch;
}
.gb-featured-body h2 a { color: var(--color-primary); text-decoration: none; }
.gb-featured-body h2 a:hover { color: var(--color-secondary-dark); }
.gb-featured-body p {
    color: var(--color-text-light);
    font-size: var(--fs-lead);
    line-height: 1.78;
    margin: 0 0 var(--sp-5);
    max-width: 58ch;
}

.gb-posts {
    display: grid;
    gap: var(--sp-5);
    margin: 0;
    padding: 0;
    list-style: none;
}
.gb-post {
    display: grid;
    gap: var(--sp-4);
    padding-bottom: var(--sp-5);
    border-bottom: var(--border-hair);
}
.gb-post:last-child { border-bottom: 0; padding-bottom: 0; }
.gb-post-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
    aspect-ratio: var(--ratio-wide);
}
.gb-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}
.gb-post-body { min-width: 0; }
.gb-post-body h3 {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.32;
    margin: var(--sp-2) 0 var(--sp-2);
}
.gb-post-body h3 a { color: var(--color-primary); text-decoration: none; }
.gb-post-body h3 a:hover { color: var(--color-secondary-dark); }
.gb-post-excerpt {
    color: var(--color-text-light);
    font-size: .93rem;
    line-height: 1.72;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.gb-pager {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    justify-content: center;
    align-items: center;
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: var(--border-hair);
}
.gb-pager a,
.gb-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary);
    border: 1px solid rgba(15, 76, 92, .18);
    background: var(--color-white);
}
.gb-pager a:hover { border-color: var(--color-primary); }
.gb-pager .is-current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.gb-pager .gb-pager-gap { border: 0; background: none; color: var(--color-mid-gray); min-width: 0; padding: 0 2px; }

/* ------------------------------------------------------------
   6. 文章详情：为长文阅读优化
   ------------------------------------------------------------ */
/* 文章页头与正文栏共用同一条左边界，避免标题与正文错位 */
.gb-article-head .container { max-width: 1000px; }
.gb-article-head-inner { max-width: 68ch; margin: 0 auto; }
.gb-article-head h1 {
    max-width: 26ch;
    font-size: clamp(1.85rem, 1.25rem + 2.6vw, 2.6rem);
}

.gb-cover {
    margin: 0;
    background: var(--color-white);
    padding-top: var(--sp-7);
}
.gb-cover .container { max-width: 1000px; }
.gb-cover-link {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-off-white);
    cursor: zoom-in;
}
.gb-cover-link img { width: 100%; height: auto; display: block; }
.gb-cover figcaption {
    margin-top: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
    line-height: 1.6;
}

.gb-article { padding: var(--sp-7) 0 var(--section-y); background: var(--color-white); }
.gb-article .container { max-width: 1000px; }
.gb-article-inner { max-width: 68ch; margin: 0 auto; }

/* 正文排版：68ch 行长 + 1.8 行高 + 充分段距 */
.gb-article .entry-content {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--color-text);
}
.gb-article .entry-content > * { max-width: 68ch; margin-left: auto; margin-right: auto; }
.gb-article .entry-content p { margin: 0 0 var(--sp-5); }
.gb-article .entry-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
    margin: var(--sp-8) 0 var(--sp-4);
}
.gb-article .entry-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    margin: var(--sp-7) 0 var(--sp-3);
}
.gb-article .entry-content h2:first-child,
.gb-article .entry-content h3:first-child { margin-top: 0; }
.gb-article .entry-content ul,
.gb-article .entry-content ol { margin: 0 0 var(--sp-5); padding-left: 1.4em; }
.gb-article .entry-content li { margin-bottom: var(--sp-2); list-style: disc; }
.gb-article .entry-content ol li { list-style: decimal; }
.gb-article .entry-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.gb-article .entry-content a:hover { color: var(--color-secondary-dark); }
.gb-article .entry-content strong { color: var(--color-text); }
.gb-article .entry-content blockquote {
    margin: var(--sp-6) auto;
    padding: 0 0 0 var(--sp-5);
    border-left: 2px solid var(--color-secondary);
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-style: normal;
    line-height: 1.6;
    color: var(--color-primary);
}
.gb-article .entry-content blockquote p:last-child { margin-bottom: 0; }
.gb-article .entry-content hr {
    border: 0;
    border-top: var(--border-hair);
    margin: var(--sp-7) auto;
}

/* 正文图片：比文字栏更宽（breakout），居中，克制圆角 */
.gb-article .entry-content figure,
.gb-article .entry-content .wp-block-image {
    margin: var(--sp-6) auto;
    max-width: 100%;
}
.gb-article .entry-content figure img,
.gb-article .entry-content > p > img,
.gb-article .entry-content > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
}
.gb-article .entry-content figcaption {
    margin-top: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
    line-height: 1.6;
    text-align: center;
}
/* Facebook 搬来的拼图截图：限宽居中，不铺满、不放大糊掉 */
.gb-article .entry-content .post-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
    margin: var(--sp-6) auto;
}
.gb-article .entry-content .post-gallery figure { margin: 0; }
.gb-article .entry-content .post-gallery img {
    aspect-ratio: var(--ratio-square);
    object-fit: cover;
    object-position: center 40%;
}
/* Facebook 体裁的「emoji + 短语」小标题（见 show.php 的排版转换） */
.gb-article .entry-content p.gb-subhead {
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-primary);
    margin: var(--sp-7) auto var(--sp-4);
}
.gb-article .entry-content p.gb-subhead:first-child { margin-top: 0; }

/* 行内 emoji 尺寸的小图（历史遗留）不当作插图处理 */
.gb-article .entry-content img[width="16"],
.gb-article .entry-content img[height="16"] {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    margin: 0 .25em 0 0;
    vertical-align: -.14em;
    border-radius: 0;
    background: none;
}

/* 地点明细面板（沿用既有 .afc-content-details 数据，换一套克制的外观） */
.gb-article .afc-content-details {
    max-width: 68ch;
    margin: 0 auto var(--sp-6);
    padding: var(--sp-5);
    background: var(--section-wash);
    border: var(--border-hair);
    border-radius: var(--radius-md);
    display: grid;
    gap: var(--sp-4);
}
.gb-article .afc-content-details h2 {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--color-mid-gray);
    margin: 0 0 var(--sp-3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.gb-article .afc-content-details h2 svg { width: 13px; height: 13px; }
.gb-article .afc-content-details dl { margin: 0; display: grid; gap: var(--sp-2); }
.gb-article .afc-content-details dl > div { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.gb-article .afc-content-details dt { font-size: var(--fs-sm); color: var(--color-text-light); min-width: 8.5em; }
.gb-article .afc-content-details dd { margin: 0; font-weight: 600; color: var(--color-primary); font-size: .95rem; }
.gb-article .afc-content-details-actions { margin: 0; }

/* 标签 / 分享 / 上下篇 */
.gb-article-foot { max-width: 68ch; margin: var(--sp-7) auto 0; }
.gb-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    padding-top: var(--sp-5);
    border-top: var(--border-hair);
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
}
.gb-tags a {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 76, 92, .18);
    color: var(--color-primary);
    text-decoration: none;
    font-size: .82rem;
}
.gb-tags a:hover { border-color: var(--color-primary); background: rgba(15, 76, 92, .05); }

.gb-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
    padding-top: var(--sp-5);
    border-top: var(--border-hair);
}
.gb-share > strong { font-size: var(--fs-sm); color: var(--color-mid-gray); font-weight: 600; }
.gb-share a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 76, 92, .18);
    color: var(--color-primary);
    background: var(--color-white);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}
.gb-share a:hover { border-color: var(--color-primary); background: rgba(15, 76, 92, .05); }
.gb-share svg { width: 15px; height: 15px; }

.gb-postnav {
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: var(--border-hair);
}
.gb-postnav a {
    display: block;
    text-decoration: none;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.35;
}
.gb-postnav a:hover { color: var(--color-secondary-dark); }
.gb-postnav small {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--color-mid-gray);
    margin-bottom: 5px;
}
.gb-postnav-next { text-align: left; }

/* 相关文章 */
.gb-related-grid {
    display: grid;
    gap: var(--sp-5);
    margin: 0;
    padding: 0;
    list-style: none;
}
.gb-related-item { display: flex; flex-direction: column; gap: var(--sp-3); }
.gb-related-media {
    display: block;
    aspect-ratio: var(--ratio-wide);
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
}
.gb-related-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.gb-related-item h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}
.gb-related-item h3 a { color: var(--color-primary); text-decoration: none; }
.gb-related-item h3 a:hover { color: var(--color-secondary-dark); }

/* ------------------------------------------------------------
   7. 底部行动区（深色，与首页同一块调性）
   ------------------------------------------------------------ */
.gb-cta {
    background: var(--color-ink);
    color: #fff;
    padding: var(--section-y-sm) 0;
}
.gb-cta-inner { max-width: 62ch; }
.gb-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 var(--sp-3);
}
.gb-cta p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
    margin: 0 0 var(--sp-5);
}
.gb-cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.gb-cta-actions .btn { text-decoration: none; }
.gb-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.gb-cta-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* ------------------------------------------------------------
   8. 断点：≥560 / ≥900 / ≥1180
   ------------------------------------------------------------ */
@media (min-width: 560px) {
    .gb-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gb-album-content .wp-block-gallery,
    .gb-album-content .post-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gb-post {
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: start;
        gap: var(--sp-4);
    }
    .gb-post-body h3 { margin-top: 0; }
    .gb-toolbar-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-4); }
    .gb-searchform { max-width: 300px; }
    .gb-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gb-postnav-next { text-align: right; }
    /* 相关文章取 4 篇，网格也要 4 列，否则第 4 篇会掉到第二行只剩它一个 */
    .gb-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gb-mini-albums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .gb-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
    .gb-feature {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
        gap: clamp(var(--sp-5), 4vw, var(--sp-8));
        align-items: center;
    }
    .gb-featured-post {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: clamp(var(--sp-5), 4vw, var(--sp-8));
        align-items: center;
    }
    .gb-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) clamp(var(--sp-5), 3vw, var(--sp-7)); }
    /* 只剩一条时不要在两列网格里孤零零占半格 */
    .gb-posts:has(> .gb-post:only-child) { grid-template-columns: minmax(0, 620px); }
    .gb-albums:has(> .gb-album:only-child) { grid-template-columns: minmax(0, 420px); }
    .gb-albums:has(> .gb-album:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
    .gb-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gb-album-content .wp-block-gallery,
    .gb-album-content .post-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gb-article .entry-content figure,
    .gb-article .entry-content .wp-block-image,
    .gb-article .entry-content .post-gallery {
        max-width: min(860px, calc(100vw - 2 * var(--sp-6)));
        width: 100%;
    }
    .gb-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-7); max-width: none; }
    .gb-cta-inner > div { max-width: 60ch; }
    .gb-cta p { margin-bottom: 0; }
    .gb-cta-actions { flex: 0 0 auto; }
}

@media (min-width: 1180px) {
    .gb-head { padding-top: calc(var(--header-height) + var(--sp-8)); }
}

/* 长标题/长地名在窄屏不撑破布局 */
@media (max-width: 420px) {
    .gb-crumbs .gb-crumbs-here { max-width: 14ch; }
    .gb-post { grid-template-columns: minmax(0, 1fr); }
    .gb-share a { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   工作国家：首页三卡 + 各国页面的内容聚合
   ===================================================================== */
.countries-section .country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}
.country-card {
    display: flex; flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-line, #e5e1d8);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s, transform .18s;
}
a.country-card:hover { border-color: var(--color-accent-warm); transform: translateY(-2px); }
.country-media { display: block; aspect-ratio: var(--ratio-wide); overflow: hidden; }
.country-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.country-body { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.country-name {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
    color: var(--color-ink); line-height: 1.25;
}
.country-desc { font-size: .95rem; line-height: 1.65; color: var(--color-mid-gray); }
.country-count {
    font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
    color: var(--color-accent-warm); font-weight: 600; margin-top: 2px;
}
.country-more { margin-top: auto; padding-top: var(--sp-3); font-size: .9rem; font-weight: 600; color: var(--color-primary); }

/* ---- 各国页面：报道列表 ---- */
.country-feed .cf-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.cf-post { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.cf-post-media { display: block; aspect-ratio: var(--ratio-wide); overflow: hidden; border-radius: 10px; }
.cf-post-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; transition: transform .3s; }
.cf-post:hover .cf-post-media img { transform: scale(1.03); }
.cf-post-body { display: flex; flex-direction: column; gap: 5px; padding-top: var(--sp-3); }
.cf-post-meta { font-size: .8rem; color: var(--color-mid-gray); letter-spacing: .02em; }
.cf-post-title { font-size: 1.02rem; font-weight: 600; line-height: 1.45; color: var(--color-ink); }
.cf-post:hover .cf-post-title { color: var(--color-primary); }

/* ---- 各国页面：相册 ---- */
.cf-sub {
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
    margin: var(--sp-7) 0 var(--sp-4); color: var(--color-ink);
}
.cf-albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.cf-album { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.cf-album-media { display: block; aspect-ratio: var(--ratio-square); overflow: hidden; border-radius: 10px; }
.cf-album-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.cf-album-title { font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--color-ink); }
.cf-album:hover .cf-album-title { color: var(--color-primary); }
.cf-album-count { font-size: .8rem; color: var(--color-mid-gray); }
.cf-actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

@media (max-width: 640px) {
    .countries-section .country-grid { grid-template-columns: 1fr; }
    .country-media { aspect-ratio: 2 / 1; }
}

/* 自托管视频（媒体库里的 mp4/webm） */
.afc-video {
    display: block; width: 100%; height: auto;
    border-radius: 12px; background: #0e1417;
    box-shadow: var(--shadow-card);
}
.video-caption { margin-top: var(--sp-4); font-size: .96rem; line-height: 1.75; color: var(--color-mid-gray); }
.video-caption p:last-child { margin-bottom: 0; }

/* Impact 页的成果明细：数字要一眼看得见，但不做成表格 —— 每条是一句完整的话 */
.impact-list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.impact-list li {
    padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
    border-bottom: 1px solid var(--color-line, #e5e1d8);
    position: relative; line-height: 1.7;
}
.impact-list li:last-child { border-bottom: 0; }
.impact-list li::before {
    content: ''; position: absolute; left: 0; top: 1.55em;
    width: 10px; height: 1px; background: var(--color-accent-warm);
}
.impact-list strong {
    font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
    color: var(--color-accent-warm); margin-right: 4px;
}
@media (min-width: 860px) { .impact-list { grid-template-columns: 1fr 1fr; column-gap: var(--sp-7); } }

/* 成果数字块底部的入口按钮（把数字变成通往完整报告的门） */
/* 按钮跟着左栏走，不再居中（居中是旧的单栏布局留下的） */
.inum-actions { margin-top: var(--sp-5); display: flex; justify-content: flex-start; }
.impact-numbers-section .inum-actions .btn,
.inum-actions .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.inum-actions .btn:hover { background: rgba(255,255,255,.12); }

/* =====================================================================
   分节节奏：相邻两个白底 section 之间必须有分界，否则会糊成一整片
   ===================================================================== */

/* 「Where We Work」原来是纯白，紧跟在同为白底的「What We Do」后面，
   两块之间没有任何分隔。给它上米白底，靠底色变化自然分节 —— 这比画线更高级。 */
.countries-section {
    background: var(--section-wash);
    border-top: var(--border-hair);
    border-bottom: var(--border-hair);
}

/* 兜底：任何两个连续的白底区块之间补一条发丝线。
   有自己底色的区块（深色、米白、满宽照片）靠底色本身分隔，
   下面单独取消它们的线，避免在色块交界处再叠一条多余的线。 */
.section + .section { border-top: var(--border-hair); }
/* 只在「相邻两块本来就有明显视觉差异」的地方免掉这条线：
   满宽照片带、深色 CTA、首屏之后 —— 那里色块本身已经把两节分开了。
   注意不要把 countries/story 免掉：这两块底色相同，紧挨着时正需要这条线。 */
.photo-band + .section,
.section + .cta-section,
.section + .photo-band,
.hero + .section { border-top: 0; }

/* 跳到主内容：平时移出屏幕，键盘聚焦时才滑出来 */
.skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 10001;
    transform: translateY(-120%);
    background: var(--color-primary, #0f4c5c);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 var(--radius-sm, 6px) var(--radius-sm, 6px);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease;
}
.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--color-secondary, #d4af37);
    outline-offset: 2px;
}

/* 单张图片区块的说明文字（图注之下，比图注更长的解释） */
.single-image-note {
    margin-top: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.75;
    text-align: center;
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}
.single-image-note p { margin: 0; }

/* ============================================================
   捐款：先选国家，再看该国收款资料
   两套账号平铺在一起最容易让人转错行，所以先做一次明确的选择。
   ============================================================ */
.bank-choose { margin-bottom: var(--sp-6); }
.bank-choose-lead {
    margin: 0 0 var(--sp-4);
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-light);
}
.bank-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--sp-4);
    max-width: 720px;
    margin: 0 auto;
}
.bank-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: var(--sp-5) var(--sp-4);
    background: var(--color-white);
    border: 2px solid rgba(15, 76, 92, 0.16);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition), background var(--transition),
                box-shadow var(--transition), transform var(--transition);
}
.bank-tab:hover { border-color: rgba(15, 76, 92, 0.4); transform: translateY(-2px); }
.bank-tab:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }
.bank-tab-name {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}
.bank-tab-note { font-size: var(--fs-sm); color: var(--color-text-light); line-height: 1.45; }

/* 选中的那张：金色描边 + 底部一条实心条，一眼看得出现在在看哪个国家 */
.bank-tab.is-on {
    border-color: var(--color-secondary);
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 8px 24px rgba(15, 76, 92, 0.08);
}
.bank-tab.is-on .bank-tab-name { color: var(--color-primary); }
.bank-tab.is-on::after {
    content: '';
    width: 40px;
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 2px;
    background: var(--color-secondary);
}

/* 面板：没有 JS 时全部显示（信息一条不少）；有 JS 才只留选中的 */
.bank-tabpanel { margin-top: var(--sp-6); }
.bank-tabpanels.has-js .bank-tabpanel { display: none; margin-top: 0; }
.bank-tabpanels.has-js .bank-tabpanel.is-on { display: block; }
.bank-panel-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 var(--sp-5);
}

@media (max-width: 560px) {
    .bank-tabs { grid-template-columns: 1fr; gap: var(--sp-3); max-width: none; }
    .bank-tab { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 0.2rem 0.6rem; padding: var(--sp-4); }
    .bank-tab-name { font-size: 1.1rem; }
    .bank-tab.is-on::after { width: 100%; margin-top: 0.35rem; }
}

/* =========================================================================
   AFC v2 —— 多语言排版 / 新版组件
   ========================================================================= */

/* ---------- 缅文 / 泰文排版 ----------
   缅文有堆叠元音与下加符号，1.7 行高会裁切；必须单独放大行高与字号。
   :lang() 让同一段落里的缅文片段也能正确取用字体。 */
:lang(my), .lang-my, .t-mm {
    font-family: var(--font-mm);
    line-height: 2.05;          /* 缅文堆叠符号需要更大行距，1.7 会切顶/切底 */
    letter-spacing: 0;
    word-break: break-word;     /* 缅文词间无空格，避免长串溢出 */
}
:lang(th), .lang-th, .t-th {
    font-family: var(--font-th);
    line-height: 1.95;
    word-break: break-word;
}
/* 缅文标题不用 Fraunces（无缅文字形，会 fallback 成难看的系统字） */
:lang(my) h1, :lang(my) h2, :lang(my) h3, .t-mm h1, .t-mm h2, .t-mm h3 { font-family: var(--font-mm); }
:lang(th) h1, :lang(th) h2, :lang(th) h3, .t-th h1, .t-th h2, .t-th h3 { font-family: var(--font-th); }

/* ---------- 正文行宽：65–75 字符 ---------- */
.measure, .rich-text > p, .page-body > p { max-width: var(--measure); }

/* ---------- 焦点可见（键盘用户） ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---------- 触控目标 ≥44px ---------- */
.bnav a, .btn, .nav-give-link { min-height: var(--tap-min); }

/* ---------- Header：滚动后轻微收缩 ---------- */
.site-header { transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.site-header.scrolled { box-shadow: var(--shadow-md); backdrop-filter: saturate(1.1) blur(6px); }
.site-header.scrolled .header-inner { min-height: var(--header-height-scrolled); }
.header-inner { transition: min-height var(--dur) var(--ease-out); }

/* Give 作为次级文字链，不与「Plan Your Visit」抢主按钮位置 */
.nav-give-link {
    display: inline-flex; align-items: center; padding: 0 var(--sp-3);
    color: var(--text-primary); font-weight: 600; font-size: var(--fs-sm);
    border-radius: var(--radius-pill); text-decoration: none;
}
.nav-give-link:hover { color: var(--primary); background: rgba(168,0,63,.06); }

/* ---------- 手机端：底部导航存在时隐藏 WhatsApp 浮球（避免双重遮挡） ---------- */
@media (max-width: 860px) {
    .whatsapp-float { display: none !important; }
    /* 正文底部预留底部导航 + iPhone 安全区 */
    body { padding-bottom: calc(var(--bottomnav-height) + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================================
   Next Service —— Hero 下方的快速信息条
   ========================================================================= */
.nextsvc {
    background: var(--surface-deep);
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nextsvc-in {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: rgba(255,255,255,.10);
}
.nextsvc-item {
    display: flex; gap: var(--sp-3); align-items: center;
    padding: var(--sp-5) var(--sp-4);
    background: var(--surface-deep); color: var(--text-on-dark);
    text-decoration: none; min-height: 84px;
    transition: background var(--dur) var(--ease-out);
}
a.nextsvc-item:hover { background: #4A1D2A; color: #fff; }
.nextsvc-ic { flex: 0 0 34px; height: 34px; display: grid; place-items: center;
    border-radius: var(--radius-pill); background: rgba(233,185,73,.16); color: #E9B949; }
.nextsvc-ic svg { width: 17px; height: 17px; }
.nextsvc-k { display: block; font-size: var(--fs-xs); text-transform: uppercase;
    letter-spacing: .08em; color: rgba(247,241,236,.62); margin-bottom: 2px; }
.nextsvc-v { display: block; font-weight: 600; font-size: .95rem; line-height: 1.35; }
@media (max-width: 900px) { .nextsvc-in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) {
    .nextsvc-in { grid-template-columns: 1fr; }
    .nextsvc-item { min-height: 68px; padding: var(--sp-4); }
}

/* =========================================================================
   Welcome —— 牧者欢迎（editorial，不是卡片）
   ========================================================================= */
.welcome-sec { background: var(--background); }
.welcome-grid {
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(var(--sp-6), 5vw, var(--sp-9)); align-items: center;
}
.welcome-portrait { position: relative; }
.welcome-portrait img {
    width: 100%; aspect-ratio: var(--ratio-portrait); object-fit: cover;
    border-radius: var(--radius-lg);
}
/* 尚无牧者照片时的占位：设计成有意为之的状态，而不是灰色破图 */
.welcome-ph {
    aspect-ratio: var(--ratio-portrait); border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--surface-wash), #EDE2D6);
    border: 1px dashed var(--border-strong);
    display: grid; place-items: center; text-align: center; padding: var(--sp-6);
    color: var(--text-secondary);
}
.welcome-ph svg { width: 34px; height: 34px; color: var(--primary); opacity: .5; margin-bottom: var(--sp-3); }
.welcome-ph b { display: block; color: var(--text-primary); font-size: .95rem; margin-bottom: 4px; }
.welcome-ph span { font-size: var(--fs-sm); line-height: 1.5; }
.welcome-body h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.15; margin-bottom: var(--sp-4); }
.welcome-body .lede { font-size: var(--fs-lead); color: var(--text-secondary); max-width: var(--measure); }
.welcome-body p { max-width: var(--measure); }
.welcome-sign { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-secondary); }
.welcome-sign b { display: block; color: var(--text-primary); font-size: 1rem; }
@media (max-width: 820px) {
    .welcome-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .welcome-portrait, .welcome-ph { max-width: 300px; }
}

/* =========================================================================
   Schedule —— 聚会日程（简洁时间表，不是四张卡片）
   ========================================================================= */
.sched-sec { background: var(--surface-wash); border-top: var(--border-hair); border-bottom: var(--border-hair); }
.sched-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--surface); }
.sched-row {
    display: grid; grid-template-columns: 150px 1fr auto; align-items: center;
    gap: var(--sp-4); padding: var(--sp-5) var(--sp-5);
    border-bottom: 1px solid var(--border);
}
.sched-row:last-child { border-bottom: 0; }
.sched-row.is-next { background: linear-gradient(90deg, rgba(233,185,73,.14), transparent 60%); }
.sched-day { font-weight: 700; color: var(--primary); font-size: .95rem; letter-spacing: .01em; }
.sched-name { font-weight: 600; color: var(--text-primary); }
.sched-note { display: block; font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 400; margin-top: 2px; }
.sched-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.sched-badge { display: inline-block; margin-left: var(--sp-2); padding: 2px 9px; border-radius: var(--radius-pill);
    background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
.sched-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
@media (max-width: 700px) {
    .sched-row { grid-template-columns: 1fr auto; gap: var(--sp-2) var(--sp-4); padding: var(--sp-4); }
    .sched-day { grid-column: 1 / -1; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
    .sched-time { grid-column: 2; grid-row: 2; }
}

/* =========================================================================
   Transportation —— 免费接送（深色带 + 表单，首页重点功能）
   ========================================================================= */
.ride-sec { background: var(--surface-deep); color: var(--text-on-dark); }
.ride-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: clamp(var(--sp-6), 5vw, var(--sp-8)); align-items: start; }
.ride-copy h2 { font-family: var(--font-display); font-size: var(--fs-h2); color: #fff; line-height: 1.15; margin-bottom: var(--sp-4); }
.ride-copy p { color: rgba(247,241,236,.82); max-width: 46ch; }
.ride-facts { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.ride-facts li { display: flex; gap: var(--sp-3); align-items: flex-start; color: rgba(247,241,236,.92); font-size: .95rem; }
.ride-facts svg { flex: 0 0 18px; width: 18px; height: 18px; color: #E9B949; margin-top: 3px; }
.ride-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.ride-form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(var(--sp-5), 3vw, var(--sp-6)); color: var(--text-primary); }
.ride-form h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.ride-form .ride-form-note { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-5); }
@media (max-width: 880px) { .ride-grid { grid-template-columns: 1fr; } }

/* ---------- 表单控件（Contact / Transportation 共用） ---------- */
.f-row { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.f-row.f-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .f-row.f-2 { grid-template-columns: 1fr; } }
.f-field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--text-primary); }
.f-field .f-opt { font-weight: 400; color: var(--text-secondary); }
.f-field input, .f-field select, .f-field textarea {
    width: 100%; min-height: var(--btn-h); padding: 10px var(--sp-4);
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
    font: inherit; font-size: 1rem;   /* 16px 防止 iOS 聚焦缩放 */
    background: var(--surface); color: var(--text-primary);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.f-field textarea { min-height: 120px; padding-top: var(--sp-3); resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168,0,63,.14);
}
.f-field.has-error input, .f-field.has-error select, .f-field.has-error textarea { border-color: var(--error); }
.f-err { display: block; margin-top: 5px; font-size: var(--fs-sm); color: var(--error); font-weight: 500; }
.f-hint { display: block; margin-top: 5px; font-size: var(--fs-sm); color: var(--text-secondary); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-submit { width: 100%; }
.f-submit[aria-busy="true"] { opacity: .72; pointer-events: none; }
.f-alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md); margin-bottom: var(--sp-5); font-size: .95rem; }
.f-alert-ok { background: rgba(31,122,77,.10); border: 1px solid rgba(31,122,77,.32); color: #14603A; }
.f-alert-err { background: rgba(179,38,30,.08); border: 1px solid rgba(179,38,30,.30); color: #8E1D17; }
.f-alert b { display: block; margin-bottom: 3px; }

/* =========================================================================
   Ministries —— 事工入口（图文交错，非四张同款卡）
   ========================================================================= */
.min-list { display: grid; gap: clamp(var(--sp-6), 4vw, var(--sp-8)); }
.min-item { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(var(--sp-5), 4vw, var(--sp-7)); align-items: center; }
.min-item:nth-child(even) .min-media { order: 2; }
.min-media img { width: 100%; aspect-ratio: var(--ratio-wide); object-fit: cover; border-radius: var(--radius-lg); }
.min-kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--sp-2); }
.min-body h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-bottom: var(--sp-3); }
.min-body p { color: var(--text-secondary); max-width: var(--measure); }
.min-meta { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); }
.min-meta li { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); color: var(--text-primary); }
.min-meta svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--primary); }
.min-body .btn { margin-top: var(--sp-5); }
@media (max-width: 820px) {
    .min-item { grid-template-columns: 1fr; gap: var(--sp-5); }
    .min-item:nth-child(even) .min-media { order: 0; }
}

/* =========================================================================
   Editorial photo grid —— 首页教会生活（不规则，不是商品网格）
   ========================================================================= */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.pgrid a { display: block; overflow: hidden; border-radius: var(--radius-img); background: var(--surface-wash); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.pgrid a:hover img { transform: scale(1.04); }
.pgrid .p-tall  { grid-row: span 2; aspect-ratio: 3 / 4; }
.pgrid .p-wide  { grid-column: span 2; aspect-ratio: 16 / 9; }
.pgrid .p-sq    { aspect-ratio: 1 / 1; }
.pgrid a > img { display: block; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } .pgrid .p-tall { grid-row: span 1; aspect-ratio: 1/1; } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); } .pgrid .p-wide { grid-column: span 2; } }

/* =========================================================================
   Final CTA —— 整块构图（照片 + 遮罩），不是普通矩形卡
   ========================================================================= */
.wcta { position: relative; isolation: isolate; color: #fff; text-align: center;
    padding: clamp(var(--sp-8), 9vw, 140px) var(--sp-4); overflow: hidden; }
.wcta::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--surface-deep); }
.wcta img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.wcta::after { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(36,18,24,.72), rgba(36,18,24,.82)); }
.wcta h2 { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
    line-height: 1.1; color: #fff; margin-bottom: var(--sp-4); }
.wcta p { color: rgba(255,255,255,.9); font-size: var(--fs-lead); max-width: 52ch; margin: 0 auto var(--sp-6); }
.wcta-btns { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }

/* ---------- 克制的入场动画（尊重 reduced-motion） ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px);
        transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
    .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   v2 视觉修正（首轮审查发现）
   ========================================================================= */

/* 页脚：深梅色而非品牌红 —— 大面积高饱和红会压过内容，也让页面出现第三个强调色 */
.site-footer { background: var(--surface-deep); color: rgba(247, 241, 236, .78); }
.site-footer a { color: rgba(247, 241, 236, .82); }
.site-footer a:hover { color: #E9B949; }
.site-footer h3, .footer-title { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }

/* 标题排版：避免「孤立单词」独占一行（Mae Sot 被拆到第四行那种） */
.hero h1, .wcta h2, .section-header h2, .welcome-body h2, .ride-copy h2, .min-body h3 {
    text-wrap: balance;
}
.hero h1 { max-width: 16ch; }        /* 大标题限宽，换行点由排版控制而不是碰运气 */
@media (max-width: 720px) { .hero h1 { max-width: 100%; } }

/* Hero 底部信任行：给足呼吸，不再挤成两行小字 */
.hero-trust {
    font-size: var(--fs-sm); line-height: 1.6; max-width: 60ch;
    margin-top: var(--sp-5); padding-top: var(--sp-4);
    border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.88);
}

/* 照片墙：dense 填充，消除底部空洞 */
.pgrid { grid-auto-flow: dense; }

/* 牧者占位：收敛尺寸，看起来是「有意的待补状态」而不是坏图 */
.welcome-ph { max-width: 320px; aspect-ratio: 1 / 1; }

/* News 卡片：去掉顶部彩色条，避免与品牌红叠加过多色彩 */
.blog-section .post-card { border-top-color: var(--border); }

/* 手机端 Hero 高度上限：留出「下面还有内容」的暗示，不占满整屏 */
@media (max-width: 860px) {
    .hero { min-height: 0; max-height: 86svh; }
    .hero .container { padding-top: var(--sp-7); padding-bottom: var(--sp-6); }
}

/* ---------- 语言切换 ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; margin-right: var(--sp-2);
    background: rgba(36,26,29,.05); border-radius: var(--radius-pill); }
.lang-switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--sp-3);
    border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600;
    color: var(--text-secondary); text-decoration: none; }
.lang-switch a.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.lang-switch a:hover { color: var(--primary); }

/* ---------- 「尚未翻译」提示条 ---------- */
.lang-fallback {
    display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline;
    padding: var(--sp-3) var(--sp-5); background: rgba(233,185,73,.16);
    border-bottom: 1px solid rgba(184,117,20,.30); font-size: var(--fs-sm); color: var(--text-primary);
}
.lang-fallback strong { color: var(--accent-text); }
.lang-fallback a { color: var(--primary); text-decoration: underline; }

/* =========================================================================
   v2 无障碍修正（响应式测试实测发现）
   ========================================================================= */

/* ---------- 触控目标：手机端一律 ≥44px 高 ---------- */
@media (max-width: 860px) {
    .read-more,
    .blog-card-title a,
    .post-card h3 a,
    .contact-method,
    .footer-credit,
    .footer-contact a,
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* 页脚联系方式是图标+文字的行，用 flex 保持图标对齐 */
    .footer-contact a { gap: var(--sp-3); }
}

/* ---------- 手机端正文字号 ≥16px ----------
   规范硬性要求。以下都是真正的正文内容（不是元信息），
   在小屏上缩到 13–15px 会让长期阅读变得吃力，对年长会众尤其明显。 */
@media (max-width: 860px) {
    .blog-card-excerpt,
    .post-card p,
    .gb-card p,
    p.lede,
    .rich-text p,
    .page-body p,
    .welcome-body p,
    .min-body p,
    .ride-copy p,
    .ride-facts li,
    .section-header p {
        font-size: 1rem;      /* 16px */
        line-height: 1.65;
    }
    /* 元信息（署名、提示、版权）保持 14px —— 它们不是正文，
       放大反而与正文抢层级；14px 在手机上仍然清晰可读。 */
    .hero-trust, .welcome-sign, .f-hint, .ride-form-note, .footer-bottom p {
        font-size: 0.875rem;
    }
}

/* 页脚品牌简介是正文性质的内容，不要压到 14px 以下 */
.footer-brand p { font-size: 0.9375rem; line-height: 1.7; }

/* 补齐实测剩余项：文章卡标题链接与页脚联系方式的触控高度 */
@media (max-width: 860px) {
    .blog-card-body h3 a,
    .footer-contact-item a { min-height: 44px; display: inline-flex; align-items: center; }
    /* 图文区块的正文同样属于正文，不能停在 15.2px */
    .impact-text p, .impact-content p { font-size: 1rem; line-height: 1.65; }
    .footer-brand p { font-size: 1rem; }
}

/* 320px 极窄屏补齐：Give / News / Gallery 上剩余的小触控目标
   （复制按钮、分类 chip、面包屑、卡片更多链接） */
@media (max-width: 860px) {
    .give-way-link,
    .gb-more-link,
    .gb-chip,
    .gb-crumbs a,
    .gb-meta-sm a { min-height: 44px; display: inline-flex; align-items: center; }
    /* 复制按钮：账号一键复制是 Give 页最关键的动作，必须好按 */
    .copy-btn { min-height: 44px; padding-inline: var(--sp-3); }
}

/* =========================================================================
   对比度修正（Lighthouse 实测未达 WCAG AA 的两处）
   ========================================================================= */

/* Logo 锁定文字「for Christ」：琥珀 #B87514 在象牙底上只有 3.5:1，
   正文尺寸需要 4.5:1 —— 换用加深版 #8F5A0C（5.39:1）。 */
.site-branding .site-title span { color: var(--accent-text); }

/* 页脚版权/次要文字：原色在深梅底上仅 3.64:1 —— 提亮到 7:1 以上。 */
.site-footer, .footer-bottom p, .footer-bottom { color: #C9BBBF; }
.site-footer p { color: #C9BBBF; }
.footer-credit { color: #C9BBBF; }

/* 当前导航项：琥珀 #B87514 在浅底上 3.5:1，正文尺寸不达 AA。
   改用主品牌红（7.3:1），并保留琥珀下划线作为视觉标记 —— 
   状态不只靠颜色表达，也符合「不得仅用颜色传达信息」。 */
.main-navigation .current-menu-item > a {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

/* 视觉隐藏但仍在无障碍树与文本内容中 —— 让「Read More」这类链接
   对屏幕阅读器和搜索引擎是描述性的，视觉上仍保持简洁。 */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 「Read More / 次级文字链」原用琥珀 #B87514，在浅底上只有 3.2–3.6:1，
   14px 正文尺寸需要 4.5:1 —— 改用主品牌红（7.3:1）。 */
.read-more { color: var(--primary); }
.read-more:hover { color: var(--primary-hover); }

/* =========================================================================
   无障碍：正文内链接不能只靠颜色区分（WCAG 1.4.1）
   ========================================================================= */
/* 正文段落/列表里的内联链接一律加下划线 —— 色盲用户与低对比环境下，
   只靠颜色分辨不出哪里可以点（WCAG 1.4.1）。
   用「p/li 内的 a」这条通用规则，而不是逐个列容器类名 ——
   后者每加一个新区块就会漏掉一处。按钮与卡片整体链接除外。 */
.site-main p > a:not(.btn):not(.read-more):not(.gb-chip),
.site-main li > a:not(.btn):not(.read-more):not(.gb-chip):not([class*="nav"]),
.site-footer .footer-brand p > a {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.site-main p > a:hover:not(.btn):not(.read-more) { text-decoration-thickness: 2px; }

/* 图库卡片的次要文字（地点/照片数）对比度不足 4.5:1 —— 加深 */
.gb-meta-sm, .gb-album-meta, .gb-card-meta { color: var(--text-secondary); }

/* 牧者欢迎区没有照片时：单栏居中排版。
   不要让文字横铺满屏 —— 行宽超过 75 字符就很难读了。 */
.welcome-solo .welcome-grid { grid-template-columns: 1fr; }
.welcome-solo .welcome-body { max-width: 62ch; margin: 0 auto; text-align: center; }
.welcome-solo .welcome-body p,
.welcome-solo .welcome-body .lede { max-width: 100%; }
.welcome-solo .welcome-body .hero-buttons { justify-content: center; }
.welcome-solo .welcome-sign { margin-top: var(--sp-6); }
@media (max-width: 700px) {
    .welcome-solo .welcome-body { text-align: left; }
    .welcome-solo .welcome-body .hero-buttons { justify-content: flex-start; }
}

/* =========================================================================
   排版修正（用户反馈）
   ========================================================================= */

/* ---------- 文章卡：条目少于列数时居中，不留右侧空洞 ----------
   原来固定 4 列，首页只有 3 篇 → 右边永远空一格。
   auto-fit 让列数跟着内容走，配合 justify-content 居中，
   3 篇是居中的三张，4 篇自然铺满，都不会出现空格子。 */
.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 330px));
    justify-content: center;
}

/* ---------- 教会生活照片墙：改成有意设计的构图 ----------
   原来靠 dense 自动流 + 混合跨度，6 张图排出来东一块西一块、右侧大片空洞。
   改成固定 3 列：第一张占 2×2 做主图，其余依次填满，正好是一个完整矩形。 */
.pgrid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: row dense;
    gap: var(--sp-3);
}
.pgrid a { aspect-ratio: 4 / 3; grid-column: auto; grid-row: auto; }
.pgrid a:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;          /* 由所跨两行的高度决定，避免比例打架 */
}
/* 覆盖旧的 p-tall / p-wide / p-sq 跨度类：新构图靠位置而不是逐张指定 */
.pgrid .p-tall, .pgrid .p-wide, .pgrid .p-sq {
    grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3;
}
.pgrid .p-wide:first-child, .pgrid .p-tall:first-child, .pgrid .p-sq:first-child {
    grid-column: span 2; grid-row: span 2; aspect-ratio: auto;
}
@media (max-width: 900px) {
    .pgrid { grid-template-columns: repeat(2, 1fr); }
    .pgrid a:first-child,
    .pgrid .p-wide:first-child, .pgrid .p-tall:first-child, .pgrid .p-sq:first-child {
        grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10;
    }
}
