/* 配色取自 YumJelly & FunnyLife 主視覺：深夜藍底、青色全息光、紫色光暈 */
:root {
  color-scheme: dark;
  --bg: #0c1526;
  --panel: #141c3a;
  --line: #2f3a70;
  --text: #e8f3ff;
  --dim: #a9b8d6;
  --cyan: #7feaff;
  --violet: #b896ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html[lang="en"] .zh, html[lang="zh-Hant"] .en { display: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); padding: 10px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang-toggle { min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.lang-toggle:hover { border-color: var(--cyan); }

.hero { position: relative; height: clamp(230px, 36vw, 440px); overflow: hidden; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 52%; }
.hero::after { content: ""; position: absolute; inset: 68% 0 0; background: linear-gradient(to bottom, transparent, var(--bg)); }

main.wrap { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 12px; color: var(--cyan); text-wrap: balance; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
p, ul { margin: 0 0 14px; }
.dim { color: var(--dim); }

main.home { padding-top: 0; }
.intro { position: relative; z-index: 1; margin-top: -72px; margin-bottom: 40px; text-align: center; }
.avatar { display: block; width: 128px; height: 128px; margin: 0 auto 20px; border: 1px solid var(--cyan); border-radius: 22px; box-shadow: 0 0 28px rgba(127, 234, 255, .35), 0 0 60px rgba(184, 150, 255, .25); }
.intro h1 { text-shadow: 0 0 22px rgba(127, 234, 255, .45); }
.intro p { max-width: 34em; margin-left: auto; margin-right: auto; }

.apps { max-width: 520px; margin: 0 auto; display: grid; gap: 28px; }
.app-button { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.app-button:hover, .app-button:focus-visible { border-color: var(--cyan); box-shadow: 0 0 22px rgba(127, 234, 255, .25); }
.app-button img { flex: none; width: 88px; height: 132px; object-fit: cover; object-position: 50% 70%; border-radius: 8px; }
.app-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-text strong { color: var(--text); font-size: 1.3rem; line-height: 1.3; }
.app-desc { color: var(--dim); font-size: .95rem; line-height: 1.5; }
.app-store { color: var(--cyan); font-weight: 700; font-size: .95rem; }
.app-note { margin: 10px 0 0; text-align: center; font-size: .85rem; }

footer.site { border-top: 1px solid var(--line); padding: 18px 0 28px; font-size: .9rem; color: var(--dim); text-align: center; }
@media (prefers-reduced-motion: reduce) { .app-button { transition: none; } }
