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

:root {
    --primary-red: #d32f2f;
    --primary-black: #212121;
    --primary-white: #ffffff;
    --accent-beige: #f5f5dc;
    --light-red: #ffebee;
    --dark-red: #b71c1c;
    --gray-light: #f8f9fa;
    --gray-medium: #e0e0e0;
    
    /* 統一的動畫系統 */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 統一的陰影系統 */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-red: 0 4px 20px rgba(211, 47, 47, 0.3);
    
    /* 統一的變換系統 */
    --transform-hover: translateY(-3px);
    --transform-scale: scale(1.05);
    --transform-scale-small: scale(1.02);
}

body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--primary-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--primary-white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-red);
    transition: all var(--transition-medium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-medium);
}

.logo-link:hover {
    transform: var(--transform-scale-small);
    text-decoration: none;
    color: inherit;
}

.logo-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform var(--transition-medium);
    max-width: 100%;
    max-height: 100%;
}

.logo-link:hover .logo-image img {
    transform: var(--transform-scale);
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Noto Serif TC', serif;
    color: var(--primary-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text .subtitle {
    font-size: 0.8rem;
    color: var(--primary-white);
    margin-top: 0.2rem;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav li {
    list-style: none;
}

nav li::before,
nav li::after {
    display: none !important;
    content: none !important;
}

nav a {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-medium);
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-white);
    transition: width var(--transition-medium);
}

nav a:hover::after {
    width: 100%;
}

/* 桌面版隱藏漢堡選單按鈕 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--primary-white);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(212, 47, 47, 0.15), rgba(183, 28, 28, 0.15));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}



.hero-content h2 {
    font-size: 3.8rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
    font-family: 'Noto Serif TC', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.8rem;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-white);
    color: var(--primary-red);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--primary-white);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-white);
    transform: var(--transform-hover);
    box-shadow: var(--shadow-medium);
}

/* Sections */
section {
    padding: 6rem 0;
}

/* 統一的動畫樣式 - 簡化版本 */
.section-title,
.section-subtitle {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.events-grid,
.services-grid,
.contact-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 統一的按鈕動畫 */
.btn, .cta-button, .event-register, .about-link {
    transition: all var(--transition-medium);
}

.btn:hover, .cta-button:hover, .event-register:hover, .about-link:hover {
    transform: var(--transform-hover);
}

/* 分頁按鈕特殊處理 */
.tab-button {
    transition: all var(--transition-medium);
}

.tab-button:hover {
    transform: var(--transform-hover);
}

/* 統一的卡片動畫 */
.card, .service-card, .event-card, .leader-card {
    transition: all var(--transition-medium);
}

.card:hover, .service-card:hover, .event-card:hover, .leader-card:hover {
    transform: var(--transform-hover);
    box-shadow: var(--shadow-medium);
}

/* 滾動指示器動畫 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator {
    transition: opacity var(--transition-medium);
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid white;
    margin: 0 auto 0.5rem;
}

.scroll-text {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: var(--primary-red);
    position: relative;
    font-family: 'Noto Serif TC', serif;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.6;
    margin-top: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-black);
    border-radius: 1px;
}

/* About Section */
.about {
    background: var(--gray-light);
    position: relative;
}

/* About Tabs */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* About Page Specific Styles */
.about-page {
    background: var(--gray-light);
    padding: 4rem 0;
    min-height: 80vh;
}

.mission-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.15);
}

.mission-icon {
    font-size: 2.2rem;
    min-width: 65px;
    text-align: center;
    line-height: 1;
}

.mission-content h4 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif TC', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.mission-content p {
    color: var(--primary-black);
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    letter-spacing: 0.1px;
}

.org-description {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.org-description h4 {
    color: var(--primary-red);
    margin-bottom: 1.2rem;
    font-family: 'Noto Serif TC', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.org-description p {
    color: var(--primary-black);
    line-height: 1.7;
    font-size: 1.05rem;
    letter-spacing: 0.1px;
}

.tab-button {
    background: var(--primary-white);
    color: var(--primary-black);
    border: 2px solid var(--gray-medium);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
}

.tab-button:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--primary-red);
    color: var(--primary-white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 2rem;
}

.about-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-red);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
}

.about-link:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
    color: var(--primary-red);
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 1.4rem;
    font-size: 1.15rem;
    line-height: 1.8;
    letter-spacing: 0.1px;
    color: var(--primary-black);
}

.about-image {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    height: 450px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.about-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.about-logo-image {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform var(--transition-medium);
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.about-logo-image:hover {
    transform: scale(1.05);
}

.about-logo-title {
    font-family: 'Noto Serif TC', serif;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-white);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-logo-subtitle {
    font-size: 1.3rem;
    margin-top: 0.8rem;
    color: var(--primary-white);
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.about-logo-description {
    font-size: 1rem;
    margin-top: 0.6rem;
    color: var(--primary-white);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* Leadership Section */
.leadership-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-medium);
}

.leadership-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-red);
    font-family: 'Noto Serif TC', serif;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leader-card {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 35px rgba(211, 47, 47, 0.15);
}

.leader-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    color: var(--primary-white);
    font-weight: 600;
    font-size: 1rem;
}

.leader-card h4 {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif TC', serif;
}

.leader-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.leader-subtitle {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
}

.leader-title {
    font-size: 0.9rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 500;
}

.leader-desc {
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 理事長特色卡片樣式 */
.leader-card.featured {
    border: 3px solid var(--primary-red);
    box-shadow: 0 12px 35px rgba(211, 47, 47, 0.2);
    transform: scale(1.02);
}

.leader-card.featured .leader-avatar {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
}

/* 歷屆理事長時間軸樣式 */
.leadership-timeline {
    position: relative;
    padding: 2rem 0;
}

.leadership-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-red), var(--dark-red));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: var(--primary-white);
    border: 4px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
    padding: 8px;
    box-sizing: border-box;
}

.timeline-marker.current {
    background: var(--primary-red);
    border-color: var(--dark-red);
    transform: scale(1.1);
}

.timeline-marker.founder {
    background: var(--dark-red);
    border-color: var(--primary-red);
}

.marker-icon {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.timeline-marker.current .marker-icon,
.timeline-marker.founder .marker-icon {
    color: var(--primary-white);
}

.timeline-content {
    flex: 1;
    margin: 0 2rem;
    max-width: 500px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

/* 歷屆理事長卡片樣式 */
.leader-card {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.leader-card.founder {
    border-color: var(--dark-red);
    background: linear-gradient(135deg, var(--gray-light), var(--primary-white));
}

.leader-info h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif TC', serif;
    font-size: 1.3rem;
}

.leader-name {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.leader-title {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.leader-period {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--light-red);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.leader-desc {
    color: var(--primary-black);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.leader-achievements {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-red);
}

.leader-achievements h5,
.leader-education h5,
.leader-specialization h5,
.leader-experience h5,
.leader-teaching h5,
.leader-positions h5,
.leader-current h5 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-family: 'Noto Serif TC', serif;
}

.leader-achievements ul,
.leader-education ul,
.leader-specialization ul,
.leader-experience ul,
.leader-teaching ul,
.leader-positions ul,
.leader-current ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.leader-achievements li,
.leader-education li,
.leader-specialization li,
.leader-experience li,
.leader-teaching li,
.leader-positions li,
.leader-current li {
    color: var(--primary-black);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.leader-achievements li::before,
.leader-education li::before,
.leader-specialization li::before,
.leader-experience li::before,
.leader-teaching li::before,
.leader-positions li::before,
.leader-current li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* 現任職務樣式 */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.position-item {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--gray-medium);
    transition: all var(--transition-fast);
    position: relative;
}

.position-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.position-item.primary {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, var(--light-red), var(--primary-white));
    box-shadow: var(--shadow-red);
}

.position-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.position-content h5 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif TC', serif;
    font-size: 1.1rem;
    line-height: 1.4;
}

.position-title {
    color: var(--dark-red);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.position-desc {
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 理事長詳細資訊樣式 */
.leader-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-medium);
}

.detail-section {
    margin-bottom: 1.5rem;
    text-align: left;
}

.detail-section h5 {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif TC', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section p {
    color: var(--primary-black);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    color: var(--primary-black);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* 聯絡理事長按鈕樣式 */
.leader-cta {
    text-align: center;
    margin-top: 2rem;
}

.contact-leader-btn {
    display: inline-block;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.contact-leader-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

/* 現任理事長專頁樣式 */
.chairman-page {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
    position: relative;
}

.chairman-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red), var(--primary-red));
}

.chairman-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--primary-white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chairman-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.chairman-avatar-large {
    width: 280px;
    height: 350px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-medium);
}

.chairman-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: all var(--transition-medium);
}

.chairman-avatar-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chairman-avatar-large:hover .chairman-photo {
    transform: scale(1.02);
}

.avatar-placeholder-large {
    color: var(--primary-white);
    font-size: 3rem;
    font-weight: 600;
}

.chairman-info-header {
    position: relative;
    z-index: 1;
}

.chairman-info-header h3 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif TC', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.chairman-title-large {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.chairman-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 600;
}

.chairman-content {
    padding: 3rem 2rem;
}

.chairman-section {
    margin-bottom: 3rem;
}

.chairman-section h4 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif TC', serif;
    text-align: center;
    position: relative;
}

.chairman-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* 學歷背景樣式 */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-item {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-details h5 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif TC', serif;
}

.education-details p {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-year {
    color: var(--gray-dark);
    font-size: 0.9rem;
    font-style: italic;
}

/* 專業領域樣式 */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-item {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--gray-medium);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.expertise-item h5 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-family: 'Noto Serif TC', serif;
}

.expertise-item p {
    color: var(--primary-black);
    line-height: 1.6;
}

/* 主要成就樣式 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.achievement-content h5 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif TC', serif;
}

.achievement-content p {
    color: var(--primary-black);
    line-height: 1.6;
}

/* 願景使命樣式 */
.vision-content {
    text-align: center;
}

.vision-text {
    font-size: 1.2rem;
    color: var(--primary-black);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

/* 簡化版資訊區塊樣式 */
.chairman-info-simple {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--gray-medium);
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.info-value {
    flex: 1;
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 1rem;
}

/* 簡化版職務樣式 */
.positions-simple {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--gray-medium);
    margin-bottom: 2rem;
}

.position-main {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--primary-white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.position-org {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.position-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.position-line {
    padding: 0.8rem 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    color: var(--primary-black);
    font-size: 1rem;
    line-height: 1.5;
    border-left: 4px solid var(--primary-red);
}

/* 簡化版聯絡樣式 */
.contact-simple {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--gray-medium);
    margin-bottom: 1.5rem;
}

.contact-line {
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    background: var(--gray-light);
    border-radius: 8px;
    color: var(--primary-black);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-line:last-child {
    margin-bottom: 0;
}

.vision-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.goal-item {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.goal-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: var(--primary-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.goal-item h5 {
    color: var(--primary-red);
    margin: 1rem 0 1rem 0;
    font-family: 'Noto Serif TC', serif;
}

.goal-item p {
    color: var(--primary-black);
    line-height: 1.6;
}

/* 聯絡方式樣式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--gray-medium);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details h5 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif TC', serif;
}

.contact-details p {
    color: var(--primary-black);
    font-weight: 600;
}

/* 理事長操作按鈕樣式 */
.chairman-actions {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-chairman-btn,
.schedule-meeting-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
}

.contact-chairman-btn {
    background: var(--primary-red);
    color: var(--primary-white);
    box-shadow: var(--shadow-red);
}

.contact-chairman-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.schedule-meeting-btn {
    background: var(--primary-white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.schedule-meeting-btn:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* 查看詳細資訊按鈕樣式 */
.view-chairman-btn {
    display: inline-block;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-chairman-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* Organization Section */
.organization-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-medium);
}

.organization-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-red);
    font-family: 'Noto Serif TC', serif;
}

/* 協會LOGO樣式 */
.org-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--dark-red);
}

.logo-symbol {
    color: var(--primary-white);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Noto Serif TC', serif;
}

.logo-text {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Noto Serif TC', serif;
}

/* 新組織架構樣式 */
.org-chart-new {
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
}

.org-level-1 {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.org-level-2 {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.org-level-3 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.org-level-4 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.org-connector-1,
.org-connector-2,
.org-connector-3 {
    width: 2px;
    height: 40px;
    background: var(--primary-red);
    margin: 0 auto 2rem;
    position: relative;
}

.org-connector-2::before,
.org-connector-2::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 2px;
    background: var(--primary-red);
    top: 50%;
    transform: translateY(-50%);
}

.org-connector-2::before {
    left: -150px;
}

.org-connector-2::after {
    right: -150px;
}

.org-connector-3::before,
.org-connector-3::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 2px;
    background: var(--primary-red);
    top: 50%;
    transform: translateY(-50%);
}

.org-connector-3::before {
    left: -200px;
}

.org-connector-3::after {
    right: -200px;
}

.org-item {
    background: var(--primary-white);
    padding: 1.6rem 2.2rem;
    border-radius: 15px;
    border: 3px solid var(--primary-red);
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary-red);
    min-width: 130px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.org-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.2);
    background: var(--primary-red);
    color: var(--primary-white);
}

.org-item.chairman {
    background: var(--primary-red);
    color: var(--primary-white);
    border-color: var(--dark-red);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.2);
    font-size: 1.3rem;
    padding: 2rem 3rem;
}

.org-item.executive {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--primary-white);
    border-color: var(--dark-red);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.2);
}

.org-item.branch {
    background: var(--gray-light);
    color: var(--primary-black);
    border-color: var(--gray-medium);
}

.org-item.committee {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--gray-medium);
    font-size: 1rem;
    padding: 1.2rem 1.5rem;
    min-width: 140px;
}

/* 備註樣式 */
.organization-notes {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-red);
}

.organization-notes h4 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif TC', serif;
}

.note-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--primary-white);
    border-radius: 8px;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-number {
    background: var(--primary-red);
    color: var(--primary-white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.note-text {
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 1rem;
}

/* 組織說明樣式 */
.organization-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
}

.organization-description h4 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Noto Serif TC', serif;
}

.organization-description p {
    color: var(--primary-black);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive Design for Leadership and Organization */
@media (max-width: 768px) {
    .about-tabs {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .tab-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .org-level-2 {
        gap: 2rem;
    }
    
    .org-level-3,
    .org-level-4 {
        gap: 1rem;
    }
    
    .org-item {
        min-width: 100px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .org-item.chairman {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-symbol {
        font-size: 1.2rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* 現任理事長專頁響應式設計 */
    .chairman-header {
        padding: 2rem 1rem;
    }
    
    /* 歷屆理事長時間軸響應式設計 */
    .leadership-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 30px;
    }
    
    .timeline-marker {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .marker-icon {
        font-size: 1rem;
    }
    
    .timeline-content {
        margin: 0;
        max-width: 100%;
        text-align: left !important;
    }
    
    .chairman-info-header h3 {
        font-size: 2rem;
    }
    
    .chairman-content {
        padding: 2rem 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .education-grid,
    .expertise-grid,
    .achievements-grid,
    .vision-goals,
    .contact-grid,
    .positions-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .chairman-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-chairman-btn,
    .schedule-meeting-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--primary-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: var(--transform-hover);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-heavy);
}

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

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-white);
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.3rem;
    color: var(--primary-red);
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.service-card p {
    color: var(--primary-black);
    line-height: 1.7;
    font-size: 1rem;
    letter-spacing: 0.1px;
}

/* Contact Section */
.contact {
    background: var(--primary-white);
    color: var(--primary-black);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gray-light);
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
}

.contact .section-title {
    color: var(--primary-red);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 2rem;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif TC', serif;
}

.contact-info p {
    margin-bottom: 1rem;
    opacity: 0.95;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--primary-red);
}

.contact-form h4 {
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    font-family: 'Noto Serif TC', serif;
    color: var(--primary-red);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--primary-white);
    color: var(--primary-black);
    transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-medium);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--primary-white);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.contact-form button {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    width: 100%;
}

.contact-form button:hover {
    background: var(--dark-red);
    transform: var(--transform-hover);
    box-shadow: var(--shadow-medium);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.loading {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
footer {
    background: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    border-radius: 0;
    transition: transform var(--transition-medium);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.footer-logo img:hover {
    transform: var(--transform-scale);
}

.footer-links a {
    color: var(--primary-white);
    text-decoration: none;
    margin: 0 1.5rem;
    opacity: 0.8;
    transition: all var(--transition-medium);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h2 {
        font-size: 3.2rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 768px) {
    .hero-bg-image {
        object-position: center 20%;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-text .subtitle {
        font-size: 0.7rem;
    }

    /* 手機版漢堡選單 */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--primary-white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-red);
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
        z-index: 1000;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background-color var(--transition-medium);
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* 漢堡選單按鈕樣式 - 只在手機版顯示 */
    .mobile-menu-toggle {
        display: block;
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-white);
        margin: 4px 0;
        transition: all var(--transition-medium);
        border-radius: 2px;
    }

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

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

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }



    .hero-content h2 {
        font-size: 2.8rem;
        letter-spacing: 0.2px;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.6;
        letter-spacing: 0.1px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text h3 {
        font-size: 1.9rem;
        letter-spacing: 0.2px;
    }
    
    .about-text p {
        font-size: 1.05rem;
        letter-spacing: 0.05px;
    }
    
    .about-logo-image {
        max-width: 250px;
    }
    
    .about-logo-title {
        font-size: 1.3rem;
        margin-top: 1.2rem;
        letter-spacing: 0.1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .about-logo-subtitle {
        font-size: 1.2rem;
        margin-top: 0.6rem;
        letter-spacing: 0.2px;
    }
    
    .about-logo-description {
        font-size: 0.95rem;
        margin-top: 0.5rem;
        letter-spacing: 0.1px;
    }
    
    .about-logo-image {
        max-width: 200px;
    }
    
    .about-logo-title {
        font-size: 1.1rem;
        margin-top: 1rem;
        letter-spacing: 0.05px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .about-logo-subtitle {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        letter-spacing: 0.1px;
        line-height: 1.2;
    }
    
    .about-logo-description {
        font-size: 0.9rem;
        margin-top: 0.4rem;
        letter-spacing: 0.05px;
        line-height: 1.3;
    }
    
    .about-text h3 {
        font-size: 1.7rem;
        letter-spacing: 0.1px;
    }
    
    .about-text p {
        font-size: 1rem;
        letter-spacing: 0.02px;
    }
    
    .mission-content h4 {
        font-size: 1.2rem;
    }
    
    .mission-content p {
        font-size: 1rem;
    }
    
    .org-description h4 {
        font-size: 1.3rem;
    }
    
    .org-description p {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0;
    }
}

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

    .hero-content h2 {
        font-size: 2.2rem;
        line-height: 1.1;
        letter-spacing: 0.1px;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        letter-spacing: 0.05px;
    }

    .section-title {
        font-size: 2.4rem;
        line-height: 1.2;
        letter-spacing: 0.2px;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* 防止 iOS 縮放 */
        padding: 12px 15px;
    }

    .btn, .cta-button, .event-register, .about-link {
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 44px; /* 符合觸控標準 */
    }

    .event-card {
        margin-bottom: 2rem;
    }

    .event-image {
        height: 200px;
    }

    .logo-image {
        width: 60px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-text .subtitle {
        font-size: 0.65rem;
    }

    /* 觸控優化 */
    a, button, input, textarea, select {
        min-height: 44px;
        min-width: 44px;
    }

    /* 改善可讀性 */
    p, li {
        line-height: 1.6;
    }

    /* 表單優化 */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Events Section */
.events {
    background: var(--primary-white);
    padding: 4rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.event-card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
}

.event-card:hover {
    transform: var(--transform-hover);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.event-card.featured {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-medium);
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.event-card:hover .event-image img {
    transform: var(--transform-scale);
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.event-date, .event-time, .event-location {
    color: var(--primary-black);
    margin-bottom: 0.6rem;
    font-size: 1rem;
    letter-spacing: 0.1px;
    line-height: 1.4;
}

.event-description {
    color: var(--primary-black);
    line-height: 1.6;
    margin: 1rem 0;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-light);
    color: var(--primary-black);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.event-register {
    display: inline-block;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.event-register:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

.events-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 20px;
}

.events-cta p {
    color: var(--primary-black);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.events-link {
    display: inline-block;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.events-link:hover {
    color: var(--dark-red);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-card {
        margin: 0 1rem;
    }
}

/* Events Filter Styles */
.events-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--primary-white);
    color: var(--primary-black);
    border: 2px solid var(--gray-medium);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
}

.filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-red);
    color: var(--primary-white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {
    .events-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* 理事長照片響應式樣式 */
    .chairman-avatar-large {
        width: 200px;
        height: 250px;
    }
    
    .chairman-photo {
        width: 100%;
        height: 100%;
    }
    
    .chairman-header {
        padding: 2rem 1rem;
    }
    
    .chairman-info-header h3 {
        font-size: 2rem;
    }
    
    .chairman-title-large {
        font-size: 1.1rem;
    }
    
    .chairman-subtitle {
        font-size: 1rem;
    }
    
    .chairman-content {
        padding: 2rem 1rem;
    }
}
