/* SHOUJO STRIKES 官网 · 清爽版式（11/26 定，见 项目总纲/官网/清爽版式要点_20261126.md；
   11/26 排版修正单 20261126_Claude_官网排版修正_派Kimi.md）
   全站浅灰底 #E4E8EC，顶栏同色，不做色带交替（输入框与新闻卡文字区保留白 #FFFFFF）；栏宽 1200 居中；区块标题 40px 粗黑 + 右侧 2px 细横线；
   卡片无圆角、无阴影、无底色；标题正文全无衬线（源雲明體只留标语一句）；
   主按钮黄 #FCD90C 配墨字，全站唯一实心按钮；绿 #83B22B 只给成功状态，
   红 #FF4B33 只给表单报错警示，浅蓝 #D4EAF0 只给选中态 / 输入框聚焦小面积；
   不加颗粒 / 渐变 / 底纹 / 光晕 / 阴影。
   排版基线：正文 17px / 行高 1.85 / 墨 80%；卡片标题 20px；区块间距 120（手机 72），
   区块标题到内容 40，内容块之间 24；段落最大宽 36em + text-wrap: pretty 去孤字；
   说明小字不小于 14px。 */

@font-face {
  font-family: "PP GenWan TW";
  src: url("../fonts/ppgenwan-subset.woff?v=2a66e2cb") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #E4E8EC;          /* 全站底色：浅灰（顶栏同色，不做色带交替） */
  --surface: #FFFFFF;     /* 输入框、新闻卡文字区、成功提示框保留白底 */
  --ink: #1E1E20;         /* 标题 / 按钮 / 强调：墨 */
  --ink-body: #1e1e20cc;  /* 正文：墨 80% */
  --ink-dim: #1e1e20b3;   /* 次要字：墨 70% */
  --ink-faint: #1e1e2099; /* 说明 / 导航：墨 60% */
  --line: #1e1e20b3;      /* 细线：墨 70% */
  --line-strong: #1e1e20e6; /* 亮线：墨 90% */
  --fill: #1e1e200f;      /* 悬停填充：墨 6% */
  --sel: #D4EAF0;         /* 浅蓝：选中态 / 输入框聚焦小面积 */
  --yellow: #FCD90C;      /* 主按钮（全站唯一实心按钮） */
  --yellow-d: #E3C509;    /* 主按钮悬停 */
  --green: #83B22B;       /* 成功状态（验证成功 / 已寄出 / 强度「强」） */
  --green-d: #6f9a22;     /* 成功状态文字（白底上对比度够） */
  --alert: #FF4B33;       /* 表单报错、警示，别处不用 */
  --gray: #A7ADAF;        /* 只给线和不可点状态用 */
  --red: #D84C3C;         /* 品牌红，只出现在标志（S） */
  --brand-ink: #1C2028;   /* 标志字深灰 */
  --head-font: system-ui, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --body-font: system-ui, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --mono-font: Consolas, Menlo, "Courier New", monospace;
  --topbar-h: 72px;
  /* 浅底用深版等级色（对比度≥4.5），载具分区打开时才用 */
  --rank-r: #276429; --rank-b: #21509e; --rank-a: #5a3d9e; --rank-s: #684b04; --rank-ur: #9e2c20; --rank-sr: #7a4a08;
  /* 图上（深插画 / 视频首屏 / 大图弹层）用的白字体系 */
  --img-line: #ffffffb3; --img-line-strong: #ffffffe6; --img-fill: #ffffff14;
  --hero-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(0, 0, 0, .35);
  /* 新闻封面与遊戲介紹插画斜切角：手机 20px，桌面 36px */
  --chamfer: 20px;
}
@media (min-width: 768px) {
  :root { --chamfer: 36px; }
}
html:lang(ja) {
  --head-font: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --body-font: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
}
html:lang(ko) {
  --head-font: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --body-font: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--topbar-h); /* 顶栏 fixed，正文整体让位 */
}
body.home-page { padding-top: 0; } /* 首页首屏全宽 100vh 顶格，顶栏初始透明覆盖其上 */
h1, h2, h3, h4, h5, h6 { color: var(--ink); }

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

html { scrollbar-color: var(--gray) var(--bg); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--bg); border: 2px solid var(--line-strong); padding: 10px 18px;
}
.skip:focus { left: 12px; top: 12px; }

/* 栏宽 1200，居中，两侧留白；所有区块左缘对齐栏左缘 */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 字标（标志未到位时的文字回退；到位后构建换图片） ---------- */
.wm {
  display: inline-flex; align-items: center;
  font-family: var(--mono-font); font-weight: 700; font-style: italic;
  letter-spacing: .05em; line-height: 1; white-space: nowrap;
}
.wm-s {
  display: inline-block; width: .74em; height: .74em; flex: none;
  background: var(--red); transform: skewX(-10deg); margin-right: .22em;
}
.brand .wm { font-size: 21px; }
.hero-wm { font-size: clamp(30px, 5vw, 52px); }
.brand img { height: 34px; width: auto; }
.brand-logo-white { display: none; }
.hero-wm-img {
  width: min(520px, 100%); height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(0, 0, 0, .35));
}

/* ---------- 顶栏：首页首屏上方透明白字；滚过首屏后（或子页）变浅灰底 #E4E8EC + 细线 + 深色字，0.2s 过渡 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease;
}
.topbar-in {
  max-width: 1200px; margin: 0 auto; height: var(--topbar-h);
  padding: 0 24px; display: flex; align-items: center; gap: 28px;
}
.brand { flex: none; display: inline-flex; align-items: center; min-height: 48px; }
.mainnav { display: none; gap: 4px; margin-inline: auto; }
.mainnav a {
  padding: 10px 14px; font-size: 17px; color: var(--ink-faint);
  transition: color .2s ease, text-shadow .2s ease;
}
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.topbar-side { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.mainnav + .topbar-side { margin-left: 0; }
.toplink { display: none; font-size: 15px; color: var(--ink-dim); padding: 10px 2px; transition: color .2s ease, text-shadow .2s ease; }
.toplink:hover { color: var(--ink); }

/* 语言小下拉：显示当前语言「繁中 ▾」，点开是语言列表（11/26 排版单第 6 条） */
.langdd { display: none; position: relative; }
.langdd summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--ink-dim); padding: 10px 2px;
  transition: color .2s ease, text-shadow .2s ease;
}
.langdd summary::-webkit-details-marker { display: none; }
.langdd summary:hover { color: var(--ink); }
.langdd-car { font-size: 12px; }
.langdd-list {
  position: absolute; right: 0; top: calc(100% + 2px); z-index: 120;
  min-width: 132px; padding: 6px;
  background: var(--bg); border: 2px solid var(--line);
  display: flex; flex-direction: column;
}
.langdd-list button {
  text-align: left; padding: 8px 12px; font-size: 15px; color: var(--ink-dim);
  transition: color .15s ease, background-color .15s ease;
}
.langdd-list button:hover { color: var(--ink); background: var(--fill); }
.langdd-list button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
/* 手机菜单里的语言行：小号文字，当前项加粗 */
.langsw-m { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.langsw-m button { font-size: 15px; color: var(--ink-dim); padding: 6px 0; }
.langsw-m button:hover { color: var(--ink); }
.langsw-m button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }

/* 按钮：线框（2px 墨 90% 外框 + 1px 内描线，同游戏 UI，全部直角） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 2px solid var(--line-strong); outline: 1px solid var(--line); outline-offset: -6px;
  color: var(--ink); background: none;
  font-size: 17px; letter-spacing: .04em; text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--fill); }
/* 全站唯一实心按钮：黄底墨字（「建立帳號」，下载开关打开时是「下載遊戲」） */
.btn-primary {
  background: var(--yellow); border-color: var(--yellow); outline: none; color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--yellow-d); border-color: var(--yellow-d); }
.btn-primary[disabled] { background: var(--gray); border-color: var(--gray); color: #fff; cursor: default; }
/* 图上（收尾图带，开关打开时）的线框按钮：白线白字 */
.btn-onimg { border-color: var(--img-line-strong); outline-color: var(--img-line); color: #fff; }
.btn-onimg:hover { background: var(--img-fill); }
.btn-cta { display: none; min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: 15px; }

.menubtn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 10px; border: 2px solid var(--line);
  transition: border-color .2s ease;
}
.menubtn span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.menubtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menubtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menubtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 首页首屏上方透明顶栏态（手机展开菜单时切回实底便于阅读） */
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) {
  background: transparent;
  border-bottom-color: transparent;
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .brand-logo-dark { display: none; }
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .brand-logo-white {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(0, 0, 0, .35));
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .wm {
  color: #fff; text-shadow: var(--hero-shadow);
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .mainnav a {
  color: rgba(255, 255, 255, .85); text-shadow: var(--hero-shadow);
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .mainnav a:hover,
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .mainnav a[aria-current="page"] {
  color: #fff;
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .toplink,
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .langdd summary {
  color: rgba(255, 255, 255, .9); text-shadow: var(--hero-shadow);
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .toplink:hover,
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .langdd summary:hover {
  color: #fff;
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .btn-store {
  border-color: var(--img-line-strong); outline-color: var(--img-line); color: #fff;
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .btn-store:hover {
  background: var(--img-fill);
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .menubtn {
  border-color: rgba(255, 255, 255, .85);
}
body.home-page .topbar:not(.scrolled):not(:has(.menubtn[aria-expanded="true"])) .menubtn span {
  background: #fff;
}

.mobilemenu {
  position: fixed; top: var(--topbar-h); right: 0; left: 0; z-index: 99;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  padding: 12px 24px 24px;
}
.mobilemenu a {
  display: block; padding: 14px 4px; font-size: 19px;
  border-bottom: 2px solid var(--line); color: var(--ink);
}

@media (min-width: 768px) {
  .btn-cta { display: inline-flex; }
  .toplink { display: inline-flex; }
}
@media (min-width: 1280px) {
  .mainnav { display: flex; }
  .langdd { display: block; }
  .menubtn, .mobilemenu { display: none; }
}

/* ---------- 首屏：全宽 100vh（最小 640px）背景视频，静音循环；空时用虎王 poster 慢推镜占位
   （scale 1.0 → 1.06 / 24s 往复，手机与 prefers-reduced-motion 静止）。
   左侧文字对齐 1200 栏垂直居中：白字标志 ~520px + 标语 56~64px + 简介 20px 白 90% + 黄色主按钮；
   不加底板与渐变遮罩，背景 filter: brightness(.72) + 文字贴字细投影；底部正中细线箭头滚到新闻 ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #14171c;
  scroll-margin-top: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: brightness(.72);
}
.hero-video {
  opacity: 0;
  transition: opacity .35s ease;
}
.hero-bg.is-playing .hero-video { opacity: 1; }
.hero-bg.is-playing .hero-poster { opacity: 0; animation: none; }
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@media (min-width: 768px) {
  .hero-bg.is-poster-only .hero-poster {
    animation: hero-zoom 24s ease-in-out infinite alternate;
    will-change: transform;
  }
}
.hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 48px) 24px 88px;
}
.hero-text { max-width: 720px; min-width: 0; }
.hero-logo { display: none; }
.hero-wm { color: #fff; text-shadow: var(--hero-shadow); }
.hero-tagline {
  font-family: "PP GenWan TW", var(--head-font); font-weight: 600;
  font-size: clamp(32px, 8.5vw, 44px); line-height: 1.22;
  color: #fff; text-shadow: var(--hero-shadow);
  margin-top: 0;
  white-space: pre-line;   /* 语言文件里的 \n 是指定换行（11/26 用户：英语两排） */
}
/* 日语标语固定一排（11/26 用户）：窄屏按 11 个全角字宽缩字号，不折行 */
html[lang="ja"] .hero-tagline { white-space: nowrap; font-size: min(clamp(32px, 8.5vw, 44px), calc((100vw - 48px) / 11.2)); }
.hero-intro {
  margin: 20px 0 36px; max-width: 32em;
  font-size: 18px; line-height: 1.7;
  color: rgba(255, 255, 255, .9); text-shadow: var(--hero-shadow);
  text-wrap: pretty;
  white-space: pre-line;   /* 语言文件里的 \n 是指定换行（11/26 用户：日英韩在逗号处断开） */
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 768px) {
  .hero-logo { display: block; }
  .hero-tagline { font-size: clamp(44px, 5vw, 56px); margin-top: 28px; }
  html[lang="ja"] .hero-tagline { font-size: clamp(44px, 5vw, 56px); }
  .hero-intro { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hero-tagline, html[lang="ja"] .hero-tagline { font-size: clamp(56px, 4.2vw, 64px); }
}
@keyframes hero-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 2; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .85);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
  transition: color .2s ease;
  animation: hero-bob 2.2s ease-in-out infinite;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll:focus-visible { outline-color: #fff; }

/* ---------- 分区通用：全站浅灰底不交替，靠大留白 + 标题细横线分区；
   区块间距统一 120（手机 72）；区块标题到内容 40 ---------- */
.section { padding: 72px 0; scroll-margin-top: var(--topbar-h); }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.sec-title {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.25; margin-bottom: 40px;
}
.sec-title::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--line); }
.sec-title-plain::after { display: none; }
/* 标题后紧跟说明小字时：标题→说明 14，说明→内容 40（由内容块自身 margin-top 决定） */
.sec-title:has(+ .sec-note) { margin-bottom: 14px; }
.sec-note { color: var(--ink-dim); font-size: 16px; max-width: 36em; text-wrap: pretty; }

/* ---------- 新闻：「全部新聞 →」在区块标题行最右端（细横线尽头）；
   卡片无圆角无阴影，细线框，图片铺满，文字区保留白底；摘要是正文 17px 墨 80% ---------- */
.sec-title-row { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; }
.sec-title-row .sec-title { flex: 1 1 auto; margin-bottom: 0; }
.news-more {
  flex: none; color: var(--ink); font-size: 16px; letter-spacing: .06em;
  border-bottom: 2px solid var(--line-strong); padding-bottom: 2px;
}
.news-more::after { content: " →"; }
.news-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-grid-list { margin-top: 40px; }
.news-card {
  display: flex; flex-direction: column; gap: 16px;
}
.news-media,
.about-media,
.article-cover {
  overflow: hidden;
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}
.news-media img,
.about-media img,
.article-cover img {
  transition: transform .3s ease;
}
.news-media:hover img,
.about-media:hover img,
.article-cover:hover img {
  transform: scale(1.03);
}
.news-media { display: block; }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.news-body {
  padding: 20px 24px 24px; background: var(--surface); border: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; flex: 1;
  transition: border-color .15s ease;
}
.news-card:hover .news-body { border-color: var(--line-strong); }
.news-date { font-family: var(--mono-font); font-size: 14px; letter-spacing: .12em; color: var(--ink-faint); }
.news-body h3 { font-family: var(--head-font); font-size: 20px; font-weight: 700; line-height: 1.4; }
.news-body > p { flex: 1; text-wrap: pretty; }
.news-read { flex: none; margin-top: 8px; }
/* 只有一条新闻时：左图右文横向大卡，文字区垂直居中，摘要下「閱讀全文 ↗」线框按钮 */
@media (min-width: 768px) {
  .news-grid-single { grid-template-columns: 1fr; }
  .news-grid-single .news-card { flex-direction: row; gap: 24px; align-items: stretch; }
  .news-grid-single .news-media { flex: 0 0 46%; }
  .news-grid-single .news-media img { height: 100%; object-fit: cover; }
  .news-grid-single .news-body { justify-content: center; padding: 32px 40px; }
  .news-grid-single .news-body > p { flex: none; }
}

/* ---------- 遊戲介紹：完整简介一段（最大宽 36em）+ 两组图文交错（11/26 排版单第 4 条）。
   图片 16:9 约占一半栏宽，文字侧垂直居中不加线框，插画下不写图说 ---------- */
.about-intro { max-width: 36em; text-wrap: pretty; }
.about-rows { margin-top: 24px; display: grid; gap: 24px; }
.about-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .about-row { grid-template-columns: 1fr 1fr; gap: 48px; } }
.about-media { display: block; width: 100%; text-align: left; }
.about-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.about-feats { display: grid; gap: 24px; align-content: center; }
.feat h3 { font-family: var(--head-font); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feat p { text-wrap: pretty; }

/* ---------- 载具轮播（sections.vehicles 打开时才渲染） ---------- */
.carousel { margin-top: 40px; }
.car-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding-bottom: 8px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.vcard {
  flex: 0 0 min(84vw, 400px); scroll-snap-align: start;
  border: 2px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .15s ease;
}
.vcard:hover { border-color: var(--line-strong); }
.vcard-media { position: relative; }
.vcard-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.vcard-class {
  position: absolute; top: 12px; left: 12px;
  min-width: 40px; height: 40px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-strong); background: var(--bg);
  font-family: var(--mono-font); font-weight: 700; font-size: 19px; color: var(--ink);
}
.vcard-class[data-rank="R"] { color: var(--rank-r); }
.vcard-class[data-rank="B"] { color: var(--rank-b); }
.vcard-class[data-rank="A"] { color: var(--rank-a); }
.vcard-class[data-rank="S"] { color: var(--rank-s); }
.vcard-class[data-rank="SR"] { color: var(--rank-sr); }
.vcard-class[data-rank="UR"] { color: var(--rank-ur); }
.vcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard-body h3 { font-family: var(--head-font); font-size: 20px; font-weight: 700; }
.vcard-role { font-size: 14px; letter-spacing: .08em; color: var(--ink-faint); }
.vcard-desc { text-wrap: pretty; }
.vcard-empty { align-items: center; justify-content: center; text-align: center; min-height: 320px; color: var(--ink-faint); gap: 12px; padding: 32px; }
.vcard-empty .plus { font-size: 44px; font-weight: 300; color: var(--ink-faint); }
.vcard-empty h3 { font-family: var(--head-font); font-size: 20px; color: var(--ink-dim); }
/* 轮播箭头：墨底白箭头小方块 */
.car-ctl { display: flex; gap: 12px; margin-top: 24px; }
.carbtn {
  width: 44px; height: 44px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff;
  font-size: 18px; line-height: 1;
  transition: background-color .15s ease, border-color .15s ease;
}
.carbtn:hover { background: #3a3a3d; border-color: #3a3a3d; }

/* ---------- 角色轮播（sections.crew 打开时才渲染，一人一页） ---------- */
.crew-slide {
  flex: 0 0 min(88vw, 880px); scroll-snap-align: start;
  display: grid; border: 2px solid var(--line);
}
@media (min-width: 768px) {
  .crew-slide { grid-template-columns: 320px 1fr; }
}
.crew-figure img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.crew-info { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.crew-id { font-family: var(--mono-font); font-size: 14px; letter-spacing: .22em; color: var(--ink-faint); }
.crew-info h3 { font-family: var(--head-font); font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.crew-role { font-size: 15px; letter-spacing: .08em; color: var(--ink-faint); }
.crew-text { color: var(--ink-dim); max-width: 30em; text-wrap: pretty; }

/* ---------- 插画 / 图库 / 遊戲畫面：图片铺满格子，无框无底，不写图说 ---------- */
.gallery-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .shots-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { display: block; width: 100%; text-align: left; }
.gallery-item .g-media { display: block; }
.gallery-item img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 众筹礼包（config 开关，默认不渲染） ---------- */
.crowd-box {
  border: 2px solid var(--line);
  padding: 56px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
@media (min-width: 768px) { .crowd-box { padding: 72px 64px; } }
.crowd-status { font-family: var(--head-font); font-size: clamp(24px, 2.6vw, 34px); color: var(--ink); font-weight: 700; }
.crowd-text { color: var(--ink-dim); max-width: 34em; text-wrap: pretty; }
.crowd-box .btn { margin-top: 10px; }

/* ---------- 下载按钮（config 开关，默认不渲染） ---------- */
.dl-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-meta { font-size: 14px; letter-spacing: .08em; color: var(--ink-faint); }
.outro .dl-meta { color: rgba(255, 255, 255, .85); }

/* ---------- 新闻列表 / 详情页 ---------- */
.news-page .section { padding-top: 0; }
.news-list-sec { padding-top: calc(var(--topbar-h) + 64px); }
.article-wrap { max-width: 880px; padding-top: calc(var(--topbar-h) + 56px); }
.article-title {
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; margin-bottom: 10px;
}
.article-meta { font-family: var(--mono-font); font-size: 14px; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 28px; }
.article-cover { margin-bottom: 32px; }
.article-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { max-width: 36em; }
.article-body p { margin-bottom: 1.2em; text-wrap: pretty; }
.article-back { margin-top: 40px; }
.article-back a { color: var(--ink); font-size: 16px; letter-spacing: .06em; border-bottom: 2px solid var(--line-strong); padding-bottom: 2px; }
.foot-base-news { border-top: none; margin-top: 0; padding-top: 0; }

/* ---------- 收尾首屏（sections.outro 打开时才渲染，图片带） ---------- */
.outro { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.outro-bg { position: absolute; inset: 0; }
.outro-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.outro-in { position: relative; z-index: 1; text-align: center; padding: 96px 24px; }
.outro-tagline {
  font-family: "PP GenWan TW", var(--head-font); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px); margin-bottom: 34px;
  color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6), 0 0 2px rgba(0, 0, 0, .5);
}
.outro-in .hero-cta { justify-content: center; }

/* ---------- 建立帳號区（首页：与其他区块同宽左对齐，标题带细横线） ---------- */
.reg-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- 账号表单（register / login / forgot / reset / account / verified 共用） ---------- */
.verify-box {
  max-width: 760px; margin: 0 auto;
  border: 2px solid var(--line);
  padding: 48px 28px;
}
@media (min-width: 768px) { .verify-box { padding: 64px 72px; } }
.reg-form { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.reg-label { display: block; font-size: 15px; letter-spacing: .1em; color: var(--ink-dim); margin-bottom: 8px; font-weight: 600; }
.reg-input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 17px; border-radius: 0;
  transition: border-color .15s ease, background-color .15s ease;
}
.reg-input::placeholder { color: var(--ink-faint); }
.reg-input:hover { border-color: var(--line-strong); }
.reg-input:focus { outline: none; border-color: var(--line-strong); background: var(--sel); }
.reg-input[aria-invalid="true"] { border-color: var(--alert); }
.reg-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.7; color: var(--ink-dim); cursor: pointer; }
.reg-consent input {
  flex: none; width: 22px; height: 22px; margin: 2px 0 0;
  accent-color: var(--ink); cursor: pointer;
}
.reg-consent a { color: var(--ink); border-bottom: 2px solid var(--line-strong); padding-bottom: 1px; }
.reg-consent a:hover { color: #000; }
/* 密码栏：显示 / 隐藏切换 + 强度提示 */
.pw-wrap { position: relative; }
.pw-wrap .reg-input { padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  padding: 8px 12px; font-size: 14px; color: var(--ink-dim);
  transition: color .15s ease;
}
.pw-toggle:hover { color: var(--ink); }
.field-hint { font-size: 14px; color: var(--ink-faint); margin-top: 6px; }
.field-status { min-height: 1.5em; font-size: 14px; color: var(--ink-dim); margin-top: 4px; }
.field-status.is-error { color: var(--alert); }
.field-status.is-ok { color: var(--green-d); }
.pw-strength[data-level="weak"] { color: var(--alert); }
.pw-strength[data-level="medium"] { color: var(--ink); }
.pw-strength[data-level="strong"] { color: var(--green-d); }
/* Turnstile：站点密钥未配置时的占位框（配置了由 Cloudflare 脚本渲染真组件） */
.turnstile-ph {
  min-height: 65px; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--gray); color: var(--ink-faint);
  font-size: 14px; letter-spacing: .04em; text-align: center; padding: 8px 16px;
}
.form-status { min-height: 1.6em; font-size: 15.5px; color: var(--ink-dim); }
.form-status.is-error { color: var(--alert); }
.form-status.is-ok { color: var(--green-d); }
.reg-submit { align-self: flex-start; min-width: 200px; }
/* 成功提醒：绿只给成功状态 */
.reg-done {
  margin-top: 32px; padding: 20px 24px;
  border: 2px solid var(--line); border-left: 8px solid var(--green);
  background: var(--surface);
}
.reg-done-text { color: var(--ink); font-size: 17px; }
.reg-done-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.auth-alt { margin-top: 28px; font-size: 15px; color: var(--ink-dim); text-align: center; }
.auth-alt a { color: var(--ink); border-bottom: 2px solid var(--line-strong); padding-bottom: 1px; }
.resend-row { margin: -6px 0 4px; }
.linkbtn-ink { color: var(--ink); font-size: 15.5px; border-bottom: 2px solid var(--line-strong); padding-bottom: 2px; }
.linkbtn-ink:hover { color: #000; }

/* ---------- 建立帳號 / 登入 / verified / unsubscribed 页 ---------- */
.verify-sec { padding-top: calc(var(--topbar-h) + 64px); min-height: 60vh; }
.verify-box .sec-title { margin-bottom: 12px; }
.verify-box .reg-form { text-align: left; }
.verify-back { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.verify-ok .sec-title { color: var(--green-d); }

/* ---------- 我的帳號 ---------- */
.acct-info { margin-top: 8px; }
.acct-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.acct-row dt { flex: 0 0 7em; color: var(--ink-dim); font-size: 15px; letter-spacing: .08em; }
.acct-row dd { margin: 0; }
.acct-sec { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--line); }
.acct-title { font-family: var(--head-font); font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.acct-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.acct-code-row code {
  font-family: var(--mono-font); font-size: 18px; letter-spacing: .06em;
  border: 2px solid var(--line); padding: 8px 14px;
}
.acct-danger .reg-submit { border-color: var(--alert); color: var(--alert); outline-color: var(--alert); }
.acct-danger .reg-submit:hover { background: #ff4b3312; }

/* ---------- 页脚（墨底白字，工作室标志白字版） ---------- */
.footer { padding: 64px 0 32px; background: var(--ink); color: #fff; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  /* 社媒栏存在时（site.config.json 填了链接）才四列 */
  .foot-grid:has(> .foot-col:nth-child(4)) { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.foot-brand svg { height: 64px; width: auto; color: #fff; }
.foot-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); max-width: 26em; }
.foot-title { font-size: 14px; letter-spacing: .2em; color: rgba(255, 255, 255, .55); font-weight: 600; margin-bottom: 14px; }
.foot-list li { margin-bottom: 10px; }
.foot-list a, .linkbtn { color: rgba(255, 255, 255, .78); font-size: 16px; padding: 2px 0; transition: color .15s ease; text-align: left; }
.foot-list a:hover, .linkbtn:hover { color: #fff; text-decoration: underline; }
/* 法律页做好之前：整列灰掉、不可点（11/26 排版单第 7 条） */
.foot-soon { color: rgba(255, 255, 255, .5); font-size: 16px; cursor: default; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  border-top: 2px solid rgba(255, 255, 255, .25); margin-top: 48px; padding-top: 24px;
  font-size: 14px; color: rgba(255, 255, 255, .55);
}

/* ---------- 大图弹层 ---------- */
.lightbox {
  border: none; background: transparent; padding: 0;
  max-width: min(1240px, 94vw); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(10, 14, 19, .88); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-fig { display: flex; flex-direction: column; gap: 12px; }
.lb-fig img { max-height: 80vh; width: auto; max-width: 100%; border: 2px solid var(--img-line-strong); margin: 0 auto; }
.lb-fig figcaption { text-align: center; color: rgba(255, 255, 255, .85); font-size: 15px; }
.lb-close {
  position: fixed; top: 20px; right: 20px;
  width: 52px; height: 52px; border: 2px solid var(--img-line-strong);
  background: rgba(10, 14, 19, .8); color: #fff; font-size: 20px;
}
.lb-close:hover { border-color: #fff; }
