:root {
    --accent: #1a73e8;
    --accent-dark: #1558b0;
    --mint: #14b8a6;
    --ink: #172033;
    --muted: #667085;
    --line: rgba(26, 115, 232, .16);
    --card: rgba(255, 255, 255, .88);
    --soft: #f4f8ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--ink);
    background: #eef6ff;
    overflow-x: hidden;
}

body.is-lightbox-open {
    overflow: hidden;
}

.line-booking-theme {
    --accent: #06c755;
    --accent-dark: #05843c;
    --mint: #18b7a1;
    --ink: #162018;
    --muted: #627168;
    --line: rgba(6, 199, 85, .18);
    --soft: #f2fbf5;
}

.line-booking-theme .hero-bg {
    background:
        linear-gradient(120deg, rgba(6, 199, 85, .18), transparent 36%),
        linear-gradient(240deg, rgba(24, 183, 161, .14), transparent 42%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.34) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.34) 0 1px, transparent 1px 72px),
        #effaf3;
}

.booking-hero {
    min-height: min(72vh, 720px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 28px;
    padding: clamp(34px, 8vw, 82px) clamp(20px, 6vw, 68px);
    border: 1px solid rgba(6, 199, 85, .18);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(7, 19, 14, .78), rgba(7, 19, 14, .5) 42%, rgba(7, 19, 14, .08) 72%),
        url('../img/line-booking-system-hero.png') center right / cover no-repeat;
    box-shadow: 0 28px 80px rgba(11, 72, 35, .16);
    overflow: hidden;
}

.booking-hero h1 {
    max-width: 940px;
    color: #fff;
    font-size: clamp(2.45rem, 7vw, 5.4rem);
    line-height: 1.08;
    font-weight: 900;
    text-shadow: 0 4px 26px rgba(0,0,0,.38);
}

.booking-hero h1 span {
    display: block;
    max-width: 860px;
    margin-top: 12px;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.45rem, 3.4vw, 3.25rem);
    line-height: 1.18;
}

.thread-copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin-top: 26px;
    color: rgba(255,255,255,.92);
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    line-height: 1.75;
    font-weight: 800;
}

.hero-lead {
    max-width: 820px;
    margin-top: 22px;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.9;
}

.hero-actions,
.demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 26px;
}

.primary-action,
.secondary-action,
.demo-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
}

.primary-action {
    color: #fff;
    background: linear-gradient(180deg, #19d96a, #06ad4a 58%, #048236);
    box-shadow: 0 16px 28px rgba(6, 160, 67, .25), inset 0 1px 0 rgba(255,255,255,.55);
}

.secondary-action {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
}

.booking-main .guide-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.system-visual {
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid rgba(6, 199, 85, .14);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(11, 72, 35, .1);
}

.system-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.mobile-proof-grid,
.pain-grid,
.feature-grid,
.field-fix-grid,
.demo-grid {
    display: grid;
    gap: 14px;
}

.mobile-proof-grid,
.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pain-grid {
    grid-template-columns: repeat(4, 1fr);
}

.demo-grid {
    grid-template-columns: repeat(2, 1fr);
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.proof-card,
.field-fix-card,
.pain-item,
.feature-card,
.backend-panel,
.demo-card {
    border: 1px solid rgba(6, 199, 85, .14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(11, 72, 35, .07);
}

.proof-card,
.field-fix-card,
.feature-card,
.backend-panel,
.demo-card {
    padding: 20px;
}

.proof-card i,
.field-fix-card i,
.feature-card i,
.demo-card > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--mint));
}

.proof-card h3,
.field-fix-card h3,
.pain-item h3,
.feature-card h3,
.backend-panel h3,
.demo-card h3 {
    margin-bottom: 8px;
    color: #14251a;
    font-size: 1.06rem;
    font-weight: 900;
}

.proof-card p,
.field-fix-card p,
.pain-item p,
.feature-card p,
.backend-panel p,
.demo-card p,
.demo-card small {
    color: var(--muted);
    line-height: 1.75;
}

.field-fixes-section {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f3fff7, #fff);
}

.field-fix-grid {
    grid-template-columns: repeat(4, 1fr);
}

.field-fix-card {
    background: linear-gradient(180deg, #fff, #f7fff9);
}

.field-fix-card i {
    background: linear-gradient(135deg, #162018, var(--accent-dark));
}

.promo-video-section {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f4fff8, #fff);
}

.promo-video-frame {
    overflow: hidden;
    border: 1px solid rgba(6, 199, 85, .18);
    border-radius: 20px;
    background: #07130e;
    box-shadow: 0 18px 46px rgba(11, 72, 35, .12);
}

.promo-video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #07130e;
    object-fit: contain;
}

.pricing-section {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fff9, #fff);
}

.booking-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(6, 199, 85, .16);
    border-radius: 18px;
    background: #162018;
    color: #fff;
}

.booking-price-box h3 {
    margin-bottom: 6px;
    font-size: 1.35rem;
    font-weight: 900;
}

.booking-price-box p {
    color: rgba(255,255,255,.78);
    line-height: 1.7;
}

.addon-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(6, 199, 85, .14);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(11, 72, 35, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.addon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(11, 72, 35, .12);
}

.addon-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.addon-card span,
.addon-card strong {
    display: block;
    padding: 0 18px;
}

.addon-card span {
    margin-top: 16px;
    color: #14251a;
    font-size: 1.05rem;
    font-weight: 900;
}

.addon-card strong {
    margin: 6px 0 18px;
    color: var(--accent-dark);
    font-size: 1.12rem;
}

.product-hero {
    margin-bottom: 28px;
    padding: clamp(36px, 7vw, 74px) clamp(20px, 6vw, 64px);
    border: 1px solid rgba(6, 199, 85, .18);
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(7, 19, 14, .88), rgba(7, 19, 14, .58)),
        url('../img/line-official-menu.jpg') center / cover no-repeat;
    color: #fff;
    box-shadow: 0 28px 80px rgba(11, 72, 35, .16);
}

.product-hero h1 {
    max-width: 920px;
    margin: 8px 0 14px;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 1.08;
    font-weight: 900;
}

.product-hero p:last-child {
    max-width: 760px;
    color: rgba(255,255,255,.86);
    font-size: 1.08rem;
    line-height: 1.9;
}

.product-detail-grid {
    display: grid;
    gap: 18px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(240px, 42%) 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(6, 199, 85, .14);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(11, 72, 35, .07);
}

.product-detail-card.has-gallery {
    grid-template-columns: 1fr;
}

.product-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-detail-card img {
    display: block;
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

#line-sticker img {
    aspect-ratio: auto;
    height: auto;
}

.product-image-gallery img {
    min-height: 150px;
}

.product-lightbox-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 12px;
}

.product-lightbox-btn img {
    transition: transform 0.22s ease;
}

.product-lightbox-btn:hover img {
    transform: scale(1.03);
}

.product-lightbox-btn:focus-visible {
    outline: 3px solid rgba(20, 139, 74, .35);
    outline-offset: -3px;
}

.product-detail-card h2 {
    margin: 4px 0 8px;
    color: #14251a;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    font-weight: 900;
}

.product-detail-card strong {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent-dark);
    font-weight: 900;
}

.product-detail-card p {
    color: var(--muted);
    line-height: 1.8;
}

.product-detail-card ul {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    list-style: none;
}

.product-detail-card li {
    display: flex;
    gap: 8px;
    color: #26372c;
    font-weight: 800;
}

.product-detail-card li i {
    color: var(--accent-dark);
}

.product-cta {
    text-align: center;
}

.product-cta .primary-action {
    margin-top: 8px;
}

.calendar-sync-shot {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    border: 1px solid rgba(6, 199, 85, .18);
    border-radius: 12px;
    background: #eef7f2;
    cursor: zoom-in;
    overflow: hidden;
}

.calendar-sync-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.calendar-sync-shot:focus-visible {
    outline: 3px solid rgba(20, 139, 74, .35);
    outline-offset: 3px;
}

.pain-item {
    padding: 20px;
    background: linear-gradient(180deg, #fff, #f8fffa);
}

.pain-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #fff;
    background: #18251d;
    font-size: .82rem;
    font-weight: 900;
}

.backend-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.backend-panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.backend-panel h3 i {
    color: var(--accent-dark);
}

.demo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-height: 360px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 72, 35, .15);
    border-color: rgba(6, 199, 85, .3);
}

.demo-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: none;
    height: 280px;
    margin: -20px -20px 16px;
    padding: 16px 0;
    border: 0;
    background: linear-gradient(135deg, #f2fdf5 0%, #ecf8f0 100%);
    cursor: zoom-in;
    overflow: hidden;
    position: relative;
}

/* 手機外殼模擬器 */
.demo-phone-wrapper {
    display: block;
    width: 130px;
    height: 240px;
    border: 6px solid #1e293b;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(11, 72, 35, .15);
    overflow: hidden;
    position: relative;
    background: #fff;
    pointer-events: none;
}

/* 手機聽筒/前鏡頭瀏海效果 */
.demo-phone-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 10px;
    background: #1e293b;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 10;
}

.demo-phone-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* 當滑鼠懸停在卡片上時，圖片平滑滾動至最底部 (桌面版可見容器高度為 240px - 12px 邊框 = 228px) */
.demo-card:hover .demo-phone-wrapper img,
.demo-thumb:focus-within .demo-phone-wrapper img {
    transform: translateY(calc(-100% + 228px));
}

.demo-thumb:focus-visible {
    outline: 3px solid rgba(20, 139, 74, .35);
    outline-offset: -3px;
}

.demo-thumb::after {
    content: "\f00e";
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 32, 24, .82);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
    pointer-events: none;
    z-index: 15;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(3, 8, 6, .84);
    backdrop-filter: blur(8px);
}

.lightbox-frame {
    width: min(980px, 100%);
    max-height: calc(100vh - 72px);
    margin: 0;
}

.lightbox-frame img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 118px);
    border-radius: 12px;
    object-fit: contain;
    background: #0d1510;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.lightbox-frame figcaption {
    margin-top: 12px;
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, .26);
    outline: none;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lightbox-prev {
    left: 28px;
}

.lightbox-next {
    right: 28px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-50%) scale(1.08);
    outline: none;
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.92);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        background: rgba(3, 8, 6, .6);
    }
    .lightbox-prev {
        left: 12px;
    }
    .lightbox-next {
        right: 12px;
    }
}

.demo-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #effaf3;
    font-size: .78rem;
    font-weight: 900;
}

.demo-card small {
    display: block;
    margin-top: 6px;
    font-weight: 800;
}

.demo-store {
    display: block;
    margin: -2px 0 6px;
    color: #0b5a2d;
    font-size: .95rem;
    font-weight: 900;
}

.demo-actions {
    margin-top: auto;
    padding-top: 18px;
}

.demo-actions a {
    flex: 1 1 45%;
    min-height: 42px;
    color: #fff;
    background: #162018;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.demo-actions a:first-child {
    background: var(--accent-dark);
}

.hero-bg,
.overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.hero-bg {
    z-index: -3;
    background:
        linear-gradient(120deg, rgba(26, 115, 232, .18), transparent 38%),
        linear-gradient(240deg, rgba(20, 184, 166, .16), transparent 42%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 72px),
        #eef6ff;
}

.overlay {
    z-index: -2;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.9) 58%, #fff);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 36px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.logo,
.admin-link,
.text-link,
.reference-list a {
    color: inherit;
    text-decoration: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 1.12rem;
    font-weight: 900;
    color: #123a68;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--mint));
    box-shadow: 0 14px 30px rgba(26, 115, 232, .22);
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: var(--accent-dark);
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 61, 112, .08);
}

.admin-link:hover {
    border-color: rgba(26, 115, 232, .34);
    background: #fff;
}

.brand-hero {
    margin: 0 auto 24px;
    padding: clamp(28px, 6vw, 56px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,248,255,.82));
    box-shadow: 0 30px 80px rgba(26, 115, 232, .14);
    text-align: center;
    overflow: hidden;
}

.hero-kicker,
.eyebrow {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.brand-hero h1 {
    max-width: 860px;
    margin: 0 auto;
    color: #0f2f57;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.08;
    font-weight: 900;
}

.brand-hero p:not(.hero-kicker) {
    max-width: 720px;
    margin: 18px auto 0;
    color: #526174;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.85;
}

.main-card {
    padding: clamp(22px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 26px 70px rgba(15, 61, 112, .12);
    backdrop-filter: blur(18px);
}

.wizard-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.wizard-header h2,
.section-heading h2 {
    color: #12243b;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
}

.wizard-header p,
.section-heading p,
.guide-step p,
.handoff-card p,
.final-check p {
    color: var(--muted);
    line-height: 1.8;
}

.flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    margin: 0 0 44px;
}

.flow-item {
    min-height: 168px;
    padding: 22px;
    border: 1px solid rgba(26,115,232,.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 63, 112, .08);
}

.flow-item i,
.handoff-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--mint));
}

.flow-item h3,
.guide-step h3,
.handoff-card h3,
.final-check h3 {
    margin-bottom: 8px;
    color: #132a46;
    font-size: 1.08rem;
    font-weight: 900;
}

.flow-item p,
.handoff-card p {
    font-size: .95rem;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.guide-section {
    padding: 38px 0;
    border-top: 1px solid rgba(26,115,232,.12);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 22px;
}

.eyebrow {
    margin-bottom: 8px;
}

.step-list {
    display: grid;
    gap: 14px;
}

.guide-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(26,115,232,.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 63, 112, .06);
}

.step-num {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(26, 115, 232, .22);
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #eef5ff;
    color: #0f4f96;
    font-family: Consolas, Monaco, monospace;
    font-size: .92em;
}

.text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--accent-dark);
    font-weight: 900;
}

.text-link::after {
    content: '\f061';
    margin-left: 8px;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.note-box,
.warning-box,
.copy-card,
.final-check {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.7;
}

.note-box {
    border: 1px solid rgba(20,184,166,.22);
    background: #effdfb;
    color: #0f766e;
    font-weight: 700;
}

.warning-box {
    border: 1px solid rgba(245,158,11,.26);
    background: #fff8e8;
    color: #9a5a00;
    font-weight: 700;
}

.copy-card {
    display: grid;
    gap: 6px;
    border: 1px dashed rgba(26,115,232,.28);
    background: #f7fbff;
}

.copy-card span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(26,115,232,.14);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #f8fbff;
    color: #31557d;
    font-weight: 900;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--accent);
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--accent-dark);
}

.code-block {
    max-height: 620px;
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(26,115,232,.14);
    border-radius: 0 0 18px 18px;
    background: #111827;
    color: #e5eefc;
    font-size: .92rem;
    line-height: 1.65;
}

.code-block code {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.handoff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.handoff-card {
    padding: 20px;
    border: 1px solid rgba(26,115,232,.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 63, 112, .06);
}

.final-check {
    border: 1px solid rgba(20,184,166,.22);
    background: #f0fdfa;
}

.final-check h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
}

.reference-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reference-list a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(26,115,232,.15);
    border-radius: 12px;
    background: #fff;
    color: var(--accent-dark);
    font-weight: 900;
}

.footer {
    padding: 34px 0 0;
    color: #738095;
    text-align: center;
    font-size: .84rem;
}

@media (max-width: 820px) {
    .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav,
    .admin-link {
        width: 100%;
    }

    .admin-link {
        justify-content: center;
    }

    .flow-grid,
    .handoff-grid {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        min-height: 26px;
        transform: rotate(90deg);
    }

    .guide-step {
        grid-template-columns: 1fr;
    }

    .code-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

    .booking-hero h1 {
        font-size: clamp(2.15rem, 13vw, 3.7rem);
    }

    .booking-hero {
        min-height: 640px;
        padding: 28px 18px;
        background:
            linear-gradient(180deg, rgba(7, 19, 14, .7), rgba(7, 19, 14, .38) 46%, rgba(7, 19, 14, .14)),
            url('../img/line-booking-system-hero.png') center center / cover no-repeat;
    }

    .booking-hero h1 span {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .hero-actions,
    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .mobile-proof-grid,
    .pain-grid,
    .feature-grid,
    .field-fix-grid,
    .addon-grid,
    .backend-layout,
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .booking-price-box {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-price-box .primary-action {
        width: 100%;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-image-gallery {
        grid-template-columns: 1fr;
    }

    .product-detail-card img {
        min-height: 220px;
    }

    #line-sticker img {
        min-height: 0;
    }

    .field-fixes-section {
        padding: 18px;
    }

    .promo-video-section {
        padding: 18px;
    }

    .promo-video-frame {
        border-radius: 16px;
    }

    .demo-card {
        min-height: 0;
        padding: 12px;
    }

    .demo-card:hover {
        transform: none;
        box-shadow: 0 14px 30px rgba(11, 72, 35, .07);
    }

    .demo-thumb {
        height: 240px;
        margin: -12px -12px 12px;
        padding: 12px 0;
    }

    .demo-phone-wrapper {
        width: 110px;
        height: 200px;
        border-width: 5px;
        border-radius: 16px;
    }

    .demo-phone-wrapper::before {
        width: 36px;
        height: 8px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    /* 行動版可見容器高度為 200px - 10px 邊框 = 190px */
    .demo-card:hover .demo-phone-wrapper img,
    .demo-thumb:focus-within .demo-phone-wrapper img {
        transform: translateY(calc(-100% + 190px));
    }
    
    .demo-thumb::after {
        bottom: 12px;
        left: 12px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .demo-tag {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .demo-card > i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .demo-card h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .demo-store {
        font-size: 0.85rem;
    }

    .demo-card p {
        font-size: 0.8rem;
    }
    
    .demo-card small {
        font-size: 0.75rem;
    }

    .demo-actions {
        padding-top: 12px;
        gap: 6px;
    }

    .demo-actions a {
        padding: 6px 4px;
        font-size: 0.8rem;
        min-height: 36px;
    }
}
