﻿@charset "utf-8";
/* ===== 汐科站陳情連署 前台樣式(自 index.html 抽出,前台三頁共用) ===== */

/* CSS Reset & 基礎設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    line-height: 1.8;
    color: #2b2b2b;
    background-color: #f0f4f8;
    padding: 30px 15px;
    font-size: 20px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 40px 50px;
}

/* 標題區塊 */
.main-title {
    color: #0056b3;
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 4px solid #0056b3;
    font-weight: bold;
}

/* 頂部全寬路線圖 */
.full-width-img {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}
.full-width-img img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border: 1px solid #cbd5e1;
}
.full-width-caption {
    font-size: 1.1rem;
    color: #475569;
    margin-top: 10px;
    font-weight: bold;
}

/* 雙欄圖文卡片架構 */
.feature-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 35px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.feature-block.reverse {
    flex-direction: row-reverse;
}
.feature-img-wrapper {
    flex: 1;
    min-width: 40%;
    max-width: 480px;
}
.feature-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: block;
}
.feature-caption {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}
.feature-text {
    flex: 1.2;
    font-size: 1.25rem;
    line-height: 1.9;
    color: #1e293b;
}

/* 服務資訊卡片 */
.info-card {
    background-color: #eef6ff;
    border-left: 6px solid #0056b3;
    padding: 24px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
    font-size: 1.2rem;
}
.info-card p {
    margin: 6px 0;
    font-weight: 600;
}

/* 分隔線 */
hr.divider {
    border: 0;
    height: 3px;
    background: #cbd5e1;
    margin: 50px 0;
}

/* 連署書區塊 */
.petition-header {
    text-align: center;
    color: #1a365d;
    margin-bottom: 25px;
}
.petition-header h2 {
    font-size: 2rem;
}
.petition-text {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    margin-bottom: 30px;
    line-height: 2;
    font-size: 1.25rem;
}
.petition-target {
    text-align: right;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 35px;
    font-size: 1.3rem;
}

/* 表單設計 */
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #1a202c;
    font-size: 1.25rem;
}
.form-group .req {
    color: #c53030;
    margin-left: 4px;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    font-size: 1.15rem;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.2);
}
.form-note {
    color: #666;
    font-size: 0.95rem;
    margin-top: 4px;
}

/* 地址多欄位排版 */
.address-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 18px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    font-size: 1.2rem;
}
.address-prefix {
    font-weight: bold;
    white-space: nowrap;
}
.address-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.address-item input {
    width: 75px;
    padding: 8px;
    text-align: center;
    font-size: 1.1rem;
}
.address-item input.wide {
    width: 130px;
}

/* 驗證碼 */
.captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.captcha-row img {
    height: 52px;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}
.captcha-row input {
    width: 180px;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.captcha-refresh {
    color: #0056b3;
    font-size: 1.05rem;
    white-space: nowrap;
}

/* 送出按鈕 */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.45rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.35);
    transition: all 0.3s ease;
    margin-top: 20px;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #004085 0%, #002244 100%);
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.45);
    transform: translateY(-2px);
}
.submit-btn:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: default;
    transform: none;
}

/* 日期顯示與警語 */
.date-display {
    text-align: center;
    font-size: 1.35rem;
    font-weight: bold;
    color: #2d3748;
    margin: 30px 0 15px 0;
}
.disclaimer {
    font-size: 1.05rem;
    color: #4a5568;
    margin-top: 30px;
    line-height: 1.6;
    background: #fffaf0;
    padding: 16px;
    border-radius: 8px;
    border-left: 5px solid #ed8936;
}
.agree-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
    cursor: pointer;
}
.agree-box input {
    width: 26px;
    height: 26px;
    cursor: pointer;
}

/* 蜜罐欄位:移出畫面,真人看不到也點不到 */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== 確認頁 / 完成頁 ===== */
.confirm-hint {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 25px;
}
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.25rem;
    margin-bottom: 20px;
}
.confirm-table th, .confirm-table td {
    border: 1px solid #cbd5e1;
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    word-break: break-all;
}
.confirm-table th {
    background: #eef6ff;
    color: #1a365d;
    width: 220px;
    white-space: nowrap;
}
.confirm-table td.empty {
    color: #999;
}
.confirm-btns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.confirm-btns .submit-btn {
    flex: 2;
    margin-top: 0;
}
.btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: #eef6ff;
}
.done-box {
    text-align: center;
    padding: 40px 20px;
}
.done-box .icon {
    font-size: 4rem;
    color: #2f855a;
    line-height: 1;
    margin-bottom: 20px;
}
.done-box h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 20px;
}
.done-box p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 12px;
}
.done-box .home-link {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 40px;
    background: #0056b3;
    color: #fff;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
}
.done-box .home-link:hover {
    background: #004085;
}

/* 響應式(手機與平板轉單欄) */
@media (max-width: 900px) {
    .container {
        padding: 24px 20px;
    }
    .feature-block, .feature-block.reverse {
        flex-direction: column;
        gap: 20px;
    }
    .feature-img-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .feature-img {
        height: 240px;
    }
    .confirm-table th {
        width: 130px;
    }
    .confirm-btns {
        flex-direction: column-reverse;
    }
}

/* ===== 完成頁:分享區 ===== */
.share-box {
    margin: 10px auto 0;
    max-width: 680px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.share-box h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 16px;
}
.share-url {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}
.share-url input {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    font-size: 1.1rem;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
    color: #1a202c;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}
.share-btn.copy {
    background: #0056b3;
    color: #fff;
}
.share-btn.copy:hover {
    background: #004085;
}
.share-btn.line {
    background: #06c755;
    color: #fff;
}
.share-btn.line:hover {
    background: #05a847;
}
.share-btn.native {
    background: #fff;
    color: #0056b3;
    border: 2px solid #0056b3;
}
.share-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.share-qr {
    padding-top: 18px;
    border-top: 1px dashed #cbd5e1;
}
.share-qr #qrcode {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 60px;
}
.share-qr #qrcode img {
    display: block;
}
.share-qr p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-top: 12px;
    line-height: 1.7;
}
.share-qr a {
    color: #0056b3;
    font-weight: bold;
}

/* ===== 首頁:側邊快速按鈕 ===== */
#petitionForm {
    scroll-margin-top: 16px;
}
.quicknav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
}
.qn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 40px;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.qn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}
.qn-info {
    background: #fff;
    color: #0056b3;
    border: 2px solid #0056b3;
}
.qn-sign {
    background: linear-gradient(135deg, #e53e3e 0%, #b91c1c 100%);
    color: #fff;
    border: 2px solid #b91c1c;
}
/* 螢幕夠寬時放在內容區右側外,不遮到內容 */
@media (min-width: 1640px) {
    .quicknav {
        right: auto;
        left: calc(50% + 660px);
    }
}
/* 手機與平板:改成底部固定列,兩顆大按鈕 */
@media (max-width: 900px) {
    body.has-quicknav {
        padding-bottom: 96px;
    }
    .quicknav {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        gap: 10px;
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #cbd5e1;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
    }
    .qn-btn {
        flex: 1;
        min-width: 0;
        padding: 15px 8px;
        font-size: 1.2rem;
        border-radius: 12px;
        box-shadow: none;
    }
    .qn-btn:hover {
        transform: none;
        box-shadow: none;
    }
}
