/* HomePal 風格 A — 參考 Call師傅：全屏城市 Hero、橙色主調、App 落單導向 */
:root {
    --cs-orange: #f5821f;
    --cs-orange-dark: #d96a0a;
    --cs-orange-light: #fff4e8;
    --cs-ink: #1c1c1c;
    --cs-muted: #666;
    --cs-white: #fff;
    --cs-bg: #f7f7f7;
    --cs-line: #ebebeb;
    --cs-header-h: 64px;
    --cs-font: "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --cs-display: "Outfit", "Noto Sans TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.i18n-pending body { visibility: hidden; }
html.i18n-ready body { visibility: visible; }
body {
    font-family: var(--cs-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--cs-ink);
    background: var(--cs-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cs-orange); text-decoration: none; }
a:hover { color: var(--cs-orange-dark); }
ul { list-style: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.cs-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cs-line);
    height: var(--cs-header-h);
}
.cs-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.cs-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cs-orange);
    font-weight: 800;
    font-size: 20px;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}
.cs-logo span { white-space: nowrap; }
.cs-logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
}
.cs-nav { display: none; gap: 22px; }
.cs-nav a { color: var(--cs-ink); font-size: 14px; font-weight: 500; }
.cs-nav a:hover { color: var(--cs-orange); }
.cs-nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--cs-orange);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}
.cs-nav-cta:hover { background: var(--cs-orange-dark); color: #fff !important; }
.cs-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cs-lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--cs-line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.cs-lang-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--cs-muted);
    font-family: var(--cs-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
    min-width: 36px;
    transition: background .15s ease, color .15s ease;
}
.cs-lang-btn:hover { color: var(--cs-orange); }
.cs-lang-btn.active {
    background: var(--cs-orange);
    color: #fff;
}
.cs-lang-btn + .cs-lang-btn { border-left: 1px solid var(--cs-line); }
.cs-lang-btn.active + .cs-lang-btn,
.cs-lang-btn + .cs-lang-btn.active { border-left-color: transparent; }
.cs-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.cs-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cs-orange);
}
.cs-nav-mobile {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--cs-line);
    padding: 12px 20px 20px;
}
.cs-nav-mobile.open { display: flex; }
.cs-nav-mobile a {
    padding: 12px 0;
    color: var(--cs-ink);
    border-bottom: 1px solid var(--cs-line);
    font-weight: 500;
}
@media (min-width: 900px) {
    .cs-nav { display: flex; align-items: center; }
    .cs-nav-toggle { display: none; }
}

/* Hero — 全屏城市實景 */
.cs-hero {
    position: relative;
    min-height: calc(100vh - var(--cs-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: #0a1220;
}
.cs-hero-bg {
    position: absolute;
    inset: -8% 0;
    background:
        url("../images/hero-hk-night.jpg") center center/cover no-repeat;
    transform: scale(1.08);
    will-change: transform;
    animation: cs-kenburns 22s ease-in-out infinite alternate;
}
.cs-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,14,28,.42) 0%, rgba(10,16,30,.55) 45%, rgba(6,10,18,.82) 100%);
    pointer-events: none;
}
.cs-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.cs-hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,194,122,.55);
    animation: cs-float-up 8s linear infinite;
    opacity: 0;
}
.cs-hero-particles span:nth-child(1) { left: 12%; animation-delay: 0s; }
.cs-hero-particles span:nth-child(2) { left: 28%; animation-delay: 1.5s; width: 4px; height: 4px; }
.cs-hero-particles span:nth-child(3) { left: 45%; animation-delay: 3s; }
.cs-hero-particles span:nth-child(4) { left: 62%; animation-delay: 0.8s; width: 5px; height: 5px; }
.cs-hero-particles span:nth-child(5) { left: 78%; animation-delay: 2.2s; }
.cs-hero-particles span:nth-child(6) { left: 88%; animation-delay: 4s; width: 3px; height: 3px; }
.cs-hero-inner {
    position: relative;
    z-index: 2;
    padding: 64px 20px 100px;
    max-width: 820px;
}
.cs-hero-brand {
    font-family: var(--cs-display);
    font-size: clamp(28px, 5.5vw, 44px);
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 8px;
    text-shadow: 0 4px 24px rgba(0,0,0,.45);
    animation: cs-fade-up .9s ease both;
}
.cs-hero h1 {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.3;
    text-shadow: 0 4px 24px rgba(0,0,0,.45);
    margin-bottom: 16px;
    opacity: .96;
    animation: cs-fade-up .9s .08s ease both;
}
.cs-hero-desc { animation: cs-fade-up .9s .18s ease both; }
.cs-hero-actions { animation: cs-fade-up .9s .3s ease both; }
.cs-stats { animation: cs-fade-up .9s .42s ease both; }

/* 引流促銷條 */
.cs-promo-bar {
    background: linear-gradient(90deg, #fff4e8, #ffe0c2 50%, #fff4e8);
    border-bottom: 1px solid #f3d4b0;
}
.cs-promo-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    padding: 14px 0;
    text-align: center;
    font-size: 14px;
    color: #5a3a14;
}
.cs-promo-bar strong { color: var(--cs-orange-dark); font-weight: 800; }
.cs-promo-bar a {
    font-weight: 700;
    color: var(--cs-orange-dark);
    white-space: nowrap;
}
.cs-hero-desc {
    font-size: clamp(15px, 2.2vw, 18px);
    opacity: .95;
    max-width: 560px;
    margin: 0 auto 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.cs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .2s;
}
.cs-btn-primary {
    background: var(--cs-orange);
    color: #fff;
    border-color: var(--cs-orange);
}
.cs-btn-primary:hover {
    background: var(--cs-orange-dark);
    color: #fff;
}
.cs-btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.55);
    backdrop-filter: blur(4px);
}
.cs-btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.cs-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    max-width: 640px;
    margin: 0 auto;
}
.cs-stats li { text-align: center; }
.cs-stats strong {
    display: block;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: #ffc27a;
    line-height: 1.2;
}
.cs-stats span { font-size: 13px; opacity: .85; }
@media (min-width: 640px) {
    .cs-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
.cs-section { padding: 72px 0; }
.cs-section-alt { background: var(--cs-bg); }
.cs-section-head { text-align: center; margin-bottom: 40px; }
.cs-section-head h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    margin-bottom: 10px;
}
.cs-section-head p { color: var(--cs-muted); max-width: 560px; margin: 0 auto; }

/* 服務選擇 — 2x2 大卡 */
.cs-svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto 28px;
}
@media (min-width: 700px) {
    .cs-svc-grid { grid-template-columns: repeat(3, 1fr); }
}
.cs-svc-card {
    display: block;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: .35s cubic-bezier(.22,1,.36,1);
    cursor: pointer;
    padding: 0 0 20px;
    color: inherit;
    text-decoration: none;
}
.cs-svc-card:hover { color: inherit; }
.cs-svc-card:hover {
    border-color: var(--cs-orange);
    box-shadow: 0 16px 40px rgba(245,130,31,.2);
    transform: translateY(-6px);
}
.cs-svc-card:hover .cs-svc-photo img { transform: scale(1.08); }
.cs-svc-photo {
    position: relative;
    height: 130px;
    overflow: hidden;
    margin-bottom: 16px;
}
.cs-svc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.cs-svc-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.35));
}
.cs-svc-icon {
    width: 48px;
    height: 48px;
    margin: -36px auto 10px;
    border-radius: 14px;
    background: #fff;
    color: var(--cs-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.cs-svc-card h3 { font-size: 16px; font-weight: 700; padding: 0 12px; }
.cs-svc-lead {
    text-align: center;
    color: var(--cs-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 15px;
}

/* 如何搵師傅 */
.cs-how {
    display: grid;
    gap: 20px;
}
@media (min-width: 768px) {
    .cs-how { grid-template-columns: repeat(4, 1fr); }
}
.cs-how-step {
    background: #fff;
    border-radius: 16px;
    padding: 0 0 22px;
    text-align: center;
    border: 1px solid var(--cs-line);
    position: relative;
    overflow: hidden;
    transition: .3s;
}
.cs-how-step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.cs-how-photo {
    height: 120px;
    overflow: hidden;
    margin-bottom: 8px;
}
.cs-how-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.cs-how-step:hover .cs-how-photo img { transform: scale(1.06); }
.cs-how-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cs-orange);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px auto 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(245,130,31,.4);
}
.cs-how-step h3 { font-size: 16px; margin-bottom: 8px; padding: 0 14px; }
.cs-how-step p { font-size: 13px; color: var(--cs-muted); padding: 0 14px; }

/* 質素保證大數字 */
.cs-quality-copy h2 { font-size: 28px; margin-bottom: 14px; }
.cs-quality-copy p { color: var(--cs-muted); margin-bottom: 20px; }
.cs-quality-nums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
.cs-q-num {
    background: var(--cs-orange);
    color: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
}
.cs-q-num strong { display: block; font-size: 36px; font-weight: 800; line-height: 1.1; }
.cs-q-num span { font-size: 13px; opacity: .9; }
.cs-q-num:nth-child(2) { background: #222; }

/* 服務種類標籤 */
.cs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.cs-tab {
    border: 1px solid var(--cs-line);
    background: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--cs-ink);
}
.cs-tab.active {
    background: var(--cs-orange);
    border-color: var(--cs-orange);
    color: #fff;
}
.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.cs-tags li {
    background: #fff;
    border: 1px solid var(--cs-line);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}
.cs-section-alt .cs-tags li { background: #fff; }
.cs-panel[hidden] { display: none; }

/* 媒體 */
.cs-media {
    display: grid;
    gap: 14px;
}
@media (min-width: 700px) {
    .cs-media { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .cs-media { grid-template-columns: repeat(3, 1fr); }
}
.cs-media-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--cs-line);
}
.cs-media-card p {
    font-size: 14px;
    color: #333;
    margin-bottom: 14px;
    quotes: "「" "」";
}
.cs-media-card p::before { content: open-quote; color: var(--cs-orange); font-size: 20px; }
.cs-media-card footer {
    font-size: 13px;
    font-weight: 700;
    color: var(--cs-orange);
}

/* 評價 */
.cs-reviews {
    display: grid;
    gap: 14px;
}
@media (min-width: 700px) {
    .cs-reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .cs-reviews { grid-template-columns: repeat(3, 1fr); }
}
.cs-review {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--cs-line);
}
.cs-review .stars { color: var(--cs-orange); letter-spacing: 2px; margin-bottom: 8px; font-size: 14px; }
.cs-review p { font-size: 14px; margin-bottom: 12px; color: #333; }
.cs-review footer { font-size: 13px; color: var(--cs-muted); }
.cs-review .tag {
    display: inline-block;
    font-size: 12px;
    background: var(--cs-orange-light);
    color: var(--cs-orange-dark);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* 功能六大 */
.cs-features {
    display: grid;
    gap: 14px;
}
@media (min-width: 700px) {
    .cs-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .cs-features { grid-template-columns: repeat(3, 1fr); }
}
.cs-feat {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--cs-line);
}
.cs-feat-num {
    color: var(--cs-orange);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}
.cs-feat h3 { font-size: 17px; margin-bottom: 8px; }
.cs-feat p { font-size: 14px; color: var(--cs-muted); }

/* 新人福利 */
.cs-rewards-section {
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(245, 130, 31, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 35% at 90% 100%, rgba(245, 130, 31, 0.08), transparent 50%),
        var(--cs-bg);
}
.cs-rewards {
    display: grid;
    gap: 18px;
}
@media (min-width: 800px) {
    .cs-rewards { grid-template-columns: repeat(2, 1fr); }
}
.cs-reward {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--cs-line);
    box-shadow: 0 12px 36px rgba(28, 28, 28, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.cs-reward:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(28, 28, 28, 0.1);
}
.cs-reward-media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #e8d9c8;
}
.cs-reward-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.cs-reward:hover .cs-reward-media img { transform: scale(1.06); }
.cs-reward-body { padding: 22px 22px 24px; }
.cs-reward-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-orange-light);
    color: var(--cs-orange-dark);
    margin-bottom: 12px;
}
.cs-reward-icon .icon { width: 22px; height: 22px; }
.cs-reward h3 { font-size: 19px; margin-bottom: 8px; }
.cs-reward-body > p { font-size: 14px; color: var(--cs-muted); margin-bottom: 12px; line-height: 1.7; }
.cs-reward ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cs-reward li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: #333;
}
.cs-reward li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-orange);
}
.cs-btn-sm { padding: 10px 18px; font-size: 14px; }
.cs-rewards-note {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--cs-muted);
}

/* FAQ */
.cs-faq { max-width: 760px; margin: 0 auto; }
.cs-faq details {
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 4px 18px;
}
.cs-faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 14px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after {
    content: "+";
    color: var(--cs-orange);
    font-size: 20px;
    font-weight: 400;
}
.cs-faq details[open] summary::after { content: "−"; }
.cs-faq details p {
    padding-bottom: 16px;
    color: var(--cs-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA */
.cs-cta {
    position: relative;
    color: #fff;
    padding: 88px 0;
    text-align: center;
    overflow: hidden;
}
.cs-cta-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26, 18, 8, 0.88) 0%, rgba(90, 42, 8, 0.82) 50%, rgba(26, 18, 8, 0.9) 100%),
        url("https://images.unsplash.com/photo-1560448204-e02f11c99e01?auto=format&fit=crop&w=1600&q=80")
        center / cover no-repeat;
    z-index: 0;
}
.cs-cta-inner { position: relative; z-index: 1; }
.cs-cta-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cs-cta h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; }
.cs-cta-lead { opacity: .9; margin-bottom: 28px; }
.cs-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.cs-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #111 !important;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
}
.cs-store:hover { background: #f0f0f0; color: #111 !important; }
.cs-cta-phone { margin-top: 12px; font-size: 14px; opacity: .9; }
.cs-cta-phone a { color: #ffc27a; }

/* Footer */
.cs-footer {
    background: #161616;
    color: #aaa;
    padding: 48px 0 28px;
    font-size: 14px;
}
.cs-footer-grid {
    display: grid;
    gap: 28px;
    margin-bottom: 32px;
}
@media (min-width: 700px) {
    .cs-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.cs-footer strong { color: #fff; display: block; margin-bottom: 8px; }
.cs-footer a { color: #ccc; }
.cs-footer a:hover { color: var(--cs-orange); }
.cs-footer-brand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.cs-footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}
.cs-footer-links { display: flex; flex-direction: column; gap: 8px; }
.cs-footer-copy {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* 政策頁：沿用官網頂欄／頁腳 */
.legal-page .cs-header-actions {
    margin-left: auto;
}
.legal-page .legal-back-cta {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
}
.legal-page .legal-main {
    padding-top: calc(var(--cs-header-h) + 40px);
}
@media (max-width: 560px) {
    .legal-page .cs-header-inner {
        gap: 8px;
        padding: 0 12px;
    }
    .legal-page .cs-logo {
        font-size: 15px;
        gap: 6px;
    }
    .legal-page .cs-logo img {
        width: 28px;
        height: 28px;
    }
    .legal-page .cs-header-actions {
        gap: 6px;
    }
    .legal-page .cs-lang-btn {
        min-width: 30px;
        padding: 5px 7px;
        font-size: 11px;
    }
    .legal-page .legal-back-cta {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 廣告語彈窗 */
.cs-slogan-popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cs-slogan-popup[hidden] { display: none !important; }
.cs-slogan-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 6, .62);
    backdrop-filter: blur(4px);
}
.cs-slogan-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: linear-gradient(165deg, #fff 0%, #fff8f0 55%, #ffe8cc 100%);
    border-radius: 24px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    animation: cs-slogan-pop .45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes cs-slogan-pop {
    from { opacity: 0; transform: translateY(28px) scale(.92); }
    to { opacity: 1; transform: none; }
}
.cs-slogan-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #999;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.cs-slogan-popup__close:hover,
.cs-slogan-popup__close:focus,
.cs-slogan-popup__close:focus-visible {
    color: var(--cs-ink);
    background: rgba(0,0,0,.05);
    border: none;
    outline: none;
    box-shadow: none;
}
.cs-slogan-popup__logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(245, 130, 31, .35);
}
.cs-slogan-popup__brand {
    font-family: var(--cs-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--cs-orange);
    margin: 0 0 14px;
}
.cs-slogan-popup__title {
    font-size: clamp(24px, 5.5vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .04em;
    color: var(--cs-ink);
    margin: 0 0 10px;
}
.cs-slogan-popup__sub {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-muted);
    margin: 0 0 24px;
}
.cs-slogan-popup__cta {
    display: inline-flex;
    min-width: 220px;
    justify-content: center;
}
body.cs-slogan-open { overflow: hidden; }

.js-ready .fade-in { opacity: 0; transform: translateY(16px); transition: .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 200;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 質素區配圖 ── */
.cs-quality {
    display: grid;
    gap: 32px;
    align-items: center;
}
@media (min-width: 800px) {
    .cs-quality { grid-template-columns: 1fr 1.05fr; }
}
.cs-quality-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
.cs-quality-visual img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.cs-quality-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255,255,255,.95);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    animation: cs-bob 3.2s ease-in-out infinite;
}
.cs-quality-badge strong { display: block; color: var(--cs-orange); font-size: 20px; }
.cs-quality-badge span { font-size: 12px; color: var(--cs-muted); }

/* ── 案例圖廊跑馬燈 ── */
.cs-gallery {
    overflow: hidden;
    padding: 0 0 8px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cs-gallery-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: cs-marquee 40s linear infinite;
}
.cs-gallery-track:hover { animation-play-state: paused; }
.cs-gallery-item {
    width: 220px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.cs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.cs-gallery-item:hover img { transform: scale(1.08); }
.cs-gallery-item span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* ── 評價頭像 ── */
.cs-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cs-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cs-orange-light);
}

/* ── 浮動按鈕 ── */
.cs-float-cta {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cs-orange);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 28px rgba(245,130,31,.45);
    animation: cs-pulse 2.4s ease-in-out infinite;
}
.cs-float-cta:hover { background: var(--cs-orange-dark); color: #fff !important; transform: scale(1.06); }

/* ── 通用動畫（僅 JS 就緒後隱藏，避免整頁空白） ── */
.js-ready .img-reveal {
    opacity: 0;
    transition: opacity .5s ease;
}
.img-reveal.loaded { opacity: 1; }

.stagger-item { transition-delay: var(--stagger, 0s); }

.js-ready .fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1);
    transition-delay: var(--stagger, 0s);
}
.fade-in.visible { opacity: 1; transform: none; }

@keyframes cs-kenburns {
    from { transform: scale(1.08) translateY(0); }
    to { transform: scale(1.16) translateY(-2%); }
}
@keyframes cs-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
@keyframes cs-float-up {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: .7; }
    90% { opacity: .4; }
    100% { transform: translateY(-20px); opacity: 0; }
}
@keyframes cs-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes cs-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes cs-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(245,130,31,.45); }
    50% { box-shadow: 0 8px 28px rgba(245,130,31,.45), 0 0 0 12px rgba(245,130,31,.18); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-hero-bg,
    .cs-hero-particles span,
    .cs-gallery-track,
    .cs-float-cta,
    .cs-quality-badge,
    .cs-hero h1,
    .cs-hero-desc,
    .cs-hero-actions,
    .cs-stats { animation: none !important; }
    .cs-slogan-popup__dialog { animation: none !important; }
}
}
