/* 系統商城 共用樣式 (首頁與商品頁) */
:root {
  --bg: #0f1420;
  --panel: #171e2e;
  --panel-2: #1e2740;
  --line: #2a3553;
  --text: #e8ecf5;
  --muted: #9aa6c2;
  --blue: #5fb4ff;
  --blue-deep: #2f7fe0;
  --red: #ff6b6b;
  --gold: #ffcf5a;
  --green: #4fd18b;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 導覽列 */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 20, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); font-size: 18px; overflow: hidden;
}
.brand .logo img { width: 30px; height: auto; image-rendering: pixelated; }
nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
nav ul a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav ul a:hover { color: var(--text); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 8px 24px rgba(47, 127, 224, .35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
nav .btn { padding: 8px 18px; font-size: 14px; }
.tag { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(95, 180, 255, .12); color: var(--blue); font-size: 14px; font-weight: 700; }

/* 區塊 */
section { padding: 76px 0; }
.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: 46px; line-height: 1.3; margin: 18px 0; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), #9fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 34px; margin: 0 0 12px; text-align: center; }
.sec-lead { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 680px; font-size: 17px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; }

.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(95, 180, 255, .5); transform: translateY(-3px); }
.card .ico { font-size: 30px; margin-bottom: 8px; }
.card h3 { margin: 4px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.card ul li { margin: 4px 0; }

/* 步驟 */
.steps-h { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.steps-h li { counter-increment: s; text-align: center; }
.steps-h li::before {
  content: counter(s); display: grid; place-items: center; margin: 0 auto 12px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); font-weight: 800; font-size: 20px;
}
.steps-h b { display: block; font-size: 18px; }
.steps-h span { color: var(--muted); }

/* 價格 / 聯絡 */
.price { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px; background: linear-gradient(160deg, #1f2c4d, #172036); border: 1px solid rgba(95, 180, 255, .4); border-radius: 22px; }
.price .amount { font-size: 44px; font-weight: 800; color: var(--gold); margin: 10px 0; }
.price ul { text-align: left; display: inline-block; color: var(--muted); }

/* 常見問題 */
details { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  nav ul { display: none; }
  .g3, .g4, .steps-h { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .g3, .g4, .steps-h { grid-template-columns: 1fr; }
}

/* RO 怪物 / NPC 圖 (assets/sprites, 從遊戲資料轉出的動畫 WebP) */
.sprite { image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.bob { animation: bob 2.6s ease-in-out infinite; }
.bob.d1 { animation-delay: -.4s; }
.bob.d2 { animation-delay: -.9s; }
.bob.d3 { animation-delay: -1.3s; }
.bob.d4 { animation-delay: -1.8s; }
.bob.d5 { animation-delay: -2.2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.parade { display: flex; gap: 22px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 36px; }
.parade img { height: 64px; }
.shot-host { position: relative; }
.perch { position: absolute; z-index: 2; top: -66px; left: 22px; height: 76px; }
.helper { display: flex; gap: 22px; align-items: flex-end; justify-content: center; }
.helper img { height: 150px; flex: none; }
@media (max-width: 560px) { .helper img { display: none; } }
