:root {
    --bg: #0b0c0f;
    --muted: #a8acb3;
    --fg: #e9eaec;
    --accent: #43e3cf;
    --accent2: #7aa5ff;
    --glass: rgba(255, 255, 255, .065);
    --titleTop: 45%
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 20% -10%, #192033 0%, #0b0c0f 60%), #0b0c0f;
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "Helvetica Neue", Arial, sans-serif
}

a {
    color: var(--accent)
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px) saturate(1.3);
    background: rgba(8, 10, 14, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

html {
  overflow-y: scroll;
}

.nav {
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .78rem 1rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 850;
    white-space: nowrap
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .18rem
}

.menu a {
    color: var(--muted);
    text-decoration: none;
    padding: .42rem .52rem;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: .93rem
}

.menu a.active,
.menu a:hover {
    color: var(--fg);
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .045)
}

.lang-switch {
    cursor: pointer;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 10px;
    border-radius: 9px;
    white-space: nowrap
}

.banner {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.banner>img {
    width: 100%;
    height: min(80vh, 800px);
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: contrast(1.04) saturate(1.04)
}

.mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .58))
}

.title {
    position: absolute;
    left: 50%;
    top: var(--titleTop);
    transform: translate(-50%, -50%);
    text-align: center;
    padding: .9rem 1.22rem;
    border-radius: 16px;
    backdrop-filter: blur(10px) saturate(1.25);
    background: linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .22));
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .26)
}

.title h1 {
    margin: 0;
    font-size: clamp(28px, 5.7vw, 54px);
    letter-spacing: .05em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .58)
}

.title p {
    margin: .45rem 0 0;
    color: rgba(233, 234, 236, .83);
    font-size: clamp(14px, 2.15vw, 20px)
}

.corner-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(8, 10, 14, .38);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .14)
}

.corner-badge img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: block
}

.hero-socials {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);  /* 關鍵 */
  display: flex;
  gap: 10px;
  z-index: 6;
}

.hero-socials a,
.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(12, 14, 18, .42);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, .15);
    color: var(--fg);
    text-decoration: none;
    transition: .22s
}

.hero-socials a:hover,
.socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(67, 227, 207, .65);
    box-shadow: 0 0 20px rgba(67, 227, 207, .18)
}

.hero-socials svg,
.socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor
}

section {
    padding: 2.4rem 1.1rem;
    max-width: 1180px;
    margin: auto
}

.lead {
    text-align: center;
    margin-top: -50px;
}

.lead p {
    color: var(--muted)
}

.cta,
.socials {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .82rem 1.18rem;
    border-radius: 13px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #111319;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    font-weight: 850;
    min-width: 150px
}

.btn.ghost {
    color: var(--fg);
    background: transparent
}

.btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px)
}

.cards,

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 1.2rem
}

.card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px)
}

.card p {
    color: var(--muted);
    line-height: 1.7
}

.shot {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28)
}

.shot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 9/16
}

.shot figcaption {
    font-size: .9rem;
    color: var(--muted);
    padding: .55rem .9rem
}

footer {
    text-align: center;
    color: var(--muted);
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08)
}

.page-hero {
    padding: 58px 14px 14px;
    max-width: 1180px;
    margin: auto
}

.page-body {
    max-width: 1500px;
    margin: auto;
    padding: 1rem 14px 2rem
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.store-buttons img {
  height: 52px;
  transition: transform 0.2s;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

.store-buttons img:hover {
  filter: brightness(1.1);
}

.store-badge {
  border: 2px solid transparent;
  transition: border .25s, box-shadow .25s;
}

/* 各自不同圓角 */
.appstore {
  border-radius: 10px;
}

.googleplay {
  border-radius: 8px;
}

.store-badge:hover {
  border: 2px solid rgba(67, 227, 207, .9);  /* 綠色邊框 */
}

/* 卡片變成定位基準 */
.card {
  position: relative;
  overflow: hidden;
}

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

.page-body {
  text-align: center; margin-top: -25px;
}

/* 圖片 */
.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* 文字疊在圖片上 */
.card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  color: #fff;

  /* 漸層讓字看得清楚 */
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}

/* 標題 */
.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* 描述 */
.card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card img {
  transition: .3s;
}

.card:hover img {
  transform: scale(1.05);
}

.privacy {
  max-width: 1200px;
  margin: -5px auto;   /* 置中 */
  padding: 24px;
  border-radius: 12px;
  text-align: left;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 999
}

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 14px
}

.close {
    position: fixed;
    top: 14px;
    right: 16px;
    background: #fff;
    color: #000;
    border-radius: 999px;
    padding: 6px 10px
}

[data-lang=en] .zh {
    display: none
}

[data-lang=zh] .en {
    display: none
}

@media(max-width:760px) {
    :root {
        --titleTop: 37%
    }

    .nav {
        align-items: flex-start
    }

    .menu a {
        font-size: .84rem;
        padding: .32rem .4rem
    }

    .hero-socials {
        right: 14px;
        bottom: 14px
    }

    .hero-socials a {
        width: 36px;
        height: 36px
    }

    .title {
        width: min(86vw, 520px)
    }
}