/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 導航列 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 台灣民眾黨官方配色主題 */
:root {
    --primary-color: #00CED1; /* 青色 (Cyan) */
    --secondary-color: #4A5568; /* 深灰色 */
    --accent-color: #2D3748; /* 更深灰色 */
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --shadow: rgba(0, 206, 209, 0.15);
    --border-color: #E2E8F0;
}

/* 名字展示樣式 */
.name-display {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.name-char {
    height: auto;
    max-height: 100px;
    transform: scaleX(1.3);
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.2);
    filter: brightness(0) invert(1);
}

.name-char:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.1);
}

/* 標題中的 SVG 字符樣式 */
.title-with-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.title-char {
    fill: #00CED1;
    transition: transform 0.3s ease, fill 0.3s ease;
    vertical-align: middle;
}

.title-char:hover {
    transform: translateY(-3px) scale(1.1);
    fill: #00A8A8;
}

.title-text {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1em;
    margin-left: 5px;
}

.legend-text {
    font-size: 14px;
    color: #000;
    margin-left: 8px;
    font-weight: 500;
}

.candidate-info {
    color: white !important;
    font-weight: 500;
    font-size: 1.5em;
    margin-left: 15px;
    vertical-align: middle;
    display: inline-block;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.candidate-info:hover {
    opacity: 0.8;
}

/* Hero 照片樣式 */
.hero-photo {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: contain;
    object-position: center 25%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 206, 209, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.4);
}

/* 關於區塊照片輪播 */
.about-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.2);
}

.about-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-photo.active {
    opacity: 1;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #00CED1;
}

/* 政策照片樣式 */
.policy-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.policy-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.policy-photo:hover {
    transform: scale(1.05);
}

/* 活動照片牆樣式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.3);
}

.gallery-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 206, 209, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* 響應式設計 - 標題 */
@media (max-width: 768px) {
    .title-with-svg {
        gap: 6px;
    }
    
    .title-char {
        width: 50px;
        height: 40px;
    }
    
    .social-links {
        display: none; /* 手機版隱藏社群連結 */
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .title-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .title-with-svg {
        gap: 4px;
    }
    
    .title-char {
        width: 40px;
        height: 32px;
    }
    
    .hero {
        padding: 80px 15px 0 15px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-photo {
        max-height: 250px;
    }
    
    .name-display {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .name-char {
        max-width: 50px;
        max-height: 50px;
    }
    
    .candidate-info {
        font-size: 1.0em;
    }
    
    .title-text {
        font-size: 0.9em;
    }
}

/* 響應式設計 - 名字展示 */
@media (max-width: 768px) {
.name-display {
gap: 10px;
margin-bottom: 20px;
flex-wrap: nowrap;
}
    
.name-char {
width: 60px;
height: auto;
}
    
.candidate-info {
font-size: 1.2rem;
white-space: nowrap;
}
}

@media (max-width: 480px) {
.name-display {
gap: 8px;
margin-bottom: 15px;
flex-wrap: nowrap;
}
.name-char {
width: 55px;
height: auto;
white-space: nowrap;
}
}

/* 按鈕樣式 - 簡約設計 */
.btn {
display: inline-block;
padding: 14px 32px;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: all 0.3s ease;
border: none;
cursor: pointer;
text-align: center;
font-size: 16px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 206, 209, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.35);
    background: #00B5B8;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

/* 首頁橫幅 - 簡約設計 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 206, 209, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    text-align: left !important;
}

.hero-image {
    flex: 1;
    max-width: 480px;
}

.hero::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
}

.hero-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    text-align: left !important;
    margin-left: 0;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    justify-content: flex-start !important;
}

/* 區塊通用樣式 */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #0056b3;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* 關於我區塊 */
.about {
    background: var(--bg-light);
}

.brand-quote {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

.brand-quote blockquote {
    margin: 0;
    font-style: italic;
}

.brand-quote p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.brand-quote p:last-child {
    margin-bottom: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-gallery {
    margin-top: 20px;
}

.about-gallery h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.3);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 206, 209, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 燈箱效果 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* 右側統計樣式 */
.hero-stats-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 280px;
}

.hero-stat-group {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat-group:hover {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 206, 209, 0.3);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.2;
}

.hero-stat-unit {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* 概覽統計樣式 */
.overview-stats {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.overview-stats::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,206,209,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.overview-stat-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.overview-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.overview-stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

/* 統計區域樣式 */
.statistics {
    background: #ffffff;
    color: #2c3e50;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statistics::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="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.statistics h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1), rgba(0, 168, 168, 0.1));
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 206, 209, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.2), rgba(0, 168, 168, 0.2));
    box-shadow: 0 20px 40px rgba(0, 206, 209, 0.3);
}

/* 按鈕卡片特殊樣式 */
.stat-item[onclick] {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.15), rgba(0, 168, 168, 0.15));
    border: 2px solid rgba(0, 206, 209, 0.3);
}

.stat-item[onclick]:hover {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.3), rgba(0, 168, 168, 0.3));
    border-color: rgba(0, 206, 209, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 206, 209, 0.4);
}

.stat-item[onclick] .btn-icon {
    display: none;
}

.stat-item[onclick] .stat-label {
    font-weight: 700;
    color: #495057 !important;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.3;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0056b3 !important;
    text-shadow: 0 2px 10px rgba(0, 206, 209, 0.3);
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.stat-unit {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    color: #2c3e50;
}

.stat-label {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
    color: #2c3e50;
    font-weight: 600;
}

/* 人口金字塔分析樣式 */
.population-pyramid {
    background: #f8f9fa;
    padding: 80px 0;
}

.pyramid-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.pyramid-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pyramid-chart {
    margin-bottom: 60px;
}

.pyramid-visual {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 40px;
    position: relative;
}

.pyramid-bars {
    max-width: 350px;
    margin: 0 auto;
    position: relative;
}

.pyramid-bars::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: white;
    transform: translateX(-50%);
    z-index: 1;
}

.age-group {
    margin-bottom: 3px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.bar-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    height: 24px;
    flex: 1;
}

.age-label {
    position: absolute;
    left: -60px;
    color: #555;
    font-weight: 500;
    font-size: 11px;
    white-space: nowrap;
    z-index: 3;
    text-align: right;
    width: 55px;
}

.bar {
    height: 22px;
    border-radius: 0;
    position: absolute;
    display: flex;
    align-items: center;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 0 6px;
}

.bar.male {
    background: #20829d;
    right: 50%;
    margin-right: 1px;
    transform-origin: right center;
    justify-content: flex-end;
}

.bar.female {
    background: #f27c7c;
    left: 50%;
    margin-left: 1px;
    transform-origin: left center;
    justify-content: flex-start;
}

.bar:hover {
    transform: scaleY(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.pyramid-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.male {
    background: #20829d;
}

.legend-color.female {
    background: #f27c7c;
}

.pyramid-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.pyramid-insights h3 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.insight-cards {
    display: grid;
    gap: 20px;
}

.insight-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
}

.insight-card.warning {
    border-left-color: #f39c12;
}

.insight-card.alert {
    border-left-color: #e74c3c;
}

.insight-card.info {
    border-left-color: #3498db;
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.insight-card h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.insight-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight-description {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
    width: 100%;
}

/* 老化指數模態框樣式 */
.aging-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.aging-metric {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #00CED1 0%, #00A8A8 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 206, 209, 0.3);
    position: relative;
    overflow: hidden;
}

.aging-metric::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%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.aging-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.aging-description {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 35px;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.aging-description h3 {
    font-size: 1.6rem;
    color: #00CED1;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.aging-description h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    border-left: 4px solid #00CED1;
    padding-left: 20px;
    font-weight: 600;
}

.aging-description p {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.aging-description h4:first-of-type {
    margin-top: 0;
}

/* 老化指數模態框響應式設計 */
@media (max-width: 768px) {
    .aging-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aging-metric {
        padding: 30px 20px;
    }
    
    .aging-number {
        font-size: 2.8rem;
    }
    
    .aging-description {
        padding: 25px;
    }
    
    .aging-description h3 {
        font-size: 1.4rem;
    }
    
    .aging-description h4 {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
    }
    
    .aging-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .aging-metric {
        padding: 25px 15px;
    }
    
    .aging-number {
        font-size: 2.5rem;
    }
    
    .aging-description {
        padding: 20px;
    }
    
    .aging-description h3 {
        font-size: 1.3rem;
    }
    
    .aging-description h4 {
        font-size: 1rem;
        margin: 18px 0 10px 0;
        padding-left: 15px;
    }
    
    .aging-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.insight-description p {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

.insight-description h4 {
    font-size: 1.1rem;
    margin: 20px 0 12px 0;
    color: #34495e;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.insight-description ul {
    margin: 12px 0;
    padding-left: 20px;
}

.insight-description li {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.key-stats {
    display: grid;
    gap: 20px;
}

.key-stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.key-stat:hover {
    transform: translateY(-5px);
}

.key-stat .stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.key-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 說明按鈕樣式 */
.explanation-button-container {
    text-align: center;
    margin-bottom: 40px;
}

.explanation-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.explanation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

/* 模態框樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* 模態框內容佈局 */
.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.pyramid-section {
    margin-bottom: 40px;
    width: 100%;
}

.pyramid-visual {
    margin-bottom: 30px;
    width: 100%;
}

.pyramid-insights {
    margin-top: 30px;
    width: 100%;
}

.insights-content {
    width: 100%;
}

.explanation-section {
    margin-bottom: 40px;
}

.explanation-section h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.explanation-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.data-highlight {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.data-highlight h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.data-highlight ul {
    margin: 0;
    padding-left: 20px;
}

.data-highlight li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.analysis-points {
    display: grid;
    gap: 20px;
}

.analysis-point {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    align-items: flex-start;
}

.point-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.point-content h5 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.point-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.future-impacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.impact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.impact-card h5 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.impact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 人口金字塔提示框樣式 */
.pyramid-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    min-width: 200px;
}

.pyramid-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-content {
    padding: 15px;
}

.tooltip-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.tooltip-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooltip-single {
    text-align: center;
    margin-bottom: 8px;
}

.count-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tooltip-total {
    color: #667eea;
    font-weight: 600;
    border-top: 1px solid #e9ecef;
    padding-top: 6px;
    margin-top: 4px;
    text-align: center;
}

.gender-icon,
.total-icon {
    font-size: 1rem;
}

.gender-text,
.total-text {
    font-family: 'Inter', sans-serif;
}


/* 人口結構分析按鈕樣式 */
.population-analysis-btn-container {
    text-align: center;
    margin-top: 40px;
}

.population-analysis-btn {
    background: linear-gradient(45deg, #20829d, #f27c7c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.population-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.population-analysis-btn .btn-icon {
    font-size: 1.2rem;
}

.insight-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.insight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.insight-btn .btn-icon {
    font-size: 1.2rem;
}

.aging-btn {
    background: linear-gradient(45deg, #00CED1, #00A8A8);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.aging-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.4);
}

.aging-btn .btn-icon {
    font-size: 1.2rem;
}

/* 右側統計響應式設計 */
@media (max-width: 1200px) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-stats-right {
        flex: 0 0 250px;
    }
    
    .hero-stat-number {
        font-size: 1.4rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .hero-stat-unit {
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-stats-right {
        flex: 1;
        max-width: 500px;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-stat-group {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .hero-stats-right {
        flex-direction: column;
        max-width: 100%;
    }
    
    .hero-stat-group {
        flex: 1;
        width: 100%;
    }
    
    .hero-stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .hero-stat-unit {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-right {
        gap: 12px;
        padding: 20px;
    }
    
    .hero-stat-number {
        font-size: 1.2rem;
    }
    
    .hero-stat-label {
        font-size: 0.65rem;
    }
    
    .hero-stat-unit {
        font-size: 0.55rem;
    }
}

/* 概覽統計響應式設計 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-height: 400px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .stats-grid.expanded {
        max-height: 1200px;
    }
    
    .stat-item[onclick] .stat-label {
        font-size: 1.1rem;
    }
    
    /* 收合/展開控制 */
    .stats-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        padding: 12px 20px;
        background: linear-gradient(135deg, rgba(0, 206, 209, 0.1), rgba(0, 168, 168, 0.1));
        border: 2px solid rgba(0, 206, 209, 0.2);
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        gap: 10px;
        font-weight: 600;
        color: #00CED1;
        font-size: 1.1rem;
    }
    
    .stats-toggle:hover {
        background: linear-gradient(135deg, rgba(0, 206, 209, 0.2), rgba(0, 168, 168, 0.2));
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
    }
    
    .stats-toggle .toggle-icon {
        transition: transform 0.3s ease;
        font-size: 1.2rem;
    }
    
    .stats-toggle.expanded .toggle-icon {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: 300px;
    }
    
    .stats-grid.expanded {
        max-height: 1000px;
    }
    
    .stat-item[onclick] .stat-label {
        font-size: 1rem;
    }
    
    .stats-toggle {
        font-size: 1rem;
        padding: 10px 16px;
    }
    
    .stats-toggle .toggle-icon {
        font-size: 1rem;
    }
}

/* 照片展示響應式設計 */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 400px;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-overlay span {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-unit {
        font-size: 0.8rem;
    }
    
    .overview-number {
        font-size: 1.6rem;
    }
    
    .pyramid-insights {
        grid-template-columns: 1fr;
    }
    
    .pyramid-visual {
        padding: 20px;
    }
    
    .bar-label {
        left: -60px;
        font-size: 0.8rem;
    }
    
    .bar {
        height: 20px;
        font-size: 0.7rem;
    }
}

/* 行動政見 - 簡約設計 */
.policy {
    background: var(--bg-white);
}

.policy-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
    font-weight: 400;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.policy-card {
    background: var(--bg-white);
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.policy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 206, 209, 0.2);
}

.policy-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
    opacity: 0.8;
}

.policy-card h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
}

.policy-quote {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1rem;
    position: relative;
    padding: 0 16px;
    line-height: 1.6;
}

.policy-quote::before,
.policy-quote::after {
    content: '"';
    font-size: 1.5rem;
    position: absolute;
    color: var(--primary-color);
    opacity: 0.4;
}

.policy-quote::before {
    left: 0;
    top: -8px;
}

.policy-quote::after {
    right: 0;
    bottom: -16px;
}

/* 最新消息 */
.news {
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    color: #0056b3;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.read-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #007bff;
}

/* 選民服務 - 簡約設計 */
.service {
    background: var(--bg-light);
}

.service-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 48px;
    color: var(--text-light);
    font-weight: 400;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* 選民服務響應式設計 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.service-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 206, 209, 0.2);
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 1rem;
}

/* 支持我們 - 簡約設計 */
.support {
    background: var(--bg-white);
}

.support-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 48px;
    font-weight: 400;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.support-card {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 24px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 206, 209, 0.25);
}

.support-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.support-card p {
    margin-bottom: 28px;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1rem;
}

.support-card .btn {
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
}

.support-card .btn:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.support-card .btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.support-card .btn-secondary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* 聯絡我們 */
.contact {
    background: #f8f9fa;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-simple {
    text-align: center;
}

.contact-email {
    margin-bottom: 40px;
}

.contact-email h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 206, 209, 0.3);
    transition: all 0.3s ease;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #0056b3;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.contact-form {
    flex: 1;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 206, 209, 0.1);
}

.contact-social {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.contact-social h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 206, 209, 0.2);
}

.social-link-card svg {
    flex-shrink: 0;
}

.social-link-card span {
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
}

/* 頁尾 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-email {
    color: #3498db !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #5dade2 !important;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Facebook 藍色 */
.social-link.facebook {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    color: white;
}

.social-link.facebook:hover {
    background: linear-gradient(45deg, #166fe5, #2196f3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 119, 242, 0.4);
}

/* YouTube 紅色 */
.social-link.youtube {
    background: linear-gradient(45deg, #ff0000, #ff5252);
    color: white;
}

.social-link.youtube:hover {
    background: linear-gradient(45deg, #e60000, #ff1744);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* TikTok 黑色 */
.social-link.tiktok {
    background: linear-gradient(45deg, #000000, #434343);
    color: white;
}

.social-link.tiktok:hover {
    background: linear-gradient(45deg, #1a1a1a, #666666);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Instagram 漸變 */
.social-link.instagram {
    background: linear-gradient(45deg, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 300% 300%;
    animation: instagram-gradient 3s ease infinite;
    color: white;
}

.social-link.instagram:hover {
    background-size: 200% 200%;
    animation-duration: 2s;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

@keyframes instagram-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 80px 20px 0 20px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .hero-photo {
        max-height: 350px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .policy-grid,
    .service-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }

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

    .service-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

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

    .nav-container {
        padding: 0 15px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }
}
