/* Homepage (editorial dark). Base tokens, nav, buttons, footer, FAQ and trust styles come from /css/ai.css. */

/* ============ AI 客服小幫手 (moved verbatim from landing-premium) ============ */
.bmp-chat { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 1200; font-family: inherit; }
/* Frameless floating 3D mascot — no round frame, just the character with a soft shadow */
.bmp-launcher { position: relative; width: 88px; height: 88px; border: none; cursor: pointer; padding: 0; background: none; box-shadow: none; transition: transform 0.25s cubic-bezier(0.34,1.56,0.5,1); animation: bmp-bob 3.4s ease-in-out infinite; }
.bmp-launcher img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.3)); }
.bmp-launcher:hover { transform: scale(1.08); }
@keyframes bmp-bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
.bmp-ping { position: absolute; top: 6px; right: 8px; width: 15px; height: 15px; background: #EF5350; border-radius: 50%; border: 2px solid #fff; }
.bmp-greet { position: absolute; right: 96px; bottom: 20px; white-space: nowrap; background: #fff; color: var(--text); font-size: 0.85rem; font-weight: 600; padding: 0.55rem 0.85rem; border-radius: 16px 16px 2px 16px; box-shadow: var(--shadow); animation: bmp-greet-in 0.4s ease both; }
@keyframes bmp-greet-in { from{ opacity:0; transform: translateX(8px); } to{ opacity:1; transform:none; } }
.bmp-chat.open .bmp-greet, .bmp-chat.dismissed .bmp-greet { display: none; }
.bmp-chat.open .bmp-launcher { animation: none; }
.bmp-chat.open .bmp-ping { display: none; }

.bmp-panel { position: absolute; right: 0; bottom: 82px; width: min(88vw, 372px); height: min(62vh, 468px); background: var(--surface); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); opacity: 0; transform: translateY(16px) scale(0.96); transform-origin: bottom right; pointer-events: none; transition: opacity 0.28s ease, transform 0.3s cubic-bezier(0.34,1.4,0.5,1); }
.bmp-chat.open .bmp-panel { opacity: 1; transform: none; pointer-events: auto; }
.bmp-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; background: linear-gradient(135deg, #0E1424, #131C33); color: #fff; flex-shrink: 0; }
.bmp-head img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.35)); }
.bmp-h-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.bmp-h-sub { font-size: 0.72rem; color: var(--on-dark-2); display: flex; align-items: center; gap: 0.35rem; margin-top: 2px; }
.bmp-h-sub .bmp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.bmp-close { margin-left: auto; background: none; border: none; color: var(--on-dark-2); cursor: pointer; padding: 0.35rem; border-radius: 8px; display: grid; place-items: center; transition: all 0.2s ease; }
.bmp-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.bmp-close svg { width: 18px; height: 18px; }
.bmp-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--canvas); }
.bmp-msg { max-width: 84%; font-size: 0.9rem; line-height: 1.55; padding: 0.6rem 0.85rem; border-radius: 16px; white-space: pre-wrap; word-break: break-word; animation: bmp-msg-in 0.25s ease both; }
@keyframes bmp-msg-in { from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform:none; } }
.bmp-msg.bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bmp-msg.user { align-self: flex-end; background: linear-gradient(135deg, #4A72FF, #2E5CFF); color: #fff; border-bottom-right-radius: 4px; }
.bmp-typing { align-self: flex-start; display: flex; gap: 4px; padding: 0.75rem 0.9rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; }
.bmp-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: bmp-blink 1.2s infinite; }
.bmp-typing span:nth-child(2){ animation-delay: 0.2s; } .bmp-typing span:nth-child(3){ animation-delay: 0.4s; }
@keyframes bmp-blink { 0%,60%,100%{ opacity: 0.25; } 30%{ opacity: 1; } }
.bmp-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; background: var(--canvas); }
.bmp-quick button { font-size: 0.78rem; color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(46,92,255,0.25); border-radius: 999px; padding: 0.35rem 0.7rem; cursor: pointer; transition: all 0.2s ease; }
.bmp-quick button:hover { background: var(--brand); color: #fff; }
.bmp-foot { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.bmp-foot textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 0.6rem 0.8rem; font-family: inherit; font-size: 0.9rem; line-height: 1.4; max-height: 90px; outline: none; color: var(--text); background: var(--surface); }
.bmp-foot textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bmp-send { width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 12px; background: linear-gradient(135deg, #4A72FF, #2E5CFF); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px -6px var(--brand-glow); transition: transform 0.2s ease; }
.bmp-send:hover:not(:disabled) { transform: translateY(-1px); }
.bmp-send:disabled { opacity: 0.5; cursor: not-allowed; }
.bmp-send svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .bmp-panel { width: calc(100vw - 2rem); height: 62vh; } .bmp-greet { display: none; } }
@media (prefers-reduced-motion: reduce) { .bmp-launcher { animation: none; } .bmp-msg { animation: none; } }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ HERO (client-site reel) ============ */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.home-hero video, .home-hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.home-hero .poster { display: none; }
.home-hero .shade { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(10,14,26,0.97) 0%, rgba(10,14,26,0.9) 38%, rgba(10,14,26,0.35) 60%, rgba(10,14,26,0.08) 100%),
                linear-gradient(180deg, rgba(10,14,26,0.4) 0%, transparent 30%, transparent 70%, rgba(10,14,26,0.85) 100%); }
.home-hero .container { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 5rem; }
.home-hero .copy { max-width: 37rem; }
.home-hero h1 { font-size: clamp(1.9rem, 3.9vw, 3.6rem); margin: 1.4rem 0 1.4rem; }
.home-hero h1 .ln > span { white-space: nowrap; }
.home-hero h1 em { font-style: normal; color: var(--gold); }
.home-hero .sub { color: var(--on-dark-2); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.8; margin-bottom: 2.2rem; }
.home-hero .hero-cta { justify-content: flex-start; margin-bottom: 1.4rem; }
.home-hero .textlink { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--on-dark); font-weight: 600; border-bottom: 1px solid var(--line-dark-2); padding-bottom: 0.2rem; }
.home-hero .textlink:hover { color: var(--gold); border-color: var(--gold); }
.home-hero .cap { position: absolute; left: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - var(--maxw)) / 2 + clamp(1.25rem, 4vw, 2.5rem))); bottom: 1.6rem; z-index: 2; display: flex; align-items: center; gap: 1rem; color: var(--on-dark-2); }
.video-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark-2); background: rgba(10,14,26,0.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.video-toggle:hover { border-color: var(--gold); color: var(--gold); }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ============ BRANDS ============ */
.brands { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line-dark); }
.brands .mono { color: var(--on-dark-2); display: block; margin-bottom: 1.6rem; }
.brand-row { display: flex; flex-wrap: wrap; gap: 0.6rem 2.6rem; }
.brand-row a { font-family: var(--serif); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: rgba(245,247,251,0.55); transition: color 0.3s ease; }
.brand-row a:hover { color: #fff; }

/* ============ VOICE ============ */
.voice2 { text-align: center; }
.voice2 blockquote p.q { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.15; color: #fff; }
.voice2 blockquote p.q em { font-style: normal; color: var(--gold); }
.voice2 blockquote p.s { color: var(--on-dark-2); font-size: 1.1rem; margin-top: 1.2rem; }
.voice2 figcaption { margin-top: 2rem; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: center; font-size: 0.95rem; }
.voice2 figcaption b { color: #fff; }
.voice2 figcaption a { color: var(--gold); }

/* ============ COMPARISON ============ */
.diff-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); margin-bottom: 2rem; }
.diff-list li { padding: 2rem 1.6rem 2rem 0; border-right: 1px solid var(--line-dark); }
.diff-list li:last-child { border-right: none; }
.diff-list li + li { padding-left: 1.6rem; }
.diff-list b { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: #fff; margin-bottom: 0.6rem; }
.diff-list span { color: var(--on-dark-2); line-height: 1.7; }
.more-btn { background: none; border: 1px solid var(--line-dark-2); color: var(--on-dark); border-radius: 999px; padding: 0.75rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; }
.more-btn:hover { border-color: var(--gold); color: var(--gold); }
.cmp-wrap { margin-top: 2rem; overflow-x: auto; }
.cmp-wrap[hidden] { display: none; }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.cmp th, .cmp td { text-align: left; padding: 1rem 1rem; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); vertical-align: top; }
.cmp th { font-weight: 600; color: #fff; }
.cmp .us { color: #fff; background: rgba(235,162,78,0.07); }
.cmp th.us { color: var(--gold); }
.cmp td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
.cmp-foot { margin-top: 0.8rem; font-size: 0.8rem; color: var(--text-3); }

/* ============ PROCESS ============ */
.steps2 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.steps2 li { border-top: 2px solid var(--line-dark-2); padding-top: 1.4rem; }
.steps2 li:nth-child(2) { border-top-color: var(--brand); }
.steps2 li:nth-child(3) { border-top-color: var(--gold); }
.steps2 .mono { color: var(--on-dark-2); }
.steps2 h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0.8rem 0 0.5rem; }
.steps2 p { color: var(--on-dark-2); line-height: 1.75; }

/* ============ PRICING ============ */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.price { padding: 2.4rem 2rem 2.6rem; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; position: relative; }
.price:last-child { border-right: none; }
.price--best::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.price .tag { position: absolute; top: 1.2rem; right: 1.6rem; font-size: 0.72rem; font-weight: 700; color: var(--ink); background: var(--gold); padding: 0.2rem 0.65rem; border-radius: 999px; }
.price h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1.2rem 0 0.4rem; }
.price .desc { color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.7; min-height: 3.2em; }
.price .amount { margin: 1.6rem 0 0.4rem; color: #fff; display: flex; align-items: baseline; gap: 0.35rem; }
.price .amount .num { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; }
.price .amount .cur, .price .amount .per { color: var(--on-dark-2); font-size: 0.95rem; }
.price .note { font-size: 0.85rem; color: var(--on-dark-2); line-height: 1.6; }
.price .note.hi { color: var(--gold); }
.price ul { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: 0.75rem; flex: 1; }
.price li { display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem; color: var(--on-dark); font-size: 0.95rem; line-height: 1.6; }
.price li svg { margin-top: 0.25rem; color: var(--gold); }
.price .btn { align-self: flex-start; }

/* ============ CONTACT (dark restyle; markup and ids unchanged) ============ */
.contact2 .contact-card { border: 1px solid var(--line-dark); border-radius: 28px; padding: clamp(1.6rem, 3vw, 2.6rem); background: rgba(255,255,255,0.02); }
.contact2 .contact-top { display: flex; gap: 0.8rem; align-items: center; color: var(--on-dark-2); font-size: 0.9rem; margin-bottom: 1.6rem; }
.contact2 .contact-top svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.contact2 .contact-top strong { color: #fff; display: block; }
.contact2 .field-label { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; margin-bottom: 0.8rem; }
.contact2 .field-label svg, .contact2 .chip .c-ic, .contact2 .input-wrap svg { width: 18px; height: 18px; }
.contact2 .chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact2 .chip { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border: 1px solid var(--line-dark-2); border-radius: 999px; color: var(--on-dark); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.contact2 .chip input { position: absolute; opacity: 0; pointer-events: none; }
.contact2 .chip .check { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-dark-2); display: grid; place-items: center; }
.contact2 .chip .check svg { width: 10px; height: 10px; opacity: 0; color: var(--ink); }
.contact2 .chip.selected { border-color: var(--gold); background: var(--gold-soft); }
.contact2 .chip.selected .check { background: var(--gold); border-color: var(--gold); }
.contact2 .chip.selected .check svg { opacity: 1; }
.contact2 .chip:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact2 .divider { height: 1px; background: var(--line-dark); margin: 1.6rem 0; }
.contact2 .req-note { color: var(--on-dark-2); font-size: 0.85rem; margin-bottom: 1rem; }
.contact2 .req { color: var(--gold); }
.contact2 .opt-one { color: var(--text-3); font-weight: 400; font-size: 0.85em; }
.contact2 .fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
.contact2 .field.full { grid-column: 1 / -1; }
.contact2 .field label { display: block; color: var(--on-dark); font-size: 0.9rem; margin-bottom: 0.45rem; }
.contact2 .input-wrap { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line-dark-2); border-radius: 14px; padding: 0 0.9rem; color: var(--on-dark-2); transition: border-color 0.2s ease; }
.contact2 .input-wrap:focus-within { border-color: var(--gold); }
.contact2 .input-wrap.textarea { align-items: flex-start; padding-top: 0.8rem; }
.contact2 input, .contact2 textarea { flex: 1; background: none; border: none; outline: none; color: #fff; font: inherit; font-size: 16px; padding: 0.85rem 0; min-width: 0; }
.contact2 textarea { min-height: 7rem; resize: vertical; padding-top: 0; }
.contact2 .submit-row { margin-top: 1.6rem; display: grid; gap: 1rem; justify-items: start; }
.contact2 .btn-submit { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: var(--ink); border: none; border-radius: 999px; padding: 1rem 1.8rem; font: inherit; font-weight: 700; cursor: pointer; }
.contact2 .btn-submit:disabled { opacity: 0.6; cursor: wait; }
.contact2 .btn-submit svg { width: 18px; height: 18px; }
.contact2 .feedback:empty { display: none; }
.contact2 .feedback { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.contact2 .feedback svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact2 .feedback.success { color: #7ED0A8; }
.contact2 .feedback.error { color: #F2A0A6; }
.contact2 .privacy-note { display: flex; align-items: center; gap: 0.45rem; color: var(--text-3); font-size: 0.82rem; }
.contact2 .privacy-note svg { width: 14px; height: 14px; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* ============ Mobile CTA bar (phones) ============ */
.m-cta-bar { display: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
    .diff-list, .steps2, .prices { grid-template-columns: 1fr; }
    .diff-list li { border-right: none; border-bottom: 1px solid var(--line-dark); padding: 1.6rem 0 !important; }
    .price { border-right: none; border-bottom: 1px solid var(--line-dark); padding: 2.2rem 0; }
    .price .tag { right: 0; }
}
@media (max-width: 900px) {
    .home-hero video { display: none; }
    .home-hero .poster { display: block; object-position: 80% center; opacity: 0.55; }
    .home-hero .shade { background: linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0.92) 70%); }
    .home-hero .video-toggle { display: none; }
}
@media (max-width: 760px) {
    .contact2 .fields { grid-template-columns: 1fr; }
    .m-cta-bar {
        display: flex; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
        padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(10,14,26,0.94);
        backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark-2);
        transform: translateY(110%); transition: transform 0.25s ease;
    }
    .m-cta-bar.show { transform: none; }
    .m-cta-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; }
    .m-cta-line { background: var(--gold); color: var(--ink); }
    .m-cta-price { border: 1px solid var(--line-dark-2); color: var(--on-dark); }
    body.has-m-cta .bmp-chat { bottom: calc(76px + env(safe-area-inset-bottom)); }
    body.has-m-cta { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero video { display: none; }
    .home-hero .poster { display: block; }
    .video-toggle { display: none; }
}
