/* 魚霸不能 官方網站：客服、隱私權等子頁（沿用 home.css 的頁首、按鈕、金色大標） */
.sub { background: var(--abyss); }
.sub .site-footer { background: var(--abyss); }

/* ---------- 頁首主視覺 ---------- */
.sub-hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 540px; padding: 132px 0 96px;
  display: flex; align-items: center;
}
.sub-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: var(--bg) center 60% / cover no-repeat;
}
.sub-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 70% at 30% 55%, rgba(2, 40, 90, .38), transparent 70%),
    linear-gradient(180deg, rgba(1, 25, 60, .55) 0%, rgba(1, 25, 60, 0) 30%, rgba(2, 18, 38, .2) 65%, var(--abyss) 100%);
}
.sub-hero .bubbles { z-index: -1; }
.sub-hero-in { position: relative; width: 100%; }
.sub-hero .crumbs { margin: 0 0 14px; color: rgba(255, 255, 255, .8); font-size: 15px; text-shadow: 0 1px 6px rgba(0, 20, 50, .8); }
.sub-hero .crumbs a { color: #fff; }
.sub-hero .gold-title { font-size: clamp(56px, 7vw, 104px); }
.sub-lead { margin: 18px 0 30px; max-width: 30em; font-size: 20px; line-height: 1.6; color: #fff; text-shadow: 0 2px 10px rgba(0, 20, 50, .9), 0 0 2px rgba(0, 20, 50, .8); }

.sub-deco { position: absolute; z-index: -2; height: auto; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(0, 30, 70, .45)); animation: bob var(--t, 6s) ease-in-out var(--dl, 0s) infinite; }
.d-octo { width: min(24vw, 330px); right: 7%; bottom: 8%; --t: 6.5s; }
.d-puff { width: min(13vw, 190px); right: 29%; top: 22%; --t: 5s; --dl: -2s; }
.d-horse { width: min(7vw, 104px); right: 2.5%; top: 24%; --t: 7s; --dl: -1s; }
.d-angel { width: min(15vw, 220px); right: 10%; bottom: 16%; --t: 7s; }

/* 搜尋框 */
.search {
  display: flex; align-items: center; gap: 12px;
  width: min(100%, 580px); height: 66px; padding: 0 22px;
  border-radius: 999px; background: #fff; color: #0b4c9a;
  box-shadow: 0 6px 0 #0b4c9a, 0 18px 40px rgba(0, 20, 50, .45), inset 0 -3px 0 rgba(11, 76, 154, .12);
  transition: box-shadow .15s ease;
}
.search:focus-within { box-shadow: 0 6px 0 #0b4c9a, 0 0 0 4px #ffd94d, 0 18px 40px rgba(0, 20, 50, .45); }
.search svg { flex: 0 0 26px; height: 26px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 19px/1 var(--display); color: #062a55; }
.search input::placeholder { color: #7d97b4; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- 常見問題 ---------- */
.help { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 56px; align-items: start; padding-top: 8px; padding-bottom: 128px; }

.cats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.cats button {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 400 17px/1 var(--display); letter-spacing: .04em; color: #dcefff;
  background: rgba(160, 220, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(160, 220, 255, .18);
  transition: background .15s ease, transform .12s ease;
}
.cats button:has(img) { padding-left: 10px; }
.cats button:hover { background: rgba(160, 220, 255, .16); }
.cats button:active { transform: translateY(2px); }
.cats button img { width: 32px; height: 32px; object-fit: contain; }
.cats button.on { color: #3a2000; background: linear-gradient(180deg, #ffe680, #ffb21f); box-shadow: 0 3px 0 #b06000, 0 8px 20px rgba(255, 170, 30, .3); }

.grp { margin-top: 44px; }
.grp[hidden] { display: none; }
.grp-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 400 28px/1.2 var(--display); letter-spacing: .04em; color: #fff; }
.grp-title img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }

.qa {
  margin-bottom: 14px; border-radius: 20px;
  background: linear-gradient(180deg, #0c3a6b, #08294f);
  box-shadow: inset 0 0 0 1.5px rgba(111, 227, 255, .2), 0 6px 0 rgba(0, 8, 24, .45);
  transition: box-shadow .2s ease;
  scroll-margin-top: 96px;
}
.qa[hidden] { display: none; }
.qa summary {
  position: relative; display: block; padding: 22px 76px 22px 26px;
  list-style: none; cursor: pointer; border-radius: 20px;
  font: 400 20px/1.45 var(--display); letter-spacing: .03em; color: #fff;
  transition: background .15s ease, color .15s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: rgba(160, 220, 255, .06); }
.qa summary:focus-visible { outline: 3px solid #ffd94d; outline-offset: 2px; }
/* 右側藍色圓鈕（跟遊戲裡的按鈕同一套顏色） */
.qa summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  background: linear-gradient(180deg, #4fc3ff, #1a7fe0); box-shadow: 0 3px 0 #0b4c9a, inset 0 2px 0 rgba(255, 255, 255, .35);
}
.qa summary::before {
  content: ''; position: absolute; z-index: 1; right: 35px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
}
.qa[open] { box-shadow: inset 0 0 0 2px rgba(255, 217, 77, .6), 0 6px 0 rgba(0, 8, 24, .45), 0 16px 40px rgba(0, 10, 30, .35); }
.qa[open] summary { color: #ffe680; }
.qa[open] summary::after { background: linear-gradient(180deg, #ffe680, #ffb21f); box-shadow: 0 3px 0 #b06000, inset 0 2px 0 rgba(255, 255, 255, .5); }
.qa[open] summary::before { margin-top: -3px; border-color: #5a3100; transform: rotate(225deg); }
.ans { padding: 0 26px 24px; font-size: 16.5px; line-height: 1.85; color: #cfe5f7; }
.qa[open] .ans { animation: drop .25s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.ans p { margin: 0 0 12px; }
.ans p:last-child { margin: 0; }
.ans strong { color: #fff; }
.ans a { color: #6fe3ff; text-decoration: underline; text-underline-offset: 3px; }
.no-hit { margin: 40px 0 0; padding: 28px; border-radius: 20px; text-align: center; font: 400 20px/1.5 var(--display); color: #dcefff; background: rgba(160, 220, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(160, 220, 255, .14); }

/* ---------- 寫信給客服 ---------- */
.mailbox {
  position: sticky; top: 168px; margin-top: 136px;
  border: 36px solid transparent;
  border-image: url(img/ui_panel.webp) 96 fill / 36px stretch;
  padding: 4px 6px 6px; text-align: center; color: #cfe5f7;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5));
}
.mailbox-art { width: 84px; margin: -96px auto 8px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)); animation: bob 5.5s ease-in-out infinite; }
.mailbox-title { margin: 0 0 8px; font: 400 30px/1.3 var(--display); letter-spacing: .06em; color: #ffe680; text-shadow: 0 3px 0 #031a38; }
.mailbox > p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.7; text-wrap: balance; }
.gbtn-m { width: 100%; height: 64px; padding: 0 8px; border-width: 18px; border-image-width: 18px; font-size: 22px; letter-spacing: .06em; }
.mailbox .mail { display: block; margin-top: 12px; font-size: 15px; color: #8fdcff; word-break: break-all; }
.need { margin-top: 22px; padding-top: 18px; border-top: 2px dashed rgba(160, 220, 255, .2); text-align: left; }
.need-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 400 17px/1.3 var(--display); color: #fff; }
.need-title img { width: 34px; height: 34px; }
.need ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.need li { position: relative; padding: 4px 0 4px 20px; }
.need li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: #ffd94d; }
.need a { color: #8fdcff; }

/* ---------- 隱私權政策等文件頁 ---------- */
.sub-hero.sm { min-height: 420px; padding-bottom: 72px; }
.sub-hero.sm .sub-lead { margin-bottom: 0; font-size: 17px; }
.sub .doc { padding-top: 24px; }
.sub .prose h2 { font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; }
.sub .table, .sub .note { box-shadow: inset 0 0 0 1.5px rgba(111, 227, 255, .18); }
.sub .table { background: linear-gradient(180deg, #0a325e, #082849); }

@media (max-width: 1100px) {
  .help { grid-template-columns: minmax(0, 1fr) 320px; gap: 0 40px; }
  .d-puff { display: none; }
}
@media (max-width: 900px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mailbox { position: static; margin: 104px auto 0; width: min(100%, 460px); }
}
@media (max-width: 720px) {
  .sub-hero { min-height: 0; padding: 108px 0 56px; }
  .sub-hero .gold-title { font-size: 58px; }
  .sub-lead { font-size: 17px; margin: 12px 0 24px; }
  .d-octo { width: 132px; right: 3%; bottom: auto; top: 102px; }
  .d-horse, .d-angel { display: none; }
  .search { height: 58px; padding: 0 18px; }
  .search input { font-size: 17px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px -12px; padding: 4px 24px 16px; scrollbar-width: none; }
  .cats button.on { box-shadow: 0 3px 0 #b06000; }
  .cats::-webkit-scrollbar { display: none; }
  .cats button { flex: 0 0 auto; height: 44px; font-size: 16px; }
  .grp { margin-top: 32px; }
  .grp-title { font-size: 24px; }
  .grp-title img { width: 40px; height: 40px; }
  .qa summary { padding: 18px 64px 18px 20px; font-size: 18px; }
  .qa summary::after { right: 16px; width: 32px; height: 32px; margin-top: -16px; }
  .qa summary::before { right: 27px; width: 9px; height: 9px; margin-top: -7px; }
  .qa[open] summary::before { margin-top: -2px; }
  .ans { padding: 0 20px 20px; font-size: 16px; }
  .help { padding-bottom: 88px; }
  .home.sub .site-footer { padding-bottom: 52px; }
  .sub-hero.sm { min-height: 0; }
  .sub-hero.sm .sub-lead { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sub-deco, .mailbox-art, .qa[open] .ans { animation: none !important; }
}
