F.hero-image {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000095;
    --secondary-color: #0066cc;
    --accent-color: #ff6b00;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #000095 0%, #0066cc 100%);
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 導航列 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    /*background: rgba(0, 0, 0, 0.95);*/
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1200;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}
/* 針對手機版漢堡選單的定位微調 115.0324 */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
        margin-left: auto; /* 關鍵：這會將漢堡選單推向最右側 */
        /*border: 2px solid red; */  /* 看看漢堡選單的外框到底在哪裡 */
    }
    .nav-logo {
        flex-grow: 1; /* 讓 Logo 佔據剩餘空間，把漢堡往右推 */
        text-align: left;
        margin-right: auto !important; /* 確保把後面的東西往右推 */
    }

    .hamburger {
        display: flex !important;
        margin-left: auto !important; /* 這是關鍵：強制推向容器的最右側 */
        cursor: pointer;
    }
    /* 確保隱藏的選單不會佔據物理空間 */
    .nav-menu {
        display: none; 
    }
    
    .nav-menu.active {
        display: flex;
    }

    /* 115.0325 13:27 確保跑馬燈區塊在手機版有足夠的生存空間 */
    .marquee-block {
        min-height: 60px; 
        padding: 15px 0;
        width: 100%;
        display: block; /* 避免 flexbox 壓縮 */
    }

    /* 115.0325 13:27  稍微縮小手機版的字體，並調整間距 */
    .marquee-content span {
        font-size: 1.1rem; 
        margin-right: 30px; 
    }
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-item {
    cursor: pointer;
    position: relative;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* 圖標樣式 */
.nav-item a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* 懸停效果 */
.nav-item a:hover {
    color: #0095FF;
    background: linear-gradient(135deg, rgba(0, 149, 255, 0.08), rgba(0, 105, 180, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 149, 255, 0.15);
}

.nav-item a:hover i {
    transform: scale(1.15);
}

/* 底部指示線（保留但改進） */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0095FF, #0069B4);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::after {
    width: 80%;
}

/* 活動頁面指示 */
.nav-item.active a {
    color: #0095FF;
    background: linear-gradient(135deg, rgba(0, 149, 255, 0.1), rgba(0, 105, 180, 0.1));
    font-weight: 700;
}

.nav-item.active::after {
    width: 80%;
}

.nav-cta {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 75, 87, 0.3);
    position: relative;
    overflow: hidden;
}

/* CTA 按鈕動畫背景 */
.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 75, 87, 0.4);
    background: linear-gradient(135deg, #FF4757 0%, #FF3838 100%);
}

.nav-cta i {
    font-size: 18px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20% { transform: scale(0.95); }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;

}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* 主要內容區 */
main {
    padding-top: 80px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 首頁 Hero Banner */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-blue);
    color: white;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="150" r="120" fill="%23fff"/><circle cx="800" cy="400" r="150" fill="%23fff"/><circle cx="1000" cy="100" r="100" fill="%23fff"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.85;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-image {
    position: relative;
}

.hero-photo {
    width: 100%;
    max-width: 800 px;
    height: 600 px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(255,255,255,0.5);
}

.hero-photo1 {
    width: 100%;
    max-width: 400 px;
    height: 300 px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(255,255,255,0.5);
}
/* 倒數計時 */
.countdown-section {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.countdown-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-item {
    background: var(--gradient-blue);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,149,0.2);
}

.countdown-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 政策主張快速入口 */
.policy-quick-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.policy-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.policy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.policy-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.policy-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 最新消息 */
.news-section {
    padding: 80px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 關於候選人 */
.about-hero,
.policy-detail-hero {
    background: var(--gradient-blue);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.about-hero h1,
.policy-detail-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-hero p,
.policy-detail-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    width: auto; /*100%;*/
    height: auto;/*115.0320 600px;*/
    min-height: 400px; /*115.0320 給一個最小高度確保背景色顯示 */
    background: var(--gradient-1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    padding: 10px; /*115.0320 增加一點內邊距 */
}
/*115.0320 修正照片框架 */
.image-frame {
    width: 100%;
    max-width: 450px; /* 電腦版最大寬度 */
    aspect-ratio: 3 / 4; /* 維持比例 */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 關鍵：確保圖片填滿且不變形 */
    display: block;
}

/*===115.0320 end========================*/

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-blue);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(0,0,149,0.2);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.timeline-year {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

/* 政策主張詳細頁 */
.policy-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-list li i {
    color: var(--primary-color);
}

/* 選民互動專區 */
.interaction-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.proposal-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.file-upload i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

/* 支持者牆 */
.supporter-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 60px 0;
}

.supporter-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.supporter-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.supporter-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.supporter-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    /*background: #1a1a1a;*/
    background:#011668 ;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* 響應式設計 */
@media (max-width: 968px) {
    
    .nav-container {
        /*display: flex !important;*/
        /*justify-content: space-between !important;*/ /* 強制 Logo 在左，漢堡在右 */
        /*width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        margin:0 !important; /* 115.0325 14:03 防止 Bootstrap 的 auto margin 導致置中 */
        
        display: flex !important;
        flex-direction: row !important; /* 強制橫向，防止在沒 BS 的頁面掉下去 */
        justify-content: space-between !important; /* 一左一右 */
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important; /* 💡 關鍵：確保 padding 不會撐破寬度 */
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding: 20px 0;
        gap: 5px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 8px 0;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        
    }

    .nav-item a {
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }

    .nav-item a i {
        font-size: 18px;
    }

    .nav-cta {
        display: none;
    }

    .nav-logo {
        flex: 1 !important;
        text-align: left !important;
    }

    .hamburger {
        display: flex !important;
        margin-left: auto !important; /* 強制推向最右邊 */
        position: relative !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-photo {
        margin: 0 auto;
    }

    .hero-photo1 {
        margin: 0 auto;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item::before {
        left: 0;
    }

    /*115.0320 */
    /* 針對手機版的微調 */

    .about-image {
        height: auto;
        min-height: 300px;
        margin-bottom: 30px; /* 與下方文字拉開距離 */
    }
    
    .image-frame {
        max-width: 80%; /* 手機版佔據螢幕寬度的 80% */
    }
    /*================*/
}

/* 115.0325 13:35 --- 修正手機版跑馬燈消失的問題 --- */
@media (max-width: 768px) {
    .marquee-block {
        /* 1. 確保堆疊後，區塊寬度佔滿 100% */
        width: 100% !important;
        
        /* 2. 給予一個最低高度，防止高度塌陷把文字吃掉 */
        min-height: 60px !important; 
        
        /* 3. 確保內部佈局正常運作 */
        display: flex !important;
        align-items: center;
        
        /* 4. 與上方的按鈕區塊拉開一點距離 */
        margin-top: 15px; 
    }

    .marquee-container {
        /* 確保容器不會被 Flexbox 擠壓 */
        width: 100% !important;
        flex-shrink: 0;
    }

    .marquee-content span {
        /* 手機版螢幕較小，稍微縮小字體讓畫面更協調 */
        font-size: 1.1rem; 
        margin-right: 30px; 
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .policy-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

