/*
Theme Name: Sumaji
Theme URI: https://sumajigames.com/
Author: Sumaji Games
Description: Sumaji Games 官方網站佈景主題（英文為主＋多語言）。白色頁首、紅色重點色、置中標題＋英文小標、卡片格與紅色頁尾帶。搭配自製外掛 sumaji-i18n、sumaji-games、sumaji-seo、sumaji-support。
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sumaji
*/

:root {
	--red: #e60012;
	--red-dark: #c4000f;
	--text: #3c3c3c;
	--sub: #707070;
	--line: #e6e6e6;
	--bg-gray: #f5f5f5;
	--radius: 10px;
	--shadow: 0 2px 10px rgba(0, 0, 0, .08);
	--wrap: 1120px;
	--header-h: 64px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.75 var(--font); letter-spacing: .02em; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { line-height: 1.4; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #0a6cff; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 880px; }
.center { text-align: center; }

/* ---------- 頁首 ---------- */
.gheader { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(0, 0, 0, .04); }
.admin-bar .gheader { top: 32px; }
.gheader__inner { display: flex; align-items: center; height: var(--header-h); max-width: 1400px; margin: 0 auto; }
.gheader__logo { margin: 0; padding: 0 20px; height: 100%; display: flex; align-items: center; flex: 0 0 auto; }
.gheader__logo img { width: 132px; height: auto; display: block; }
.gnav { flex: 1; display: flex; justify-content: center; height: 100%; }
.gnav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; height: 100%; }
.gnav__list li { height: 100%; }
.gnav__list a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 18px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--text); }
.gnav__list a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.gnav__list a:hover::after, .gnav__list .current-menu-item > a::after, .gnav__list .current-menu-parent > a::after, .gnav__list a[aria-current]::after { transform: scaleX(1); }
.gnav__list a:hover { color: var(--red); }
.gheader__search, .gheader__lang, .gheader__menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 72px; height: 100%; border: 0; border-left: 1px solid var(--line); background: #fff; color: #888; font-size: 11px; cursor: pointer; }
.gheader__search:hover, .gheader__lang:hover, .gheader__menu:hover { color: var(--red); }
.gheader__menu { display: none; }
.burger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.gheader__menu[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.gheader__menu[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.gheader__menu[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.gsearch { border-top: 1px solid var(--line); background: var(--bg-gray); padding: 18px 24px; }
.searchform { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.searchform input[type="search"] { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 2px solid #d8d8d8; border-radius: 999px; font: inherit; background: #fff; }
.searchform input[type="search"]:focus { border-color: var(--red); outline: none; }

/* ---------- 按鈕、箭頭、標題 ---------- */
.arrow { display: inline-flex; flex: 0 0 auto; }
.arrow svg circle { fill: var(--red); }
.arrow--white svg circle { fill: #fff; }
.arrow--white svg path { stroke: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; min-height: 50px; padding: 10px 32px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--red-dark); }
.btn:active { transform: scale(.98); }
.btn--sm { min-width: 0; min-height: 46px; padding: 0 22px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--ghost { background: rgba(255, 255, 255, .92); color: var(--text); min-width: 160px; }
.btn--ghost:hover { background: #fff; color: var(--red); }

.sec { padding: 64px 0; }
.sec--line { border-top: 1px solid var(--line); }
.sec--page { padding-top: 28px; }
.sec-title { display: flex; flex-direction: column; align-items: center; margin: 0 0 36px; text-align: center; }
.sec-title__zh { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: .06em; color: #333; }
.sec-title__bar { width: 26px; height: 3px; margin: 10px 0 6px; border-radius: 2px; background: var(--red); }
.sec-title__en { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--sub); }
.sec .center { margin: 40px 0 0; }

/* ---------- 主視覺輪播 ---------- */
.hero { position: relative; background: #111; overflow: hidden; }
.hero__track { position: relative; aspect-ratio: 16 / 7; max-height: 620px; min-height: 360px; margin: 0 auto; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%); }
.hero__text { position: absolute; left: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); top: 50%; transform: translateY(-50%); max-width: min(380px, 28vw); color: #fff; }
.hero__label { display: inline-block; padding: 3px 14px; border-radius: 4px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero__title { margin: 14px 0 8px; font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero__catch { margin: 0 0 26px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.8; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.hero__nav:hover { color: var(--red); }
.hero__nav--prev { left: 16px; }
.hero__nav--next { right: 16px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero__dots button[aria-selected="true"] { background: #fff; }

/* 紅色橫帶（任天堂官網 App 帶的位置） */
.strip { background: var(--red); color: #fff; }
.strip__inner { display: flex; align-items: center; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; }
.strip__inner img { width: 96px; flex: 0 0 auto; }
.strip__inner p { flex: 1; margin: 0; font-weight: 700; font-size: 17px; }
.strip__btn { flex: 0 0 auto; padding: 10px 26px; border: 2px solid #fff; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.strip__btn:hover { background: #fff; color: var(--red); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 28px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-gray); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card__link:hover .card__img img { transform: scale(1.04); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--red); }
.noimg img { width: 40% !important; height: auto !important; object-fit: contain !important; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 2px 0; }
.card__cat { align-self: flex-start; margin-bottom: 4px; padding: 0 8px; border: 1px solid var(--red); border-radius: 3px; color: var(--red); font-size: 11px; font-weight: 700; }
.card__title { flex: 1; margin: 0 0 12px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.card__link:hover .card__title { color: var(--red); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); font-weight: 700; }
.card--game .card__img { border-radius: var(--radius) var(--radius) 0 0; }
.card__label { padding: 3px 10px; border-radius: 0 0 var(--radius) var(--radius); background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; letter-spacing: .06em; }
.card--game .card__title { font-weight: 700; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.badge { padding: 0 5px; border: 1.5px solid var(--red); border-radius: 3px; color: var(--red); font-size: 11px; line-height: 1.6; font-weight: 700; background: #fff; }
.badge--age { border-color: #2a9d3a; color: #2a9d3a; }

/* ---------- 通知 ---------- */
.notice { border-top: 1px solid var(--line); background: #fff; }
.notice__inner { display: flex; gap: 40px; padding-top: 36px; padding-bottom: 36px; }
.notice__label { flex: 0 0 120px; margin: 0; padding-right: 24px; border-right: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--sub); display: flex; align-items: center; justify-content: center; }
.notice__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notice__list a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; }
.notice__list a:hover { color: var(--red); text-decoration: underline; }

/* ---------- 麵包屑、分頁、頁籤 ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 18px 0 0; font-size: 12px; color: var(--sub); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #bbb; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: -12px 0 32px; padding: 0; }
.tabs a { display: block; padding: 6px 18px; border: 1.5px solid #d8d8d8; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.tabs a:hover, .tabs a[aria-current] { border-color: var(--red); background: var(--red); color: #fff; }
.pagination { margin: 48px 0 0; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--red); color: #fff; }
.pagination a.page-numbers:hover { background: var(--bg-gray); color: var(--red); }
.search-again { margin: -8px auto 36px; max-width: 640px; }
.empty { text-align: center; color: var(--sub); padding: 40px 0; }

/* ---------- 內文 ---------- */
.entry { padding: 28px 0 72px; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--sub); }
.tag { padding: 0 10px; border: 1px solid var(--red); border-radius: 3px; color: var(--red); text-decoration: none; font-size: 12px; }
.entry__title { margin: 10px 0 24px; font-size: clamp(22px, 3vw, 30px); }
.entry__thumb { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.prose { font-size: 16px; line-height: 1.9; }
.prose h2 { margin: 2.2em 0 .8em; padding: 0 0 8px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--red); font-size: 22px; }
.prose h3 { margin: 1.8em 0 .6em; font-size: 18px; }
.prose a { color: var(--red); }
.prose img { border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-gray); white-space: nowrap; }
.prose ul, .prose ol { padding-left: 1.4em; }
.entry__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.entry__nav div:last-child { text-align: right; }
.entry__nav a { text-decoration: none; font-size: 14px; }
.entry__nav a:hover { color: var(--red); }
.entry__nav small { display: block; color: var(--sub); font-weight: 700; }
.entry--page .sec-title { margin-top: 28px; }

/* ---------- 遊戲頁 ---------- */
.ghero { position: relative; min-height: 420px; display: flex; align-items: center; background: #111; color: #fff; overflow: hidden; }
.ghero__bg, .ghero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ghero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .1)); }
.ghero__text { position: relative; z-index: 1; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.ghero__text .hero__catch { max-width: min(400px, 30vw); }
@media (max-width: 860px) { .ghero__text .hero__catch { max-width: none; } }
.ghero__title { margin: 14px 0 0; font-size: clamp(30px, 5vw, 56px); font-weight: 900; }
.ghero__en { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .14em; opacity: .85; }
.game { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 40px 0 64px; }
.game__main .sec-title { align-items: flex-start; text-align: left; margin: 0 0 20px; }
.game__main .sec-title + .prose + .sec-title, .game__main .prose + .sec-title { margin-top: 48px; }
.spec { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--radius); background: var(--bg-gray); }
.spec__title { margin: 0 0 12px; font-size: 17px; padding-left: 10px; border-left: 4px solid var(--red); }
.spec dl { display: grid; grid-template-columns: minmax(70px, max-content) 1fr; column-gap: 14px; margin: 0 0 20px; font-size: 14px; }
.spec dl div { display: contents; }
.spec dt, .spec dd { padding: 10px 0; border-bottom: 1px solid #e2e2e2; }
.spec dt { color: var(--sub); font-weight: 700; max-width: 140px; }
.spec dd { margin: 0; }
.spec .btn { min-width: 0; width: 100%; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots__item { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--bg-gray); }
.shots__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shots__item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .85); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 12px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- 客服：常見問題、表單 ---------- */
.sf-group { margin: 0 0 32px; }
.sf-group__title { font-size: 18px; margin: 0 0 12px; }
.sf-item { border-bottom: 1px solid var(--line); }
.sf-item summary { display: flex; align-items: center; gap: 12px; padding: 16px 36px 16px 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.sf-item summary::-webkit-details-marker { display: none; }
.sf-item summary::after { content: "+"; position: absolute; right: 8px; color: var(--red); font-size: 24px; font-weight: 400; }
.sf-item[open] summary::after { content: "−"; }
.sf-q { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; }
.sf-a { padding: 0 0 16px 40px; }
.sf-a p { margin: 0 0 .6em; }
.sc-form { display: grid; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--bg-gray); }
.sc-row { display: grid; gap: 6px; }
.sc-row label { font-weight: 700; font-size: 14px; }
.sc-row em { margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; }
.sc-row input, .sc-row select, .sc-row textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #d4d4d4; border-radius: 8px; background: #fff; font: inherit; }
.sc-row input:focus, .sc-row select:focus, .sc-row textarea:focus { border-color: var(--red); outline: none; }
.sc-hp { position: absolute; left: -9999px; }
.sc-note { margin: 0; font-size: 13px; color: var(--sub); }
.sc-submit { margin: 0; text-align: center; }
.sc-notice { padding: 14px 18px; border-radius: 8px; font-weight: 700; }
.sc-notice--ok { background: #e9f7ec; color: #1d6b2c; }
.sc-notice--err { background: #fdecee; color: var(--red-dark); }

/* ---------- 頁尾 ---------- */
.gfooter { margin-top: 0; }
.gfooter__band { background: var(--red); }
.gfooter__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.gfooter__band .gfooter__inner { height: 96px; }
.gfooter__logo img { width: 120px; }
.pagetop { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: rgba(0, 0, 0, .14); }
.pagetop:hover { background: rgba(0, 0, 0, .28); }
.gfooter__links { background: var(--bg-gray); }
.gfooter__links .gfooter__inner { flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.fnav { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.fnav a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.fnav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.fnav a:hover { color: var(--red); }
.copy { margin: 0; font-size: 12px; color: #999; }

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.game { grid-template-columns: 1fr; }
	.spec { position: static; }
}
@media (max-width: 860px) {
	:root { --header-h: 56px; }
	.gheader__logo img { width: 112px; }
	.gheader__inner { justify-content: space-between; }
	.gheader__search, .gheader__lang, .gheader__menu { width: 60px; }
	.gheader__search { margin-left: auto; }
	.gheader__menu { display: flex; }
	.gnav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; display: block; height: auto; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; overflow-y: auto; }
	.admin-bar .gnav { top: calc(var(--header-h) + 46px); }
	.gnav.is-open { transform: none; visibility: visible; }
	.gnav__list { flex-direction: column; gap: 0; height: auto; }
	.gnav__list li { height: auto; border-bottom: 1px solid var(--line); }
	.gnav__list a { height: auto; padding: 18px 24px; font-size: 17px; }
	.gnav__list a::after { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; transform: scaleY(0); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	.hero__track { aspect-ratio: auto; height: 72vh; max-height: 560px; min-height: 420px; }
	.hero__bg::after { background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, .05) 100%); }
	.hero__text { top: auto; bottom: 52px; left: 20px; right: 20px; transform: none; max-width: none; }
	.hero__nav { display: none; }
	.strip__inner { flex-wrap: wrap; gap: 12px 16px; }
	.strip__inner p { flex: 1 1 calc(100% - 120px); font-size: 15px; }
	.strip__btn { width: 100%; text-align: center; }
	.sec { padding: 48px 0; }
	.sec-title__zh { font-size: 24px; }
	.notice__inner { flex-direction: column; gap: 14px; }
	.notice__label { flex: none; justify-content: flex-start; border-right: 0; }
	.shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.btn { min-width: 0; width: 100%; max-width: 360px; }
	.hero__btns .btn { width: auto; flex: 1 1 140px; }
}
@media (max-width: 782px) { .admin-bar .gheader { top: 46px; } }
@media (max-width: 480px) {
	.wrap, .strip__inner, .gfooter__inner { padding-left: 16px; padding-right: 16px; }
	.grid--4 { gap: 22px 12px; }
	.card__title { font-size: 14px; }
	.card__foot { flex-wrap: wrap; }
	.gfooter__band .gfooter__inner { height: 80px; }
	.sc-form { padding: 20px 16px; }
	.entry__nav { grid-template-columns: 1fr; }
	.entry__nav div:last-child { text-align: left; }
}

/* ---------- 多語言（2026-11-21） ---------- */
:lang(ja) body, body:lang(ja) { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, "Yu Gothic", system-ui, sans-serif; }
:lang(zh-Hans) body, body:lang(zh-Hans) { --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif; }
:lang(zh-Hant) body, body:lang(zh-Hant) { --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif; }
.gheader__lang span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glang { border-top: 1px solid var(--line); background: var(--bg-gray); padding: 18px 24px; }
.glang__title { max-width: 900px; margin: 0 auto 10px; font-size: 13px; font-weight: 700; color: var(--sub); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.langs a { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 2px solid #d8d8d8; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.langs a:hover { border-color: var(--red); color: var(--red); }
.langs a[aria-current] { border-color: var(--red); background: var(--red); color: #fff; }
.gnav__langs { display: none; }
.flangs { display: flex; align-items: center; gap: 10px; flex-basis: 100%; color: var(--sub); }
.langs--foot { margin: 0; max-width: none; gap: 4px 14px; }
.langs--foot a { min-height: 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 400; color: var(--text); }
.langs--foot a:hover { color: var(--red); }
.langs--foot a[aria-current] { background: none; color: var(--red); font-weight: 700; }
.soon { margin: 0 0 32px; padding: 40px 20px; border-radius: var(--radius); background: var(--bg-gray); text-align: center; color: var(--sub); font-weight: 700; }
.sec--about .center-prose { text-align: left; } /* 2026-11-23 站長：內文靠左，不置中 */
.sec--about .center-prose p { margin-left: auto; margin-right: auto; max-width: 680px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { width: 32%; background: var(--bg-gray); font-weight: 700; }
@media (max-width: 860px) {
	.gheader__lang { display: none; }
	.gnav__langs { display: block; padding: 20px 24px 32px; }
	.gnav__langs-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--sub); }
}

/* 社群連結（2026-11-23）：頁尾一列＋關於我們／客戶服務頁區塊。用文字膠囊，不放各平台商標圖示 */
.fsocial { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex-basis: 100%; }
.fsocial__label { font-size: 13px; font-weight: 700; color: var(--sub); }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--red); color: var(--red); }
.social__discord { border-color: #5865f2 !important; color: #4752c4 !important; }
.community { margin: 48px 0 0; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-gray); text-align: center; }
.community__title { margin: 0 0 8px; font-size: 22px; }
.community__lead { margin: 0 0 18px; }
.community__cta { margin: 0 0 18px; }
.community .social { justify-content: center; }
.btn--discord { background: #5865f2; }
.btn--discord:hover { background: #4752c4; }
.btn--discord .arrow svg path { stroke: #5865f2; }

/* YouTube 內嵌（開發日誌） */
.video-embed { margin: 1.6em 0; }
.video-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* 直式自架影片（開發日誌 #3 起） */
.video-vertical { max-width: 360px; margin: 1.6em auto; }
.video-vertical .wp-video, .video-vertical video { width: 100% !important; height: auto !important; border-radius: var(--radius); }
.video-embed--vertical { max-width: 360px; margin-left: auto; margin-right: auto; }
.video-embed--vertical iframe { aspect-ratio: 9 / 16; }
