/* 進化吧！史萊姆塔防 官方網站（版型沿用《戰神之槌》網站） */
@font-face {
  font-family: 'Huninn';
  src: url('fonts/huninn-subset.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #0a1913;
  --bg-2: #10261d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef6f0;
  --muted: #a6c2b2;
  --faint: #6f8c7c;
  --gold: #ffcf4a;
  --gold-2: #f5a524;
  --sky: #8fe3b4;
  --radius: 20px;
  --max: 1120px;
  --display: 'Huninn', -apple-system, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: #1a1200; padding: 8px 14px; border-radius: 8px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 25, 19, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-size: 19px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--surface-2); text-decoration: none; }
@media (max-width: 720px) {
  .nav .opt { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .brand span { display: none; }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 14px;
  font: 600 16px/1 var(--body); white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-store { background: #fff; color: #000; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn-store svg { width: 22px; height: 22px; }
.btn-store .lines { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: .7; }
.btn-store[aria-disabled='true'] { cursor: default; }
.btn-store[aria-disabled='true']:hover { transform: none; }
.btn-ghost { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn-gold { color: #2a1700; background: linear-gradient(180deg, var(--gold), var(--gold-2)); box-shadow: 0 10px 30px -10px rgba(255, 170, 40, .6); }

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--muted); }
.site-footer .brand { font-size: 16px; }
.site-footer .brand span { display: inline; }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.site-footer .copy { margin: 0; font-size: 13px; }
.site-footer .studio {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: 14px; transition: border-color .2s, background .2s;
}
.site-footer .studio:hover { border-color: rgba(255, 201, 74, .45); background: var(--surface-2); }
.site-footer .studio-label { color: var(--faint); font-size: 12px; }
.site-footer .studio-name { font-weight: 600; letter-spacing: .02em; }
.site-footer .studio svg { width: 14px; height: 14px; color: var(--gold); }

/* ---------- 文件頁（隱私權、客服） ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 320px at 85% 0%, rgba(255, 190, 60, .16), transparent), radial-gradient(700px 300px at 0% 100%, rgba(255, 143, 192, .1), transparent), var(--bg-2);
}
.page-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.15; }
.page-hero p { margin: 14px 0 0; color: var(--muted); }
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 64px 24px 112px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 12px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--gold); text-decoration: none; }
.prose { max-width: 720px; font-size: 16.5px; }
.prose > p:first-child { font-size: 18px; color: #d6e8dd; margin-top: 0; }
.prose h2 { margin: 56px 0 14px; font-size: 24px; line-height: 1.4; scroll-margin-top: 90px; }
.prose h2 .n { color: var(--gold); margin-right: 10px; font-family: var(--display); }
.prose p, .prose li { color: #c8dccf; }
.prose strong { color: var(--text); }
.table { margin: 20px 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--faint); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; background: rgba(255, 255, 255, .03); }
.table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.table td { color: #c8dccf; }
.note { margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: rgba(255, 201, 74, .07); box-shadow: inset 3px 0 0 var(--gold); color: #ece2c2; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { display: none; }
}
@media (max-width: 600px) {
  .table table, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td:first-child { margin-bottom: 8px; font-size: 16px; white-space: normal; }
  .table td[data-label] { margin-top: 6px; }
  .table td[data-label]::before { content: attr(data-label); display: block; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
}

/* 客服 */
.support { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 64px 24px 112px; align-items: start; }
.support h2 { margin: 0 0 20px; font-size: 24px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s ease; }
.faq details[open] { background: var(--surface-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .answer { padding: 0 22px 20px; color: #c8dccf; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }
.contact {
  position: sticky; top: 96px; padding: 30px 26px; border-radius: 24px; text-align: center;
  background: radial-gradient(400px 200px at 50% 0%, rgba(255, 190, 60, .18), transparent), var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .2);
}
.contact img { width: 110px; margin: -6px auto 10px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.contact h2 { margin: 0 0 8px; }
.contact p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.contact .btn { width: 100%; justify-content: center; }
.contact .mail { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); word-break: break-all; }
.contact ul { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; text-align: left; font-size: 14px; color: var(--muted); }
.contact li { padding: 3px 0 3px 18px; position: relative; }
.contact li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) {
  .support { grid-template-columns: 1fr; padding-top: 40px; }
  .contact { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.contact .hint { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; color: var(--faint); }
.contact .hint + ul { margin-top: 6px; padding-top: 0; border-top: 0; }

/* ---------- 首頁 ---------- */
.home { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 96px 0 112px; }
.home::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 360px at 50% 0%, rgba(255, 207, 74, .16), transparent), radial-gradient(600px 300px at 50% 100%, rgba(255, 143, 192, .12), transparent), var(--bg-2);
}
.home-icon { width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 30px; box-shadow: 0 22px 50px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); }
.home h1 { margin: 0; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.1; color: #fff; }
.home .lead { margin: 20px auto 34px; max-width: 28em; color: #d6e8dd; font-size: clamp(16px, 1.9vw, 19px); }
.home .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 64px 24px 112px; }
.links a { display: block; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.links a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 207, 74, .35); }
.links b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.links span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; } .home { padding: 64px 0 80px; } }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
