/* =============================================
   Contact Page — take.com
   ============================================= */

/* ── Hero：與頂欄同一條內縮寬度的圓角色帶 ── */
.contact-hero {
    --hero-radius: 32px;
    align-self: center;
    box-sizing: border-box;
    width: var(--me-site-width, min(1440px, calc(100% - 32px)));
    margin: 4px auto 20px;
    padding: clamp(44px, 5.5vw, 72px) clamp(20px, 4vw, 56px) clamp(36px, 4.5vw, 60px);
    border-radius: var(--hero-radius);
    background:
        radial-gradient(90% 70% at 50% -20%, rgba(255, 255, 255, 0.22), transparent 58%),
        radial-gradient(42% 55% at 100% 110%, rgba(176, 160, 255, 0.45), transparent 60%),
        linear-gradient(165deg, #7b7eff 0%, #5c5ff2 46%, #3e41b6 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(62, 65, 182, 0.16);
    font-family: Inter, "Noto Sans TC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.contact-hero::before,
.contact-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.contact-hero::before {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    top: -46%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
}
.contact-hero::after {
    width: 240px;
    height: 240px;
    right: -70px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}
.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.contact-hero-kicker {
    margin: 0 0 0.6rem;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.74);
}
.contact-hero-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: #fff;
}
.contact-hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.15rem;
    max-width: 42rem;
    margin: 1rem auto 0;
    padding: 0;
    list-style: none;
}
.contact-hero-services li {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.92rem, 1.4vw, 1.02rem);
    line-height: 1.45;
    font-weight: 500;
}
.contact-hero-services li::before {
    content: "";
    display: inline-block;
    width: 0.32rem;
    height: 0.32rem;
    margin-right: 0.42rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    vertical-align: 0.08em;
}

.contact-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(100%, 560px);
    margin: clamp(22px, 3vw, 32px) auto 0;
}

/* ── 電話主題區塊 ──────────────────────────── */
.contact-phone-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 10px 22px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}
button.contact-phone-badge {
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.phone-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.contact-phone-badge .phone-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-phone-badge a.phone-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 16, 70, 0.18);
}
.contact-phone-badge a.phone-icon:focus-visible,
.contact-phone-badge:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.contact-phone-badge .phone-icon i { font-size: 24px; color: #696cff; }
.contact-phone-badge .phone-icon-whatsapp i { color: #25d366; }
.contact-phone-badge .phone-copy {
    min-width: 0;
    text-align: center;
}
.contact-phone-badge .phone-number {
    display: block;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.15;
}
.contact-phone-badge .phone-hint {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.35em;
    align-items: baseline;
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
}
.contact-phone-badge .phone-hint-hours,
.contact-phone-badge .phone-hint-place,
.contact-phone-badge .phone-hint-action {
    white-space: nowrap;
}
.contact-phone-badge .phone-hint-action::before {
    content: "· ";
}
.contact-phone-pulse {
    animation: phonePulse 2.4s ease-out infinite;
}

.contact-hero-lines {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.5rem;
    width: min(100%, 560px);
    margin: 14px auto 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.4;
}
.contact-hero-lines li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}
.contact-hero-line-label {
    opacity: 0.72;
}
.contact-hero-line-value {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
a.contact-hero-line-value:hover,
button.contact-hero-line-value:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.contact-hero-line-copied,
[data-copy-wechat] .contact-hero-line-copied {
    display: none;
}
[data-copy-wechat].is-copied .contact-hero-line-id {
    display: none;
}
[data-copy-wechat].is-copied .contact-hero-line-copied {
    display: inline;
}
.contact-channel-value {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.8rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d1d1f;
}
.contact-channel-value a,
.contact-channel-value button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.contact-channel-value a:hover,
.contact-channel-value button:hover {
    color: #696cff;
}
@keyframes phonePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28); }
    70%      { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* ── 場景卡片 ──────────────────────────────── */
.contact-scene-cards { padding: 64px 0; background: #f8f7ff; }
.contact-scene-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    border: 1px solid #e8e7ff;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.contact-scene-card:hover {
    box-shadow: 0 12px 40px rgba(105,108,255,0.12);
    transform: translateY(-4px);
}
.contact-scene-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.contact-scene-icon.color-1 { background: #eef0ff; color: #696cff; }
.contact-scene-icon.color-2 { background: #e8f7f0; color: #28a745; }
.contact-scene-icon.color-3 { background: #fff3e0; color: #ff9800; }
.contact-scene-icon.color-4 { background: #fce4ec; color: #e91e63; }
.contact-scene-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.contact-scene-card p { font-size: 0.9rem; color: #6c757d; flex: 1; margin-bottom: 18px; line-height: 1.7; }
.contact-scene-tag {
    display: inline-block;
    background: #f0f0ff;
    color: #696cff;
    font-size: 0.78rem;
    border-radius: 20px;
    padding: 3px 12px;
    margin: 3px 2px;
}

/* ── 聯絡方式區塊 ──────────────────────────── */
.contact-channels { padding: 64px 0; }
.contact-channel-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}
.contact-channel-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}
.contact-channel-card .channel-icon {
    font-size: 2.4rem;
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.channel-icon.whatsapp { background: #e8f8f0; color: #25d366; }
.channel-icon.email    { background: #fff3e0; color: #ff9800; }
.channel-icon.wechat   { background: #e8f8ef; color: #07c160; }
.contact-channel-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-channel-card p  { font-size: 0.88rem; color: #6c757d; margin-bottom: 16px; }

.contact-map {
    padding: 8px 0 72px;
}
.contact-map-address {
    max-width: 42rem;
    margin: 0 auto;
    color: #3a3a3c;
    font-size: 1.02rem;
    line-height: 1.55;
}
.contact-map-frame {
    height: min(480px, 70vw);
    min-height: 280px;
    margin-top: 1.25rem;
    border-radius: 28px;
    overflow: hidden;
    background: #e8e8ed;
}
.contact-map-frame iframe,
.contact-map-frame .contact-map-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
    .contact-hero {
        --hero-radius: 22px;
        margin-bottom: 16px;
    }
}

@media (max-width: 720px) {
    .contact-phone-badge {
        border-radius: 20px;
        padding: 12px 16px 12px 12px;
    }
}

@media (max-width: 360px) {
    .contact-hero {
        --hero-radius: 18px;
        padding: 32px 16px 28px;
    }
    .contact-phone-badge {
        gap: 8px;
    }
    .phone-icons {
        gap: 6px;
    }
    .contact-phone-badge .phone-icon {
        width: 40px;
        height: 40px;
    }
    .contact-phone-badge .phone-icon i {
        font-size: 20px;
    }
    .contact-phone-badge .phone-number {
        font-size: 1rem;
        white-space: nowrap;
    }
    .contact-phone-badge .phone-hint {
        font-size: 0.72rem;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .contact-hero {
        padding: 22px 20px;
    }
    .contact-hero-services {
        margin-top: 0.45rem;
        gap: 0.2rem 0.85rem;
    }
    .contact-hero-services li {
        font-size: 0.88rem;
    }
    .contact-hero-actions {
        margin-top: 12px;
    }
    .contact-phone-badge {
        padding: 8px 14px 8px 8px;
    }
}
