:root {
    --navy: #08111f;
    --orange: #f15a29;
    --orange-light: #ff8159;
    --paper: #f2f1ec;
    --white: #fff;
    --ink: #142033;
    --muted: #69717f;
    --line: #d8d8d2;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans TC", "Noto Sans JP", Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::selection { background: rgba(241, 90, 41, .24); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-160%); border-radius: 4px; background: var(--white); color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: var(--white); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 145px; height: auto; }

.product-hero { position: relative; overflow: hidden; padding: 116px 0 64px; background: var(--navy); color: var(--white); }
.hero-grid { position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, #000, transparent 70%); }
.hero-glow { position: absolute; right: -12%; top: 4%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(241,90,41,.16), rgba(241,90,41,0) 68%); }
.hero-layout { position: relative; min-height: 640px; display: grid; grid-template-columns: minmax(0,.95fr) minmax(420px,1.05fr); align-items: stretch; gap: 64px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 46px 0 30px; }
.product-index-link { width: fit-content; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s, transform .2s; }
.product-index-link:hover, .product-index-link:focus-visible { color: var(--orange-light); transform: translateX(-2px); }
.product-selector { width: min(100%, 390px); margin-bottom: 28px; }
.product-selector label { display: block; margin-bottom: 7px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-selector-control { position: relative; }
.product-selector-control::after { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; transform: translateY(-70%) rotate(45deg); border-right: 2px solid var(--orange-light); border-bottom: 2px solid var(--orange-light); pointer-events: none; content: ""; }
.product-selector select { width: 100%; min-height: 46px; padding: 10px 42px 10px 14px; appearance: none; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; outline: none; background: rgba(255,255,255,.07); color: var(--white); font-size: 13px; font-weight: 700; cursor: pointer; }
.product-selector select:hover, .product-selector select:focus-visible { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
.product-selector option { background: var(--white); color: var(--ink); }
.eyebrow, .section-index { margin: 0 0 20px; color: var(--orange); font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.product-code { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: rgba(255,255,255,.9); font-family: "Outfit", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.product-code span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.5); font-size: 12px; font-weight: 500; }
.product-hero h1 { max-width: 620px; margin: 0; font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif; font-size: clamp(46px, 5vw, 68px); line-height: 1.04; letter-spacing: -.025em; }
.hero-lead { max-width: 570px; margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, background-color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: var(--white); }
.button-primary:hover { background: #d94819; }
.button-secondary { border-color: rgba(255,255,255,.28); color: var(--white); }
.button-secondary:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.button-ghost { border-color: #b8b9b6; color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); }

.hero-product { position: relative; min-height: 610px; display: flex; align-items: center; justify-content: center; padding: 36px 12px 18px; }
.hero-product > img { position: relative; z-index: 2; width: min(540px, 100%); height: auto; max-height: 570px; object-fit: contain; filter: drop-shadow(0 28px 24px rgba(0,0,0,.34)); }

.section { padding: 82px 0; }
.section-intro { padding-top: 96px; }
.intro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: start; }
.intro-layout h2, .section-heading h2, .contact-card h2 { margin: 0; font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.02em; }
.intro-copy > p { margin: 4px 0 26px; color: #4f5967; font-size: 18px; }
.text-link { color: var(--orange); font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.benefit-grid { max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.benefit-card { min-height: 220px; padding: 30px; background: var(--paper); }
.benefit-number { color: var(--orange); font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.benefit-card h3 { margin: 26px 0 10px; font-size: 21px; line-height: 1.3; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 15px; }

.section-operations { background: #e7e7e1; }
.section-heading { max-width: 720px; margin: 0 auto 32px; }
.section-heading > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.operations-grid { max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-inline: auto; }
.capability-card { padding: 30px; border-top: 4px solid var(--orange); background: var(--white); box-shadow: 0 12px 36px rgba(20,32,51,.05); }
.card-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: "Outfit", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.card-heading p { margin: 0 0 2px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.card-heading h3 { margin: 0; font-size: 23px; }
.equipment-spec-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 24px; border-top: 1px solid #dfe0db; border-left: 1px solid #dfe0db; }
.equipment-spec-list > div { min-width: 0; padding: 13px 14px; border-right: 1px solid #dfe0db; border-bottom: 1px solid #dfe0db; background: #f7f7f3; }
.equipment-spec-list dt { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.equipment-spec-list dd { margin: 0; color: var(--ink); font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.capability-list, .payment-list { margin: 0; padding: 0; list-style: none; }
.capability-list li, .payment-list li { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: start; gap: 18px; padding: 14px 12px; border-top: 1px solid #e8e8e3; }
.capability-list li:nth-child(even), .payment-list li:nth-child(even) { background: #fafaf8; }
.capability-item-copy { min-width: 0; }
.capability-item-copy strong { display: block; font-size: 14px; line-height: 1.4; }
.support-status { width: 82px; display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; font-size: 11px; font-weight: 700; }
.support-status > span:first-child { width: 22px; min-width: 22px; height: 22px; min-height: 22px; display: grid; place-items: center; flex: 0 0 22px; border-radius: 50%; line-height: 1; }
.is-supported { color: #08733f; }
.is-supported > span:first-child { background: #72e6a5; }
.is-unsupported { color: #6f747c; }
.is-unsupported > span:first-child { background: #e5e7eb; }
.is-optional { color: #805a00; }
.is-optional > span:first-child { background: #ffd85c; }
.capability-item-copy small { display: block; margin-top: 8px; padding: 9px 11px; border-left: 3px solid #d38a43; border-radius: 4px; background: #f5eee6; color: #66584b; font-size: 11px; line-height: 1.55; }
.notice { display: flex; gap: 10px; margin: 22px 0 0; padding: 13px 15px; background: #fff4ef; color: #7a3a23; font-size: 12px; }
.notice span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 800; }
.notice.is-info { background: #eef4f8; color: #365467; }
.notice.is-info span { background: #52758a; }
.payment-list .capability-item-note li, .payment-list .capability-item-note li:nth-child(even) { background: transparent; }
.notice.is-warning { border-left: 3px solid #b83422; background: #fff0ec; color: #722b20; font-weight: 700; }
.capability-item-note { margin-top: 8px; padding: 9px 11px; border-left: 3px solid #d38a43; border-radius: 4px; background: #f5eee6; color: #66584b; font-size: 11px; line-height: 1.55; }
.capability-item-note ul { display: grid; gap: 3px; margin: 0; padding-left: 17px; }
.capability-item-note li { min-height: 0; display: list-item; padding: 0; border: 0; background: transparent; }

.section-games { overflow: hidden; background: var(--navy); color: var(--white); }
.games-layout { max-width: 920px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.games-intro { color: rgba(255,255,255,.55); }
.games-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--orange-light); font-size: 14px; font-weight: 800; text-decoration: none; }
.games-link:hover, .games-link:focus-visible { color: var(--white); text-decoration: underline; }
.game-list { border-top: 1px solid rgba(255,255,255,.18); }
.game-item { min-height: 68px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 18px; font-weight: 700; }
.game-item > span { color: rgba(255,255,255,.36); font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: .1em; }
.game-item b { color: var(--orange); }

.section-gallery { background: #f8f7f3; }
/* 桌面版每列兩張，讓場域照片足夠大且仍維持並排閱讀。 */
.gallery-grid { max-width: 1100px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-inline: auto; }
.gallery-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item { position: relative; min-height: 0; margin: 0; overflow: hidden; background: #d9d9d4; }
.gallery-item { aspect-ratio: 16 / 10; }
/* 實際場域圖片統一以 16:10 呈現；過高或過寬的部分會從中央裁切。 */
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: 9px; padding: 42px 14px 14px; background: linear-gradient(transparent, rgba(4,10,18,.82)); color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.4; }
.gallery-item figcaption span { color: var(--orange-light); font-family: "Outfit", sans-serif; font-size: 11px; }
.gallery-grid.is-contain .gallery-item { min-height: 410px; aspect-ratio: auto; background: #fff; }
.gallery-grid.is-contain .gallery-item img { object-fit: contain; }
.gallery-grid.is-contain.is-portrait .gallery-item { min-height: 0; aspect-ratio: 955 / 1024; }
.gallery-grid.is-contain .gallery-item:hover img { transform: scale(1.015); }

.contact-section { padding-top: 0; background: #f8f7f3; }
.contact-card { max-width: 960px; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; padding: 42px; background: var(--white); border-left: 5px solid var(--orange); box-shadow: 0 16px 48px rgba(20,32,51,.07); }
.contact-card h2 { max-width: 720px; font-size: clamp(34px, 4.5vw, 54px); }
.contact-card p:not(.section-index) { max-width: 670px; margin: 20px 0 0; color: var(--muted); }
.contact-actions { min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.site-footer { padding: 30px 0; background: #050b14; color: rgba(255,255,255,.5); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-inner a:hover { color: var(--orange); }
.facebook-fab, .whatsapp-fab { position: fixed; z-index: 40; left: 24px; min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: var(--white); box-shadow: 0 14px 38px rgba(15,22,38,.24); font-weight: 800; text-decoration: none; transition: transform .2s, background-color .2s; }
.facebook-fab { bottom: 92px; background: #155ac2; }
.whatsapp-fab { bottom: 24px; background: #187c58; }
.facebook-fab:hover, .facebook-fab:focus-visible, .whatsapp-fab:hover, .whatsapp-fab:focus-visible { transform: translateY(-3px); }
.fab-icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }

@media (max-width: 980px) {
    .hero-layout { min-height: 580px; grid-template-columns: minmax(0,1fr) minmax(370px,.9fr); gap: 36px; }
    .hero-product { min-height: 520px; padding: 40px 20px 24px; }
    .intro-layout, .games-layout { gap: 54px; }
    .contact-card { grid-template-columns: 1fr; align-items: start; }
    .contact-actions { min-width: 0; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 760px) {
    .facebook-fab, .whatsapp-fab { left: 14px; min-height: 50px; padding: 9px; font-size: 14px; }
    .facebook-fab { bottom: 78px; }
    .whatsapp-fab { bottom: 14px; }
    .facebook-fab > span, .whatsapp-fab > span { display: none; }
    .shell { width: min(calc(100% - 30px), var(--shell)); }
    .header-inner { min-height: 74px; }
    .brand img { width: 126px; }
    .product-hero { padding: 98px 0 38px; }
    /*
     * 手機版將文字容器攤平為同一個直式流程，讓主圖能排在說明與按鈕之間。
     * HTML 仍維持單一份按鈕與內容，避免桌機／手機日後出現兩套資料。
     */
    .hero-layout { min-height: 0; display: flex; flex-direction: column; gap: 0; }
    .hero-copy { display: contents; }
    .hero-copy > * { position: relative; z-index: 2; }
    .hero-copy .product-index-link { order: 1; margin-top: 30px; }
    .hero-copy .product-selector { order: 2; }
    .hero-copy .eyebrow { order: 3; }
    .hero-copy .product-code { order: 4; }
    .hero-copy h1 { order: 5; }
    .hero-copy .hero-lead { order: 6; }
    .hero-product { order: 7; }
    .hero-copy .hero-actions { order: 8; margin-top: 10px; }
    .product-hero h1 { font-size: clamp(42px, 12vw, 58px); }
    .hero-product { min-height: 420px; padding: 30px 18px 18px; }
    .hero-product > img { max-height: 390px; }
    .gallery-grid-3 { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .section-intro { padding-top: 72px; }
    .intro-layout, .operations-grid, .games-layout { grid-template-columns: 1fr; gap: 36px; }
    .benefit-grid { grid-template-columns: 1fr; margin-top: 36px; }
    .benefit-card { min-height: 0; }
    .benefit-card h3 { margin-top: 26px; }
    /* 手機與窄版畫面每列只放一張場域圖片，避免圖片過小。 */
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .contact-card { padding: 38px 28px; }
}

@media (max-width: 460px) {
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .hero-lead { font-size: 16px; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .hero-product { min-height: 340px; padding: 22px 12px 14px; }
    .hero-product > img { max-height: 320px; }
    .equipment-spec-list { grid-template-columns: 1fr; }
    .capability-card { padding: 26px 20px; }
    .capability-list li, .payment-list li { grid-template-columns: minmax(0, 1fr) 22px; gap: 12px; }
    .support-status { width: 22px; }
    .support-status > span:last-child { display: none; }
    .gallery-item figcaption { padding: 36px 10px 10px; font-size: 11px; }
    .contact-actions, .contact-actions .button { width: 100%; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
    .site-header, .hero-actions, .facebook-fab, .whatsapp-fab, .contact-section, .site-footer { display: none !important; }
    .product-hero, .section-games { background: #fff; color: #000; }
}
