/* 页面用途：定义动漫杀轮播首页、游戏快捷入口和图鉴弹层的视觉样式。 */
#ak-home {
  --ak-red: #ed263b;
  --ak-red-dark: #aa1528;
  --ak-ink: #090b12;
  --ak-muted: #b7bac4;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: auto;
  color: #f7f5f3;
  background: var(--ak-ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
#ak-home *, #ak-home *::before, #ak-home *::after { box-sizing: border-box; }
#ak-home button { color: inherit; font: inherit; }
/* 顶部品牌与导航区 */
.ak-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5.6vw, calc((100vw - 1500px) / 2));
  background: linear-gradient(180deg, rgba(6, 8, 14, .88), rgba(6, 8, 14, .34));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ak-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ak-brand > span { font-size: 28px; font-weight: 900; letter-spacing: .12em; }
.ak-brand-accent { color: var(--ak-red); }
.ak-brand small { color: #c4c3c7; font-family: Georgia, serif; font-size: 13px; letter-spacing: .3em; }
.ak-nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 52px); height: 100%; }
.ak-nav button { position: relative; height: 100%; padding: 0 3px; border: 0; background: transparent; color: #e8e6e6; font-size: 15px; cursor: pointer; transition: color .18s ease; }
.ak-nav button:hover, .ak-nav button:focus-visible, .ak-nav .is-current { color: #ff6674; }
.ak-nav .is-current::after { position: absolute; right: 0; bottom: 12px; left: 0; height: 2px; background: var(--ak-red); content: ""; }
/* IP 主视觉、文字信息与轮播控制 */
.ak-hero {
  position: relative;
  isolation: isolate;
  flex: 1 0 min(690px, 74vh);
  min-height: 580px;
  overflow: hidden;
  background: #10131d;
}
.ak-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--ak-hero-image);
  background-position: center 42%;
  background-size: cover;
  content: "";
  animation: ak-image-in .65s ease both;
}
.ak-hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,7,13,.82) 0%, rgba(7,8,14,.52) 34%, rgba(7,8,14,.03) 72%), linear-gradient(0deg, rgba(5,7,13,.56), transparent 30%);
}
.ak-hero-content {
  position: absolute;
  top: 50%;
  left: max(6vw, calc((100vw - 1500px) / 2));
  width: min(560px, 42vw);
  transform: translateY(-37%);
  animation: ak-content-in .55s ease both;
}
.ak-slide-label { display: inline-flex; margin-bottom: 20px; color: #ff6977; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.ak-slide-title { margin: 0; font-size: clamp(52px, 6.2vw, 94px); font-weight: 950; line-height: 1.08; letter-spacing: .08em; text-shadow: 0 3px 28px rgba(0,0,0,.55); }
.ak-slide-subtitle { margin: 22px 0 30px; color: #e2dfe0; font-size: clamp(16px, 1.35vw, 21px); letter-spacing: .12em; }
.ak-hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.ak-button { min-width: 188px; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid rgba(255,255,255,.85); background: rgba(8,10,16,.42); font-size: 18px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.ak-button span { font-size: 26px; line-height: .7; }
.ak-button:hover, .ak-button:focus-visible { transform: translateY(-2px); }
.ak-primary { border-color: #ff5364; background: linear-gradient(110deg, #d21c32, #a80f27); box-shadow: 0 8px 28px rgba(187,16,39,.28); }
.ak-primary:hover, .ak-primary:focus-visible { background: #ed263b; }
.ak-outline:hover, .ak-outline:focus-visible { border-color: #ff5364; background: rgba(185,20,42,.42); }
.ak-carousel-arrow { position: absolute; top: 50%; width: 48px; height: 62px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.26); background: rgba(8,10,16,.28); color: white; font-family: Arial, sans-serif !important; font-size: 38px !important; line-height: 1; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.ak-carousel-arrow:hover, .ak-carousel-arrow:focus-visible { border-color: rgba(255,255,255,.8); background: rgba(8,10,16,.72); }
.ak-prev { left: 22px; }
.ak-next { right: 22px; }
.ak-pagination { position: absolute; right: 0; bottom: 24px; left: 0; display: flex; align-items: center; justify-content: center; gap: 18px; color: #eee; font-family: Georgia, serif; font-size: 14px; letter-spacing: .1em; }
.ak-page-line { width: 44px; height: 1px; background: rgba(255,255,255,.48); }
.ak-page-dot { width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; background: var(--ak-red); box-shadow: 0 0 0 4px rgba(237,38,59,.18), 0 0 16px rgba(237,38,59,.6); }
/* 主视觉下方的游戏快捷入口 */
.ak-shortcuts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1500px, calc(100% - 11.2vw));
  margin: 0 auto;
  padding: 22px 0 28px;
  background: #0b0e16;
}
.ak-shortcut {
  min-height: 112px;
  display: grid;
  grid-template-columns: 74px 1fr 20px;
  align-items: center;
  gap: 18px;
  padding: 17px 24px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(100deg, rgba(18,20,29,.84), rgba(10,12,18,.92));
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.ak-shortcut:hover, .ak-shortcut:focus-visible { transform: translateY(-3px); border-color: rgba(237,38,59,.78); background: linear-gradient(100deg, rgba(72,17,28,.9), rgba(13,14,21,.96)); }
.ak-shortcut-icon { color: #f2f0ef; font-size: 40px; text-align: center; }
.ak-shortcut strong, .ak-shortcut small { display: block; }
.ak-shortcut strong { font-size: 21px; letter-spacing: .04em; }
.ak-shortcut small { margin-top: 8px; color: var(--ak-muted); font-size: 13px; }
.ak-shortcut-arrow { color: #f0edef; font-size: 30px; text-align: right; }
/* 角色图鉴与规则说明弹层 */
.ak-dialog-backdrop { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(3,5,10,.78); backdrop-filter: blur(8px); }
.ak-dialog { width: min(720px, 100%); max-height: min(82vh, 780px); overflow: auto; border: 1px solid rgba(255,255,255,.18); background: #10131d; box-shadow: 0 26px 90px rgba(0,0,0,.6); }
.ak-dialog > header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 20px; border-bottom: 1px solid rgba(255,255,255,.12); background: #10131d; }
.ak-dialog-eyebrow { color: #f05a69; font: 11px Georgia,serif; letter-spacing: .24em; }
.ak-dialog h2 { margin: 6px 0 0; font-size: 24px; }
.ak-dialog-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.23); background: transparent; font-size: 28px !important; cursor: pointer; }
.ak-character-list { padding: 8px 28px 24px; }
.ak-character-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 17px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ak-character-row img { width: 68px; height: 90px; object-fit: cover; background: #171826; }
.ak-character-row h3 { margin: 0; font-size: 17px; }
.ak-character-row h3 span { margin-left: 8px; color: #d8b36d; font-size: 12px; font-weight: 500; }
.ak-character-row h3 .ak-rarity-badge { display: inline-block; padding: 2px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; font-weight: 800; line-height: 1.3; vertical-align: 2px; }
.ak-rarity-badge.rarity-n { color: #c3c8d3; }
.ak-rarity-badge.rarity-r { color: #6eb8ff; }
.ak-rarity-badge.rarity-sr { color: #bd8cff; }
.ak-rarity-badge.rarity-ssr { color: #f5c65f; box-shadow: 0 0 12px rgba(245,198,95,.2); }
.ak-rarity-badge.rarity-sssr { color: #ff865e; box-shadow: 0 0 12px rgba(255,134,94,.25); }
.ak-rarity-badge.rarity-ur { border-color: transparent; background: linear-gradient(100deg,#ff6876,#f3c85a,#8ef0d0,#81b7ff,#d390ff); background-clip: text; -webkit-text-fill-color: transparent; }
.ak-character-skills p { margin: 5px 0 0; color: var(--ak-muted); font-size: 13px; line-height: 1.6; }
.ak-character-skills strong { margin-right: 7px; color: #ff6977; }
.ak-free-tag { color: #d9b975; font-size: 12px; }
.ak-rules-copy { padding: 20px 28px 32px; color: #d5d4d8; font-size: 15px; line-height: 1.9; }
.ak-rules-copy p { margin: 0 0 15px; }
@keyframes ak-image-in { from { transform: scale(1.025); opacity: .7; } to { transform: scale(1); opacity: 1; } }
@keyframes ak-content-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (min-height: 920px) { .ak-hero { flex-basis: min(76vh, 820px); } }
@media (max-width: 900px) {
  .ak-header { padding: 0 24px; }
  .ak-hero-content { left: 7vw; width: min(520px, 58vw); }
  .ak-hero::before { background-position: 58% center; }
  .ak-shortcuts { width: calc(100% - 48px); gap: 12px; }
  .ak-shortcut { grid-template-columns: 48px 1fr 14px; gap: 12px; padding: 15px; }
  .ak-shortcut-icon { font-size: 31px; }
  .ak-shortcut strong { font-size: 17px; }
  .ak-shortcut small { font-size: 11px; }
}
@media (max-width: 620px) {
  .ak-header { height: 62px; padding: 0 16px; }
  .ak-brand { gap: 8px; }
  .ak-brand > span { font-size: 21px; }
  .ak-brand small { font-size: 9px; letter-spacing: .16em; }
  .ak-nav { gap: 16px; }
  .ak-nav button { font-size: 12px; }
  .ak-nav .is-current::after { bottom: 8px; }
  .ak-hero { flex: 1 0 570px; min-height: 570px; }
  .ak-hero::before { background-position: 57% center; }
  .ak-hero-shade { background: linear-gradient(90deg, rgba(5,7,13,.75), rgba(7,8,14,.1)), linear-gradient(0deg, rgba(5,7,13,.76), transparent 64%); }
  .ak-hero-content { top: auto; bottom: 95px; left: 26px; width: calc(100% - 52px); transform: none; }
  .ak-slide-label { margin-bottom: 12px; font-size: 12px; }
  .ak-slide-title { max-width: 390px; font-size: clamp(44px, 13vw, 68px); }
  .ak-slide-subtitle { margin: 15px 0 22px; font-size: 15px; letter-spacing: .05em; }
  .ak-hero-actions { gap: 10px; }
  .ak-button { min-width: 0; min-height: 48px; padding: 0 16px; gap: 8px; font-size: 14px; }
  /* 手机上把切换箭头放在画面上缘，避免挡住 IP 标题和操作按钮。 */
  .ak-carousel-arrow { top: 86px; width: 36px; height: 48px; transform: none; font-size: 29px !important; }
  .ak-prev { left: 8px; }
  .ak-next { right: 8px; }
  .ak-pagination { bottom: 20px; }
  .ak-shortcuts { grid-template-columns: 1fr; width: calc(100% - 32px); gap: 10px; padding: 16px 0 22px; }
  .ak-shortcut { min-height: 76px; grid-template-columns: 48px 1fr 18px; padding: 10px 15px; }
  .ak-shortcut-icon { font-size: 28px; }
  .ak-shortcut strong { font-size: 16px; }
  .ak-shortcut small { margin-top: 3px; }
  .ak-character-list { padding-right: 18px; padding-left: 18px; }
  .ak-character-row { grid-template-columns: 50px 1fr; gap: 11px; }
  .ak-character-row img { width: 50px; height: 68px; }
  .ak-free-tag { display: none; }
  .ak-character-row p { font-size: 12px; }
}

/* 模式启动页：隐藏上游三国人物图，使用与东京专区一致的黑金文字卡。 */
#splash {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
  padding: 24px;
  overflow-x: auto !important;
  background: rgba(5, 5, 8, .33) !important;
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
#splash > div,
#splash[data-splash_style="style2"] > div {
  flex: 0 0 clamp(170px, 18vw, 260px);
  width: clamp(170px, 18vw, 260px) !important;
  height: clamp(250px, 32vw, 340px) !important;
  top: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(226, 182, 84, .55);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(27, 23, 24, .94), rgba(7, 9, 13, .95)) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5), inset 0 0 0 5px rgba(187, 139, 49, .08);
  color: #f8e4ac;
}
#splash > div:first-child,
#splash > div:last-child,
#splash[data-splash_style="style2"] > div:first-child,
#splash[data-splash_style="style2"] > div:last-child { margin: 0; }
#splash > div::before {
  position: absolute;
  top: 25px;
  left: 26px;
  color: #b89a56;
  font: 700 13px Georgia, serif;
  letter-spacing: .18em;
  content: "ANIME KILL";
}
#splash > div::after {
  position: absolute;
  right: 26px;
  bottom: 27px;
  left: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 182, 84, .3);
  color: #d4c7ae;
  font-size: 12px;
  letter-spacing: .12em;
  text-align: left;
}
#splash > div[link="identity"]::after { content: "4—5 人 · 帮派身份"; }
#splash > div[link="single"]::after { content: "2 人 · 一人一将"; }
#splash > div[link="connect"]::after { content: "创建房间 · 邀请好友"; }
#splash > div > .avatar,
#splash.slim > div > .avatar,
#splash[data-splash_style="style2"].slim > div > .avatar {
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none;
}
#splash > div > .splashtext,
#splash.slim > div > .splashtext,
#splash[data-splash_style="style2"] > div > .splashtext {
  top: 43% !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  transform: translateY(-50%) !important;
  color: #f6dd9c;
  font: 800 clamp(29px, 3.2vw, 44px) "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  letter-spacing: .12em;
  text-shadow: 0 2px 15px rgba(183, 124, 24, .35);
  white-space: normal;
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
}
#splash:not(.touch) > div:hover:not(.clicked),
#splash > div:focus-visible {
  transform: translateY(-8px);
  border-color: #ffdb87;
  background: linear-gradient(145deg, rgba(59, 43, 25, .96), rgba(10, 10, 15, .96)) !important;
}
@media (max-width: 670px) {
  #splash { justify-content: flex-start; }
  #splash > div,
  #splash[data-splash_style="style2"] > div { flex-basis: 185px; width: 185px !important; height: 265px !important; }
  #splash > div > .splashtext,
  #splash.slim > div > .splashtext,
  #splash[data-splash_style="style2"] > div > .splashtext { font-size: 30px !important; }
}
