﻿/* 2026-11-09 聯絡我們 新版樣式（比照添好運新版型，配色改為了凡深藍） */
:root {
    --c-bg: #f5f6fa;
    --c-green: #050050;
    --c-green-dark: #1c1c7a;
    --c-title: #050050;
    --c-label: #050050;
    --c-text: #333;
    --c-muted: #6b6f80;
    --c-line: #d8dae3;
    --c-req: #c0392b;
}

body.contact-page {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", "Helvetica", "Arial", sans-serif;
    margin: 0;
}

.contact-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}

/* ---------- 標題 ---------- */
.contact-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

.contact-head-text {
    flex: 1;
    text-align: left;
}

.contact-logo {
    display: block;
    flex: 0 0 auto;
    height: 100px;
    width: auto;
}

.contact-head h1 {
    color: var(--c-title);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: .06em;
    margin: 0 0 14px;
}

.contact-head p {
    color: var(--c-muted);
    font-size: 13px;
    margin: 0;
    letter-spacing: .03em;
}

.contact-note {
    font-size: 13px;
    color: var(--c-muted);
    margin: 0 0 14px;
}

.req {
    color: var(--c-req);
    margin-left: 2px;
}

/* ---------- 欄位 ---------- */
.f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 20px;
}

.f-item.full {
    grid-column: 1 / -1;
}

.f-item label.f-label {
    display: block;
    color: var(--c-label);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: .04em;
}

.f-item .f-hint {
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 400;
    margin-left: 6px;
}

.f-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--c-text);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

textarea.f-input {
    height: auto;
    min-height: 108px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

select.f-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6f80' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.f-input::placeholder {
    color: #8a918c;
    font-weight: 500;
}

.f-input:focus {
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(5, 5, 80, .12);
}

/* ---------- 分類（RadioButtonList → 膠囊按鈕） ---------- */
.kind-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kind-group input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.kind-group label {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    color: var(--c-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    margin: 0;
}

.kind-group label:hover {
    border-color: var(--c-green);
}

.kind-group input[type=radio]:checked + label {
    background: var(--c-green);
    border-color: var(--c-green);
    color: #fff;
}

.kind-group input[type=radio]:focus-visible + label {
    box-shadow: 0 0 0 3px rgba(5, 5, 80, .25);
}

/* ---------- 驗證碼 ---------- */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-row .f-input {
    flex: 1 1 180px;
    width: auto;
}

.captcha-row img {
    height: 48px;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.btn-refresh {
    height: 48px;
    padding: 0 16px;
    background: #fff;
    color: var(--c-green);
    border: 1px solid var(--c-green);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.btn-refresh:hover {
    background: rgba(5, 5, 80, .06);
}

.f-error {
    display: block;
    color: var(--c-req);
    font-size: 13px;
    margin-top: 6px;
    min-height: 1em;
}

/* ---------- 送出 ---------- */
.f-actions {
    text-align: center;
    margin-top: 22px;
}

.btn-send {
    min-width: 170px;
    height: 48px;
    padding: 0 28px;
    background: var(--c-green);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.btn-send:hover {
    background: var(--c-green-dark);
}

/* ---------- 手機 ---------- */
@media (max-width: 640px) {
    .contact-wrap {
        padding: 28px 16px 48px;
    }

    .contact-head {
        gap: 14px;
        align-items: flex-start;
    }

    .contact-logo {
        height: 72px;
    }

    .contact-head h1 {
        font-size: 17px;
    }

    .f-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kind-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .kind-group label {
        justify-content: center;
    }

    .captcha-row .f-input {
        flex: 1 1 100%;
    }

    .btn-send {
        width: 100%;
    }
}

/* 2026-11-09 了凡：頁首做成白色卡片（Logo 本身是白底，放在白卡片上比較自然），標題縮小並避免最後兩字掉到下一行 */
.contact-head {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 4px;
    padding: 16px 22px;
}

.contact-head h1 {
    font-size: 18px;
    letter-spacing: .03em;
    line-height: 1.8;
    margin: 0;
}

.contact-head .nw {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .contact-head {
        padding: 12px 14px;
        align-items: center;
    }

    .contact-head h1 {
        font-size: 15px;
    }

    .contact-head .nw {
        white-space: normal;
    }
}
