:root {
  --gn-h: 48px;
  --gn-gap: 22px;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --blue: #0066cc;
  --blue-soft: #eaf3ff;
  --page: #ffffff;
  --tint: #f5f5f7;
  --line: rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.28, .11, .32, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gn-h) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- 顶部全局导航 ---------- */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--gn-h);
  background: rgba(250, 250, 252, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
body.nav-open .globalnav { background: rgba(250, 250, 252, .97); }

.gn-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gn-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: calc(var(--gn-gap) + 16px);
}
.gn-brand img {
  width: auto;
  height: 27px;
  transition: opacity .2s;
}
.gn-brand:hover img { opacity: .7; }

.gn-toggle { display: none; }

.gn-list {
  flex: 0 1 auto;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gn-item { height: 100%; display: flex; align-items: center; }

.gn-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--gn-gap);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  color: rgba(29, 29, 31, .82);
  transition: color .2s;
}
.gn-link:hover, .gn-item.is-active .gn-link { color: #000; }

.gn-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 101;
  padding: 46px 24px 58px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.gn-item.is-active .gn-submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.gn-menu-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  gap: 88px;
}
.gn-col-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.gn-menu-links { list-style: none; margin: 0; padding: 0; }
.gn-menu-links li + li { margin-top: 4px; }
.gn-menu-links a {
  display: inline-block;
  color: var(--ink);
  transition: opacity .2s;
}
.gn-menu-links a:hover { opacity: .55; }
.gn-col--primary .gn-menu-links a {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.32;
}
.gn-col--secondary .gn-menu-links li + li { margin-top: 10px; }
.gn-col--secondary .gn-menu-links a { font-size: 14px; }
.gn-link-note {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.gn-col-note {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.gn-backdrop {
  position: fixed;
  inset: var(--gn-h) 0 0;
  z-index: 90;
  background: rgba(0, 0, 0, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
body.nav-open .gn-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
/* ---------- Hero：苹果官网式纯色底、居中标题、双胶囊按钮、大幅主视觉 ---------- */
.hero {
  position: relative;
  padding: 88px 24px 80px;
  text-align: center;
  background: #f5f5f7;
}
.hero-inner { position: relative; max-width: 1000px; margin: 0 auto; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink-2);
  letter-spacing: .01em;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 16px; }
.btn-primary {
  padding: 12px 26px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  transition: background-color .2s, transform .2s;
}
.btn-primary:hover { background: #0055ab; transform: translateY(-1px); }
.btn-outline {
  padding: 12px 26px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: transparent;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-text { color: var(--blue); }
.btn-text:hover { text-decoration: underline; }
.btn-text span { font-size: 20px; }

.hero-art {
  display: block;
  width: min(100%, 880px);
  height: auto;
  margin: 64px auto 0;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(20, 30, 60, .12);
}
.hero-visual {
  height: clamp(260px, 40vw, 460px);
  margin-top: 64px;
  border-radius: 28px;
}

/* ---------- 插图 / 立绘占位 ---------- */
.art-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(0, 102, 204, .22);
  background: linear-gradient(135deg, #eaf3ff 0%, #f5f9ff 48%, #e7edff 100%);
}
.art-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 30%, rgba(255, 255, 255, .9), transparent 70%);
  pointer-events: none;
}
.art-slot::after {
  content: attr(data-slot);
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
  color: #93a1b8;
}
.art-slot-label {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .05);
  font-size: 13px;
  color: #5d6d88;
  letter-spacing: .03em;
}
.hero-art { width: 100%; height: auto; border-radius: 28px; }

/* ---------- 区块通用 ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.section-lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- 角色卡片 ---------- */
.char-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.char-card { display: block; }
.char-art {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.char-art::after { display: none; }
.char-card:hover .char-art { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(20, 50, 100, .12); }
.char-meta { padding: 16px 4px 0; }
.char-no { font-size: 11px; letter-spacing: .12em; color: #9aa3b2; }
.char-meta h3 { margin-top: 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 画册 ---------- */
.album {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 28px;
  background: var(--tint);
}
.album-art { aspect-ratio: 4 / 3; border-radius: 20px; }
.album-copy h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.025em; }
.album-copy p { margin: 14px 0 22px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.link-arrow { color: var(--blue); font-size: 16px; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow span { font-size: 20px; }

/* ---------- 系列卡片 ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 32px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .045);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, .13), transparent 70%);
  pointer-events: none;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 40, 80, .1); }
.tile--a { background: linear-gradient(150deg, #eef5ff, #e3edff); }
.tile--b { background: linear-gradient(150deg, #f2f6ff, #e9ecff); }
.tile--c { background: linear-gradient(150deg, #eaf4ff, #e6efff); }
.tile--d { background: linear-gradient(150deg, #f0f5ff, #e7eaff); }
.tile--e { background: linear-gradient(150deg, #e6f1ff, #dceaff); }
.tile--f { background: linear-gradient(150deg, #f5f7fb, #eceff6); }
.tile h3 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
.tile p { margin-top: 8px; font-size: 14px; color: rgba(29, 29, 31, .62); }
.tile-more { font-size: 14px; color: var(--blue); }
.tile-more span { font-size: 18px; }
.tile:hover .tile-more { text-decoration: underline; }

/* ---------- 收尾 & 页脚 ---------- */
.closing { padding: 88px 0; text-align: center; }
.closing-logo { width: min(300px, 62vw); height: auto; margin: 0 auto 20px; }
.closing p { font-size: 14px; letter-spacing: .06em; color: var(--ink-2); }

.footer { padding: 20px 0 40px; background: var(--tint); color: var(--ink-2); font-size: 12px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
}
.footer-cols h4 { margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--ink); }
.footer-cols a { display: block; margin-bottom: 8px; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols p { line-height: 1.7; }
@media (min-width: 834px) {
  .footer--home .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-bottom { padding-top: 20px; }
.footer-icp { margin-top: 10px; text-align: left; }
.footer-icp a { color: inherit; }
.footer-icp a:hover { text-decoration: underline; }

/* ---------- 滚动出现动画（无 JS 时内容始终可见） ---------- */
html.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s var(--ease), translate .7s var(--ease),
    transform .35s var(--ease), box-shadow .35s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.char-grid .reveal:nth-child(2), .tile-grid .reveal:nth-child(2) { transition-delay: .06s; }
.char-grid .reveal:nth-child(3), .tile-grid .reveal:nth-child(3) { transition-delay: .12s; }
.char-grid .reveal:nth-child(4), .tile-grid .reveal:nth-child(4) { transition-delay: .18s; }
.char-grid .reveal:nth-child(5), .tile-grid .reveal:nth-child(5) { transition-delay: .24s; }
.tile-grid .reveal:nth-child(6) { transition-delay: .3s; }

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .gn-menu-inner { gap: 56px; }
  .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 833px) {
  .gn-inner { justify-content: space-between; padding: 0 20px; }
  .gn-brand { margin-right: 0; }
  .gn-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .gn-toggle span {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--ink);
    transition: transform .3s var(--ease);
  }
  body.mobile-nav-open .gn-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  body.mobile-nav-open .gn-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .gn-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    height: calc(100vh - var(--gn-h));
    height: calc(100dvh - var(--gn-h));
    padding: 10px 26px 60px;
    overflow-y: auto;
    background: rgba(250, 250, 252, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  }
  /* 关闭态连同后代一起退出命中测试，避免透明菜单链接拦截下方内容的点击 */
  body:not(.mobile-nav-open) .gn-list,
  body:not(.mobile-nav-open) .gn-list * { pointer-events: none; }
  body.mobile-nav-open .gn-list {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .gn-item { display: block; height: auto; border-bottom: 1px solid rgba(0, 0, 0, .07); }
  .gn-link {
    justify-content: space-between;
    height: auto;
    padding: 18px 2px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.01em;
  }
  .gn-link::after { content: "›"; font-size: 22px; font-weight: 400; color: var(--ink-2); }

  .gn-submenu {
    position: static;
    display: block;
    padding: 0 2px 22px;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .gn-item.is-active .gn-submenu { display: block; }
  body.mobile-nav-open .gn-submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .gn-menu-inner { grid-template-columns: 1fr; gap: 24px; }
  .gn-col--primary .gn-menu-links a { font-size: 17px; }
  .gn-link-note { font-size: 14px; }
  .gn-backdrop { display: none; }
  body.nav-open .globalnav { background: rgba(250, 250, 252, .9); }

  .hero { padding: 64px 22px 56px; }
  .hero-art { margin-top: 40px; border-radius: 20px; }
  .hero-visual { margin-top: 44px; height: 260px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .album { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 240px; padding: 24px; }
  .tile h3 { font-size: 25px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
  .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile { min-height: 210px; }
  .footer-cols { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html.js .reveal { opacity: 1; translate: none; }
}

/* ---------- 栏目独立页 ---------- */
.hero--sub { padding: 84px 24px 76px; }
.hero--sub h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero--sub .hero-visual { height: clamp(220px, 32vw, 360px); margin-top: 48px; }
.back-link { display: inline-block; margin-top: 26px; font-size: 14px; color: var(--blue); }
.back-link:hover { text-decoration: underline; }

.info-grid, .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.info-card, .related {
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .045);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.related { display: block; background: var(--tint); }
.info-card h3, .related h3 { font-size: 19px; font-weight: 600; }
.info-card p, .related p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.related:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(20, 40, 80, .08); }
.related .tile-more { display: inline-block; margin-top: 18px; }
.about-logo { width: min(320px, 66vw); height: auto; margin: 0 auto 28px; }

@media (max-width: 833px) {
  .hero--sub { padding: 64px 22px 60px; }
  .hero--sub .hero-visual { margin-top: 36px; height: 240px; }
  .info-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .info-grid, .related-grid { grid-template-columns: 1fr; }
}

/* ---------- 画册封面宣传图 ---------- */
.album-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(20, 40, 80, .12);
}
@media (max-width: 833px) {
  .album-cover { border-radius: 16px; box-shadow: 0 12px 28px rgba(20, 40, 80, .1); }
}

/* ---------- 主页首屏：主视觉全幅铺满，与板块背景融合 ---------- */
.hero.hero--home {
  padding: 88px 0 0;
  background: #d0d0d0;
}
.hero--home .hero-inner { padding: 0 24px; }
.hero--home .hero-actions { justify-content: center; }
.hero--home .hero-art {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 64px auto 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 833px) {
  .hero.hero--home { padding: 64px 0 0; }
  .hero--home .hero-inner { padding: 0 22px; }
  .hero--home .hero-art { margin-top: 40px; }
}

/* ---------- 图片保护：禁止拖拽、选中与长按保存 ---------- */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
