/* 孤島求生 產品簡介：晴天的天空和海（和 App 登入畫面的插圖同一個風格）。 */
:root {
  --sky-1: #2f86c9;
  --sky-2: #3f95d4;
  --sky-3: #55a6de;
  --sea: #2a7cc0;
  --sea-deep: #1d5f9c;
  --sand: #f0cf7e;
  --grass: #5cb85c;
  --brand: #b45309;
  --brand-ink: #ffffff;
  --coral: #ef6f4a;
  --bg: #f4faff;
  --bg-alt: #e8f4fd;
  --card: #ffffff;
  --ink: #10233a;
  --muted: #4a6078;
  --line: #d6e7f5;
  --chip: #e2f1fc;
  --shadow: 0 2px 6px rgba(16, 35, 58, .06), 0 14px 34px rgba(16, 35, 58, .09);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1726; --bg-alt: #0f2033; --card: #12263c; --ink: #e8f2fc; --muted: #a9bfd4;
    --line: #20374f; --chip: #18324d; --brand: #f59e0b; --brand-ink: #1c1206;
    --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1726; --bg-alt: #0f2033; --card: #12263c; --ink: #e8f2fc; --muted: #a9bfd4;
  --line: #20374f; --chip: #18324d; --brand: #f59e0b; --brand-ink: #1c1206;
  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.px { image-rendering: pixelated; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--sea); }
:root[data-theme="dark"] .kicker { color: #7cc4f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: #7cc4f5; } }
.kicker img { width: 22px; height: 22px; }

/* ---- 導覽列 ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(61, 151, 216, .0); transition: background .25s, box-shadow .25s; }
.nav.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 18px; color: #fff; }
.nav.solid .logo { color: var(--ink); }
.logo img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; color: #fff; }
.nav.solid .links a { color: var(--ink); }
.links a:hover { background: rgba(255, 255, 255, .18); }
.nav.solid .links a:hover { background: var(--chip); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; font-size: 16px; }
.nav.solid .theme { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(180, 83, 9, .3); }
.btn.ghost { background: rgba(255, 255, 255, .92); color: #10233a; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn img { width: 22px; height: 22px; }
.soon { font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .25); padding: 2px 8px; border-radius: 999px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; border-radius: 10px; }

/* ---- 封面：天空、雲、海、島 ---- */
.hero { position: relative; margin-top: -64px; padding-top: 64px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-1) 24%, var(--sky-2) 24%, var(--sky-2) 48%, var(--sky-3) 48%, var(--sky-3) 70%, #79bfec 70%, #79bfec 84%, #a6d6f6 84%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; min-height: 660px; padding-top: 110px; padding-bottom: 150px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 900; letter-spacing: 3px; text-shadow: 0 4px 0 rgba(16, 35, 58, .18); }
.hero .tag { margin: 8px 0 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; color: #fff6d8; text-shadow: 0 2px 0 rgba(16, 35, 58, .15); }
.hero p.lead { margin: 18px 0 0; max-width: 520px; font-size: 18px; color: #ffffff; text-shadow: 0 1px 2px rgba(16, 35, 58, .45); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .facts span { background: rgba(16, 35, 58, .2); border: 1px solid rgba(255, 255, 255, .35); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.sun { position: absolute; z-index: 1; right: 9%; top: 96px; width: 64px; height: 64px; background: #ffd54f; box-shadow: 0 0 0 10px rgba(255, 213, 79, .25), 0 0 0 22px rgba(255, 213, 79, .12); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(255, 213, 79, .25), 0 0 0 30px rgba(255, 213, 79, .1); } }
.cloud { position: absolute; z-index: 1; width: 96px; height: 24px; background: #fff; opacity: .95; animation: drift linear infinite; }
.cloud::before { content: ""; position: absolute; left: 24px; top: -16px; width: 48px; height: 16px; background: #fff; }
.cloud::after { content: ""; position: absolute; left: 36px; top: -28px; width: 24px; height: 12px; background: #fff; }
.cloud.c1 { top: 118px; left: 30%; animation-duration: 80s; animation-delay: -30s; }
.cloud.c2 { top: 150px; left: 70%; transform: scale(.7); animation-duration: 110s; animation-delay: -75s; opacity: .85; }
.cloud.c3 { top: 96px; left: 4%; transform: scale(.9); animation-duration: 130s; animation-delay: -10s; opacity: .8; }
@keyframes drift { from { left: -140px; } to { left: 105%; } }
.sea { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 230px; }
.sea svg { display: block; width: 100%; height: 100%; }
.wave { animation: bob 3.2s ease-in-out infinite; }
.wave.w2 { animation-delay: -1.1s; } .wave.w3 { animation-delay: -2.2s; }
@keyframes bob { 50% { transform: translateX(6px); } }

.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; aspect-ratio: 700 / 1518; border: 9px solid #10233a; border-radius: 38px; overflow: hidden; background: #10233a; box-shadow: 0 30px 60px rgba(16, 35, 58, .35); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone.front { right: 40px; top: 0; z-index: 2; animation: float 6s ease-in-out infinite; }
.phone.back { right: 230px; top: 70px; transform: rotate(-7deg) scale(.86); opacity: .97; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---- 區塊 ---- */
section.band { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
.head { max-width: 760px; margin-bottom: 40px; }
.head h2 { margin-top: 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 900; }
.head p { margin: 12px 0 0; color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.pain img { width: 44px; height: 44px; }
.pain h3 { margin: 12px 0 6px; font-size: 20px; }
.pain p { margin: 0; color: var(--muted); font-size: 16px; }
.pain.answer { background: linear-gradient(160deg, #2a7cc0, #1d5f9c); color: #fff; border: 0; }
.pain.answer p { color: #dcefff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { text-align: center; }
.step .shot { width: 100%; max-width: 230px; margin: 0 auto; aspect-ratio: 700 / 1518; border: 7px solid #10233a; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: #10233a; }
.step .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin-top: 18px; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.step h3::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: inline-grid; place-items: center; font-size: 15px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.flip .media { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; margin-top: 6px; }
.feature p.desc { color: var(--muted); margin: 12px 0 0; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; }
.feature li img { width: 26px; height: 26px; flex: none; margin-top: 3px; }
.media { display: flex; justify-content: center; gap: 18px; }
.media .shot { width: 46%; max-width: 250px; aspect-ratio: 700 / 1518; border: 7px solid #10233a; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: #10233a; }
.media .shot:nth-child(2) { margin-top: 48px; }
.media .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media.wide img.wide { width: 100%; border-radius: 24px; box-shadow: var(--shadow); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { background: var(--chip); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }

.numbers { background: linear-gradient(180deg, #2a7cc0, #1d5f9c); color: #fff; }
.numbers .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.num { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; padding: 22px; }
.num img { width: 36px; height: 36px; }
.num strong { display: block; font-size: 40px; font-weight: 900; line-height: 1.15; margin-top: 8px; }
.num span { color: #dcefff; font-size: 15px; }
.numbers .kicker { color: #fde68a !important; }

.safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safe .item { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); }
.safe .item img { width: 40px; height: 40px; flex: none; }
.safe .item h3 { font-size: 18px; }
.safe .item p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.doc { display: flex; align-items: center; gap: 16px; text-decoration: none; border-radius: 22px; padding: 20px 22px; color: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.doc:hover { transform: translateY(-3px); }
.doc img { width: 42px; height: 42px; flex: none; }
.doc strong { display: block; font-size: 19px; }
.doc span { font-size: 14px; opacity: .85; }
.doc.terms { background: linear-gradient(120deg, #7c2d12, #b45309); }
.doc.privacy { background: linear-gradient(120deg, #07236b, #0f6a8c); }
.doc .go { margin-left: auto; font-size: 22px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta { position: relative; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(180deg, #69b6ea 0%, #9fd4f6 55%, #2a7cc0 55%, #1d5f9c 100%); padding: 90px 0 110px; }
.cta img.big { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.cta h2 { margin-top: 16px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; text-shadow: 0 3px 0 rgba(16, 35, 58, .18); }
.cta p { margin: 8px 0 24px; font-size: 18px; }
.cta .islanders { display: flex; justify-content: center; gap: 18px; margin-top: 34px; }
.cta .islanders img { width: 64px; height: auto; animation: hop 1.8s ease-in-out infinite; }
.cta .islanders img:nth-child(2) { animation-delay: .3s; } .cta .islanders img:nth-child(3) { animation-delay: .6s; } .cta .islanders img:nth-child(4) { animation-delay: .9s; }
@keyframes hop { 50% { transform: translateY(-8px); } }

footer { background: #0c1b2c; color: #b8cadb; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 26px; padding-bottom: 30px; }
footer .logo { color: #fff; font-size: 16px; }
footer .logo img { width: 30px; height: 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: #e2edf8; }
.grow { flex: 1; }

/* 捲動進場（沒有 JS 時直接顯示） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .sun, .wave, .phone.front, .cta .islanders img { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- 平板、手機 ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 100px; padding-bottom: 120px; }
  .phones { height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; }
  .phone.front { right: 20px; } .phone.back { right: 170px; top: 60px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .media { order: 0; }
  .numbers .grid { grid-template-columns: repeat(2, 1fr); }
  .pains { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav .wrap { gap: 10px; }
  .nav .btn.small { margin-left: auto; }
  .hero-inner { padding-top: 20px; }
  .hero .facts span { font-size: 13px; }
  .phones { height: 400px; }
  .phone { width: 180px; border-width: 7px; border-radius: 30px; }
  .phone.front { right: 4px; } .phone.back { right: 130px; top: 50px; }
  .sun { width: 40px; height: 40px; right: 22px; top: 88px; }
  .cloud.c2, .cloud.c3 { display: none; }
  .cloud.c1 { top: 92px; transform: scale(.6); }
  .hero-inner { padding-top: 96px; }
  .sea { height: 170px; }
  section.band { padding: 64px 0; }
  .steps { gap: 16px; }
  .safe, .docs { grid-template-columns: 1fr; }
  .num strong { font-size: 32px; }
  .media .shot { width: 48%; border-width: 5px; border-radius: 24px; }
}

.hero .kicker { color: #fff6d8 !important; }
.chips.who { margin-top: 18px; }
.chips.who span { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 14px; }
@media (max-width: 640px) { .desk-br { display: none; } }

/* 導覽列：服務條款、隱私權政策（顏色跟著兩個網站的主視覺） */
.legal { display: flex; gap: 8px; }
.legal-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; color: #fff; white-space: nowrap; box-shadow: 0 2px 8px rgba(16, 35, 58, .18); transition: transform .15s; }
.legal-btn:hover { transform: translateY(-1px); }
.legal-btn img { width: 18px; height: 18px; }
.legal-btn.terms { background: linear-gradient(120deg, #9a3412, #b45309); }
.legal-btn.privacy { background: linear-gradient(120deg, #07236b, #0f6a8c); }
@media (max-width: 1100px) { .links a { padding: 8px 8px; font-size: 14px; } }
@media (max-width: 980px) { .links { display: none; } .legal { margin-left: auto; } }
@media (max-width: 640px) {
  .nav .gp { display: none; }
  .logo span.name { display: none; }
  .legal { gap: 6px; }
  .legal-btn { padding: 6px 11px; font-size: 13px; gap: 4px; }
  .legal-btn img { width: 16px; height: 16px; }
}
@media (max-width: 360px) { .legal-btn img { display: none; } }
