/* m5：紫粉漫画企业官网视觉与响应式。 */
:root {
  --brand: #6c4cf1;
  --brand-dark: #5538d6;
  --accent: #ff5c8a;
  --ink: #1f1b2e;
  --mute: #7a7690;
  --line: #e9e7f2;
  --bg: #ffffff;
  --gray: #f7f6fb;
  --dark: #1b1533;
  --w: 1200px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.8;
}
img {
  max-width: 100%;
  /* 宽度被压缩时高度跟随缩放，保持原始构图；
     需要裁切铺满的（轮播、封面）各自用 object-fit:cover 覆盖 */
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}
.w {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── 顶部通栏 ── */
.topbar {
  background: var(--dark);
  color: #a9a3c4;
  font-size: 13px;
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
}
.topbar a {
  color: #a9a3c4;
  padding: 6px 0;
}
.topbar a:hover {
  color: #fff;
}
.topbar-links a {
  margin-left: 18px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-search {
  display: flex;
  align-items: center;
}
.topbar-search input {
  background: #2a2345;
  border: 1px solid #3a3358;
  color: #ddd;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 3px 0 0 3px;
  width: 150px;
}
.topbar-search button {
  background: var(--brand);
  border: 0;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

/* ── 主头部 ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(60, 40, 140, 0.06);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .logo {
  flex: 0 0 auto;
  width: clamp(220px, 21vw, 272px);
  padding-block: 12px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-header .logo-text {
  overflow-wrap: anywhere;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  flex: none;
  box-shadow: 0 4px 12px rgba(108, 76, 241, 0.35);
}
.logo-text .name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.logo-text .slogan {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.06em;
}
.main-nav {
  min-width: 0;
}
.main-nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  height: 84px;
  padding: 0 18px;
  font-size: 16px;
  position: relative;
}
.main-nav > ul > li > a:hover {
  color: var(--brand);
}
.main-nav > ul > li > a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}
.main-nav > ul > li > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}
/* 父栏目链接给箭头按钮留出空位，文字不被压到按钮下面换行 */
.main-nav > ul > li > a {
  white-space: nowrap;
}
.main-nav > ul > .has-sub > a {
  padding-right: 34px;
}

/* 展开箭头是独立按钮：点栏目名跳转，点箭头开合子菜单 */
.sub-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 84px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.sub-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #aaa;
  border-bottom: 1.5px solid #aaa;
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.has-sub.open > .sub-toggle::before {
  transform: translate(-50%, -30%) rotate(225deg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sub-nav {
  display: none;
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(60, 40, 140, 0.15);
  border-top: 3px solid var(--brand);
  z-index: 110;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.sub-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #f3f2f8;
}
.sub-nav a:hover {
  background: var(--brand);
  color: #fff;
}
/* 展开状态只有一个来源：JS 维护的 .open（悬停、聚焦、按钮、Escape 全走它）。
   纯 CSS 的 :hover/:focus-within 展开会让 Escape 关不干净，已弃用 */
.has-sub.open > .sub-nav {
  display: block;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}

/* ── 首页轮播 ── */
.banner {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--dark);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* visibility 延迟切换：淡出动画照常，隐藏后从 Tab 顺序与读屏树中移除 */
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0s linear 0.6s;
  pointer-events: none;
}
.slide.on {
  opacity: 1;
  /* 显示态立即可见（transition 覆盖掉隐藏态的 visibility 延迟） */
  visibility: visible;
  transition: opacity 0.6s ease;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  /* 原稿 SVG 自带深色底；程序图片不一定带底色，文字层延续原稿的深紫对比。 */
  background: linear-gradient(90deg, rgba(27, 21, 51, 0.86), rgba(27, 21, 51, 0.22));
}
.slide-text .w {
  width: 100%;
}
.slide-text h1,
.slide-text .bt {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  max-width: 22em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.slide-text .bt em,
.slide-text h1 em {
  font-style: normal;
  color: #ffd166;
}
.slide-text p {
  color: #ece9ff;
  font-size: 18px;
  margin-top: 16px;
  max-width: 34em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.slide-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.dots {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  z-index: 5;
}
/* 按钮本体 44×44 保证触控区，可见的横条画在 ::before 上，视觉不变 */
.dots button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dots button::before {
  content: "";
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
}
.dots button[aria-current="true"]::before {
  background: var(--accent);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 32px;
  font-size: 16px;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-main {
  background: linear-gradient(90deg, var(--brand), #8b6cff);
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 76, 241, 0.3);
}
.btn-main:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.btn-line {
  border-color: #fff;
  color: #fff;
}
.btn-line:hover {
  background: #fff;
  color: var(--brand);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}
.btn-hollow {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-hollow:hover {
  background: var(--brand);
  color: #fff;
}
.btn-pink {
  background: var(--accent);
  color: #fff;
}
.btn-pink:hover {
  background: #e84a78;
}

/* ── 栏目标题 ── */
.sec {
  padding: 70px 0;
}
.sec-gray {
  background: var(--gray);
}
.sec-title {
  text-align: center;
  margin-bottom: 44px;
}
.sec-title h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.sec-title .en {
  display: block;
  color: #b9b5cc;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 8px;
}
.sec-title .bar {
  display: block;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin: 16px auto 0;
  border-radius: 2px;
}
.sec-title .desc {
  color: var(--mute);
  margin-top: 14px;
  font-size: 15px;
}

/* 关于 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.about-grid .pic {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(60, 40, 140, 0.14);
}
.about-grid h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-grid h3 span {
  color: var(--brand);
}
.about-grid p {
  color: #555;
  margin-bottom: 14px;
  text-align: justify;
}
.about-nums {
  display: flex;
  gap: 36px;
  margin: 22px 0 26px;
  flex-wrap: wrap;
}
.about-nums .n {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.about-nums .n b {
  display: block;
  font-size: 17px;
}
.about-nums .n span {
  color: var(--mute);
  font-size: 13px;
}

/* 产品卡片 */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 30px;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(60, 40, 140, 0.12);
  border-color: transparent;
}
.p-card .p-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.p-card:hover h3 {
  color: var(--brand);
}
.p-card p {
  color: var(--mute);
  font-size: 14px;
  flex: 1;
}
.p-card .p-more {
  margin-top: 16px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}
.p-card .p-cat {
  font-size: 12px;
  color: #b3afc6;
  margin-bottom: 6px;
}
.sec-more {
  text-align: center;
  margin-top: 40px;
}

/* 题材专区 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.genre {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 14px;
  text-align: center;
  transition: all 0.25s;
}
.genre:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(60, 40, 140, 0.1);
}
.genre .g-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.genre h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.genre p {
  font-size: 12px;
  color: var(--mute);
}

/* 作品展示 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.work {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(60, 40, 140, 0.14);
}
.work .cover {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.work .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work .w-body {
  padding: 12px 12px 14px;
}
.work h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work .tag {
  display: inline-block;
  font-size: 11px;
  color: var(--brand);
  background: #efeafd;
  border-radius: 4px;
  padding: 1px 7px;
  margin-bottom: 6px;
}
.work p {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 优势 */
.sec-dark {
  background: var(--dark) linear-gradient(135deg, #1b1533 50%, #2c1f4d);
  color: #fff;
  padding: 74px 0;
}
.sec-dark .sec-title h2 {
  color: #fff;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.adv-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 34px 26px;
  text-align: center;
  transition: all 0.25s;
  border-radius: 14px;
}
.adv-item:hover {
  background: var(--brand);
  transform: translateY(-6px);
}
.adv-item .ico {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.adv-item p {
  color: #cfc9e6;
  font-size: 14px;
}
.adv-item:hover p {
  color: #f0ebff;
}

/* 首页资讯 */
.news-grid {
  display: grid;
  align-items: start;
  /* minmax(0,…)：fr 轨道的最小值默认是内容宽度，
     卡片里的大图会把轨道撑出容器，这里允许轨道收缩、内容自行换行 */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.news-card .n-body {
  padding: 22px;
}
.news-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.news-card h3 a:hover {
  color: var(--brand);
}
.news-card p {
  color: var(--mute);
  font-size: 14px;
}
.news-list li {
  border-bottom: 1px dashed var(--line);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.news-list li a {
  flex: 1;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-list li a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}
.news-list li a:hover {
  color: var(--brand);
}
.news-list time {
  color: #b3afc6;
  font-size: 13px;
  flex: none;
}
.date-tag {
  display: inline-block;
  background: var(--gray);
  color: var(--mute);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* 通栏引导 */
.cta {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  color: #fff;
  padding: 52px 0;
}
.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: 26px;
  font-weight: 800;
}
.cta p {
  margin-top: 8px;
  color: #f3efff;
  max-width: 40em;
}
.cta .btn-line:hover {
  color: var(--brand);
}

/* FAQ */
.faq3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.faq {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
}
.faq h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.faq h3::before {
  content: "问";
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  padding: 2px 6px;
  margin-right: 8px;
  vertical-align: 2px;
}
.faq p {
  color: var(--mute);
  font-size: 14px;
}
.faq p::before {
  content: "答";
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  padding: 2px 6px;
  margin-right: 8px;
}

/* ── 内页 ── */
.page-banner {
  background: var(--dark) linear-gradient(120deg, #1b1533, #33266a 55%, #5a2a5e);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border: 44px solid rgba(255, 92, 138, 0.18);
  border-radius: 50%;
}
.page-banner h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.page-banner .sub {
  color: #c9c3e6;
  margin-top: 10px;
  max-width: 44em;
}
.location {
  background: var(--gray);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.location .w {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.location ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  /* 面包屑是有序列表但不显示编号，分隔符由 ::before 的「>」承担 */
  list-style: none;
  margin: 0;
  padding: 0;
}
.location li + li::before {
  content: ">";
  margin: 0 6px;
  color: #c9c5da;
}
.location a:hover {
  color: var(--brand);
}
.location [aria-current] {
  color: var(--brand);
}
.location .loc-label::before {
  content: "📍";
  margin-right: 6px;
}
.layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 36px;
  /* 只设纵向内距，保留 .w 容器自带的左右 16px 留白 */
  padding-block: 52px;
}
.side-box {
  border: 1px solid var(--line);
  margin-bottom: 22px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.side-box .side-hd {
  background: var(--dark);
  color: #fff;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  border-left: 4px solid var(--accent);
}
.side-box ul li a {
  display: block;
  padding: 13px 20px;
  border-bottom: 1px solid #f3f2f8;
  font-size: 14px;
  position: relative;
}
.side-box ul li a::after {
  content: ">";
  position: absolute;
  right: 16px;
  color: #ccc;
}
.side-box ul li a:hover {
  color: var(--brand);
  padding-left: 26px;
}
.side-box ul li a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
  border-left: 3px solid var(--brand);
  background: #f4f1ff;
}
.side-cta {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  padding: 26px 20px;
  text-align: center;
}
.side-cta h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.side-cta p {
  color: #f0ebff;
  font-size: 13px;
  margin-bottom: 16px;
}
.main-col {
  min-width: 0;
}
.layout[data-detail-layout] > .main-col {
  grid-column: 2;
  grid-row: 1;
}
.layout[data-detail-layout] > aside {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.main-col .m-hd {
  font-size: 22px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 24px;
  position: relative;
}
.main-col .m-hd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.prose h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 34px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
}
.prose h2:first-child {
  margin-top: 0;
}
/* 发布器增加语义化 section 外壳，分节间距仍与原稿相同。 */
.prose > section[data-zsite-block="article-section"] {
  margin-top: 34px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}
.prose p {
  margin-bottom: 14px;
  color: #444;
  text-align: justify;
}
.prose ul,
.prose ol {
  margin: 0 0 16px 1.6em;
}
.prose li {
  margin-bottom: 6px;
  color: #444;
}
.prose a {
  color: var(--brand);
}
/* 正文链接色不覆盖按钮：实底按钮保持白字（btn-hollow 本就是描边紫字，不在此列） */
.prose .btn-main,
.prose .btn-dark {
  color: #fff;
}
.prose .figure {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.prose .figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.pn a {
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 14px;
  background: var(--gray);
  border-radius: 8px;
}
.pn a:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.pn .dir {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 2px;
}
.next-steps {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.faq-item {
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 10px;
}
.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.faq-item h3::before {
  content: "Q";
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  padding: 2px 7px;
  margin-right: 8px;
}
.faq-item p {
  color: #555;
  font-size: 14px;
}
.faq-item p::before {
  content: "A";
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  padding: 2px 7px;
  margin-right: 8px;
}
.article-list .item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.article-list .item img {
  border-radius: 8px;
}
.article-list h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.article-list h3 a:hover {
  color: var(--brand);
}
.article-list p {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 8px;
}
.article-list .meta {
  font-size: 12px;
  color: #b3afc6;
}

/* 下载/联系 */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 6px 0 10px;
}
.dl-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  background: var(--gray);
  padding: 26px 24px;
  border-radius: 0 0 12px 12px;
}
.dl-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.dl-meta {
  list-style: none;
  margin: 0 0 16px !important;
}
.dl-meta li {
  color: #555;
  font-size: 14px;
  margin: 0 0 4px !important;
}
.dl-tip {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}
.c-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 10px;
}
.c-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  padding: 18px 20px;
  background: #fff;
  border-radius: 8px;
}
.c-item h3 {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  margin-bottom: 6px;
}
.c-item .c-big {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.c-item p {
  font-size: 13px;
  color: #888;
  margin: 0;
}
.msg-form {
  border: 1px solid var(--line);
  background: var(--gray);
  padding: 24px;
  max-width: 680px;
  border-radius: 12px;
}
.msg-form label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
}
.mf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.msg-form input,
.msg-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #ddd;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  border-radius: 6px;
  min-height: 44px;
}
.msg-form input:focus,
.msg-form textarea:focus {
  border-color: var(--brand);
  outline: none;
}
.msg-ok {
  color: #0a8a2a;
  font-size: 14px;
  margin-top: 12px;
}
.empty {
  border: 1px dashed #d9d9d9;
  background: var(--gray);
  padding: 52px 24px;
  text-align: center;
  color: var(--mute);
  border-radius: 12px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 8px;
}
.search-form {
  display: flex;
  max-width: 560px;
  margin: 6px 0 30px;
}
.search-form input {
  flex: 1;
  border: 2px solid var(--brand);
  border-right: 0;
  padding: 11px 16px;
  font-size: 15px;
  min-height: 48px;
  border-radius: 8px 0 0 8px;
}
.search-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 26px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}
.result {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.result h3 {
  font-size: 16px;
}
.result h3 a:hover {
  color: var(--brand);
}
.result p {
  color: var(--mute);
  font-size: 13px;
  margin-top: 4px;
}
.map-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.map-cols h2 {
  font-size: 17px;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 14px;
}
.map-cols li {
  padding: 7px 0;
  border-bottom: 1px dashed #eee;
}
.map-cols a:hover {
  color: var(--brand);
}

/* ── 页脚 ── */
.site-footer {
  background: #17122b;
  color: #a9a3c4;
  font-size: 14px;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-block: 56px 40px;
}
.site-footer h2 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer li {
  margin-bottom: 9px;
}
.site-footer a:hover {
  color: #fff;
}
.f-brand .logo-text .name {
  color: #fff;
  font-size: 20px;
}
.f-brand p {
  margin-top: 14px;
  max-width: 24em;
  font-size: 13px;
  line-height: 1.9;
}
.f-contact p {
  margin-bottom: 10px;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid #2a2445;
  padding: 16px 0;
  font-size: 13px;
  color: #7c7699;
}
.footer-bottom .w {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: #7c7699;
}
.footer-bottom a:hover {
  color: #fff;
}
.to-top {
  position: fixed;
  visibility: hidden;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 120;
  box-shadow: 0 6px 16px rgba(108, 76, 241, 0.4);
}
.to-top.show {
  visibility: visible;
  display: block;
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .genre-grid,
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .p-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-in,
  .map-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1199px) {
  .site-header .logo {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .nav-toggle {
    display: block;
    flex: none;
    padding-inline: 10px;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 70vh;
    overflow: auto;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav > ul {
    flex-direction: column;
  }
  .main-nav > ul > li > a {
    height: auto;
    min-height: 48px;
    padding: 12px 20px;
  }
  .main-nav > ul > li > a[aria-current="page"]::after {
    display: none;
  }
  .has-sub {
    position: relative;
  }
  .main-nav > ul > .has-sub > a {
    padding-right: 64px;
  }
  .sub-toggle {
    width: 50px;
    height: 48px;
    right: 6px;
  }
  .sub-nav {
    position: static;
    transform: none;
    box-shadow: none;
    border-top: 0;
    background: var(--gray);
    border-radius: 0;
  }
  .sub-nav a {
    text-align: left;
    padding-left: 36px;
  }
}
@media (max-width: 860px) {
  .topbar-welcome {
    display: none;
  }
  .banner {
    height: 420px;
  }
  .slide-text h1,
  .slide-text .bt {
    font-size: 28px;
  }
  .about-grid,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px;
  }
  .layout[data-detail-layout] > .main-col,
  .layout[data-detail-layout] > aside {
    grid-column: auto;
    grid-row: auto;
  }
  .p-grid,
  .faq3,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .pn {
    grid-template-columns: 1fr;
  }
  .sec {
    padding: 48px 0;
  }
  .page-banner {
    padding: 44px 0;
  }
  .page-banner h1 {
    font-size: 26px;
  }
  .article-list .item {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .topbar-search {
    display: none;
  }
  .mf-row,
  .c-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 479px) {
  .adv-grid,
  .footer-in,
  .map-cols {
    grid-template-columns: 1fr;
  }
  .genre-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-text .slogan {
    display: none;
  }
  .slide-text p {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════ 动效层 ═══════════ */

/* 滚动进入：类名由 JS 添加，未启用 JS 时内容默认可见 */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rv-left {
  transform: translateX(-40px);
}
.rv-right {
  transform: translateX(40px);
}
/* 1280 以下容器贴边、没有横向余量：进入动效一律走纵向，
   避免 ±40px 初始位移把页面撑出横向滚动 */
@media (max-width: 1279px) {
  .rv-left,
  .rv-right {
    transform: translateY(28px);
  }
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* 栏目标题红线展开 */
.sec-title .bar {
  transform: scaleX(0);
  transition: transform 0.8s ease 0.25s;
}
.sec-title.in .bar {
  transform: scaleX(1);
}

/* 轮播：图片缓慢推近 + 文案分层上浮 + 背景光斑漂浮 */
.slide img {
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.slide.on img {
  transform: scale(1);
}
.slide-text .w > * {
  opacity: 0;
  transform: translateY(24px);
}
.slide.on .slide-text .w > * {
  animation: fadeUp 0.8s ease forwards;
}
.slide.on .slide-text .w > *:nth-child(2) {
  animation-delay: 0.2s;
}
.slide.on .slide-text .w > *:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}
.banner::before {
  width: 220px;
  height: 220px;
  left: -50px;
  top: -70px;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.45), transparent 70%);
  animation: float 9s ease-in-out infinite;
}
.banner::after {
  width: 300px;
  height: 300px;
  right: 4%;
  bottom: -80px;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.5), transparent 70%);
  animation: float 12s ease-in-out infinite reverse;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -28px);
  }
}

/* 头部：滚动收缩 + 导航悬停下划线 + 下拉菜单滑入 */
.header-in,
.main-nav > ul > li > a,
.logo-mark,
.logo-text .name {
  transition: all 0.3s ease;
}
.site-header.shrink .header-in {
  min-height: 64px;
}
.site-header.shrink .main-nav > ul > li > a {
  height: 64px;
}
.site-header.shrink .sub-nav {
  top: 64px;
}
/* 收缩后箭头按钮跟随行高，避免比导航行高出一截造成缝隙 */
.site-header.shrink .sub-toggle {
  height: 64px;
}
.site-header.shrink .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 16px;
}
.site-header.shrink .logo-text .name {
  font-size: 20px;
}
.site-header.shrink {
  box-shadow: 0 4px 18px rgba(60, 40, 140, 0.12);
}
@media (max-width: 1199px) {
  .site-header.shrink .main-nav > ul > li > a {
    height: auto;
  }
  .site-header.shrink .sub-toggle {
    height: 48px;
  }
  .site-header.shrink .sub-nav {
    top: auto;
  }
}
.main-nav > ul > li > a:not([aria-current])::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.main-nav > ul > li > a:not([aria-current]):hover::after {
  transform: scaleX(1);
}
.sub-nav {
  animation: dropIn 0.25s ease;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 卡片：图片缩放、封面遮罩、图标弹跳、光环 */
.p-card > a:first-child,
.news-card > a:first-child {
  display: block;
  overflow: hidden;
}
.p-card img,
.work .cover img,
.news-card img,
.article-list .item img {
  transition: transform 0.6s ease;
}
.p-card:hover img,
.work:hover .cover img,
.news-card:hover img,
.article-list .item:hover img {
  transform: scale(1.06);
}
.work .cover {
  position: relative;
}
.work .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 21, 51, 0.7), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}
.work:hover .cover::after {
  opacity: 1;
}
.genre .g-ico {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.genre:hover .g-ico {
  transform: scale(1.18) rotate(-8deg);
}
.adv-item .ico {
  position: relative;
  transition: transform 0.35s;
}
.adv-item:hover .ico {
  transform: scale(1.1);
}
.adv-item:hover .ico::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: ring 1.1s ease-out infinite;
}
@keyframes ring {
  from {
    transform: scale(0.85);
    opacity: 1;
  }
  to {
    transform: scale(1.45);
    opacity: 0;
  }
}
.p-card.fade {
  animation: fadeUp 0.45s ease;
}

/* 按钮扫光 */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after {
  left: 140%;
}
.btn-main:hover {
  box-shadow: 0 10px 26px rgba(108, 76, 241, 0.42);
}

/* 通栏渐变流动 + 内页光环呼吸 */
.cta {
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
}
@keyframes gradientMove {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.page-banner::after {
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* 侧栏箭头、返回顶部淡入 */
.side-box ul li a::after {
  transition: transform 0.3s;
}
.side-box ul li a:hover::after {
  transform: translateX(4px);
}
.to-top {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
}

/* 系统开启“减少动态效果”时全部关闭并保证内容可见 */
@media (prefers-reduced-motion: reduce) {
  .rv,
  .slide-text .w > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .sec-title .bar {
    transform: none !important;
  }
  .slide img {
    transform: none !important;
  }
  .to-top {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }
  .to-top.show {
    display: block;
  }
}
