/* ==========================================================================
   AniCh 官网 — 全站样式
   设计稿：Ardot「AniCh 官网设计稿」/ fileId 727811652186039
   结构：1 设计变量 → 2 基础重置 → 3 通用组件 → 4 区块 → 5 页面 → 6 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --primary: #0a84ff;
  --primary-dark: #0061d6;
  --cyan: #06b6d4;
  --pink: #ff6b9d;

  /* 文字层次 */
  --ink: #0f1523;
  --title: #18181b;
  --body: #5f6672;
  --muted: #8b93a5;
  --faint: #9c9ca1;

  /* 背景与描边 */
  --white: #fff;
  --surface: #f7f8fa;
  --line: #e9eaee;
  --divider: #e8eaf0;

  /* 浅蓝提示带 / 徽标 */
  --note-bg: #ebf5ff;
  --note-text: #3a6ea5;
  --chip-bg: #eaf4ff;
  --chip-line: #cfe4ff;
  --chip-text: #0b6bcc;

  /* 页脚（深色） */
  --footer-bg: #0f1115;
  --footer-line: #23252b;
  --footer-muted: #6b7080;

  /* 渐变 */
  --grad: linear-gradient(90deg, #0a84ff 0%, #06b6d4 100%);
  --grad-btn: linear-gradient(90deg, #0a84ff 0%, #0061d6 100%);

  /* 图标（CSS mask 用，颜色跟随 currentColor） */
  --ico-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.8v8.4'/%3E%3Cpath d='M6.6 8.1 10 11.5l3.4-3.4'/%3E%3Cpath d='M3.9 15.1h12.2'/%3E%3C/svg%3E");
  --ico-github: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.4 7.4 0 0 1 2-.27c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z'/%3E%3C/svg%3E");

  /* 字体 */
  --font-brand: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
    "Songti SC", "STSong", serif;

  /* 圆角 */
  --r-pill: 999px;
  --r-lg: 22px;
  --r-card: 20px;
  --r-md: 18px;
  --r-btn: 13px;
  --r-sm: 16px;

  /* 阴影 */
  --sh-card: 0 6px 20px -8px rgba(15, 23, 42, 0.06);
  --sh-card-hover: 0 16px 38px -14px rgba(15, 23, 42, 0.16);
  --sh-btn: 0 6px 18px -4px rgba(10, 132, 255, 0.3);
  --sh-btn-lg: 0 8px 22px -4px rgba(10, 132, 255, 0.32);
  --sh-shot: 0 12px 34px -12px rgba(15, 23, 42, 0.12);
  --sh-float: 0 10px 28px -6px rgba(15, 23, 42, 0.14);

  /* 栅格 */
  --content: 1240px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 内容容器：桌面上内容宽 1240，小屏留 24 沟槽 */
.shell {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 顶部渐变装饰线（首页 / P3~P6 页头） */
.top-accent {
  height: 2px;
  background: var(--grad);
}

/* --------------------------------------------------------------------------
   3. 通用组件
   -------------------------------------------------------------------------- */

/* 3.1 标题体系 */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  color: var(--primary);
}

.h-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--title);
  letter-spacing: 0;
}

.h-sec {
  font-size: 38px;
  line-height: 50px;
}

.h-page {
  font-size: 46px;
  line-height: 60px;
}

.h-sm {
  font-size: 32px;
  line-height: 44px;
}

.sub {
  font-size: 15.5px;
  line-height: 29px;
  color: var(--body);
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}

.sec-head--tight {
  gap: 12px;
}

/* 3.2 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 32px;
  border-radius: var(--r-btn);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: var(--sh-btn-lg);
}

.btn--primary:hover {
  box-shadow: 0 12px 28px -4px rgba(10, 132, 255, 0.42);
}

.btn--ghost {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: #c9d2e0;
  background: #fcfdff;
}

.btn--white {
  color: var(--primary);
  background: #fff;
}

.btn--sm {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  gap: 7px;
}

.btn--md {
  padding: 15px 26px;
  font-size: 15px;
  gap: 9px;
}

.btn__icon {
  flex: none;
  width: 17px;
  height: 17px;
}

.btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 3.3 徽标 / 胶囊 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--chip-line);
  background: var(--chip-bg);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--chip-text);
  line-height: 1.5;
}

.chip__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--primary);
}

.chip--plain {
  background: rgba(255, 255, 255, 0.9);
  border-color: #c7e5ff;
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row .chip {
  padding: 7px 16px;
}

/* 3.4 卡片 */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card--surface {
  background: var(--surface);
  border-color: transparent;
  box-shadow: none;
}

/* 3.5 图标底盒 */
.icon-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.icon-box svg {
  width: 22px;
  height: 22px;
  display: block;
}

.icon-box--blue {
  background: rgba(10, 132, 255, 0.1);
  color: var(--primary);
}
.icon-box--cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
}
.icon-box--pink {
  background: rgba(255, 107, 157, 0.13);
  color: var(--pink);
}

/* 3.6 圆点特性列表 */
.dot-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dot-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dot-list__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: var(--r-pill);
  background: var(--primary);
}

.dot-list__ttl {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 24px;
  color: var(--title);
}

.dot-list__desc {
  font-size: 13.5px;
  line-height: 25px;
  color: var(--body);
}

/* 3.7 浅蓝说明带 */
.note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 30px;
  border-radius: var(--r-sm);
  background: var(--note-bg);
  font-size: 13.5px;
  line-height: 26px;
  color: var(--note-text);
}

/* 3.8 截图外框 */
.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-shot);
  background: var(--surface);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   4. 区块
   -------------------------------------------------------------------------- */

/* 4.1 页头 */
.site-header {
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  overflow: hidden;
  flex: none;
}

.brand__name {
  font-family: var(--font-brand);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand__tagline {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: #5a6274;
  transition: color 0.16s ease;
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link[aria-current="page"] {
  font-weight: 500;
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.btn--github {
  padding: 9px 15px;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #5a6274;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
}

.btn--github:hover {
  color: var(--ink);
  border-color: #c9d2e0;
}

.btn--github .btn__icon {
  width: 15px;
  height: 15px;
}

.btn--header {
  padding: 10px 20px;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: var(--sh-btn);
}

.btn--header .btn__icon {
  width: 15px;
  height: 15px;
}

.header-divider {
  height: 1px;
  background: var(--divider);
}

/* 汉堡菜单（小屏） */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  place-items: center;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}

/* 4.2 页脚 */
.site-footer {
  background: var(--footer-bg);
  padding: 58px 0 32px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-top {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 360px;
  flex: none;
}

.footer-brand__row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand__name {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.footer-brand__desc {
  font-size: 13px;
  line-height: 23px;
  color: var(--muted);
}

.footer-cols {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col__ttl {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
}

.footer-col__link {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-divider {
  height: 1px;
  background: var(--footer-line);
  margin: 32px 0;
}

.footer-bottom {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.7;
  color: var(--footer-muted);
}

/* 4.3 首页 Hero */
.hero {
  padding: 84px 0 92px;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 60px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hero__h1 {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 60px;
  line-height: 76px;
  color: var(--ink);
}

.hero__h1-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__sparkle {
  width: 26px;
  height: 26px;
  flex: none;
}

.hero__grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 16px;
  line-height: 31px;
  color: var(--body);
  max-width: 620px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__trust {
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}

/* Hero 右侧视觉 */
.hero__visual {
  position: relative;
  width: 600px;
  height: 600px;
  flex: none;
}

.glow {
  position: absolute;
  border-radius: var(--r-pill);
  pointer-events: none;
}

.glow--blue {
  width: 460px;
  height: 460px;
  left: 70px;
  top: 70px;
  background: radial-gradient(
    circle,
    rgba(10, 132, 255, 0.2) 0%,
    rgba(10, 132, 255, 0) 100%
  );
}

.glow--cyan {
  width: 360px;
  height: 360px;
  left: 240px;
  top: 260px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.16) 0%,
    rgba(6, 182, 212, 0) 100%
  );
}

.phone {
  position: absolute;
  left: 150px;
  top: 8px;
  width: 300px;
  height: 584px;
  padding: 14px;
  border-radius: 46px;
  background: #0d0d0d;
  border: 1px solid #29292e;
  box-shadow: 0 36px 70px -14px rgba(13, 26, 51, 0.22);
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6ebf2;
  box-shadow: var(--sh-float);
}

.float-card__row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.float-card__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.float-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.float-card__ttl {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.float-card__desc {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.float-card--a {
  left: 0;
  top: 118px;
}

.float-card--b {
  left: 440px;
  top: 470px;
}

.danmaku {
  position: absolute;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.danmaku--a {
  left: 6px;
  top: 44px;
  color: rgba(10, 132, 255, 0.82);
}
.danmaku--b {
  left: 452px;
  top: 152px;
  color: rgba(255, 107, 158, 0.9);
}
.danmaku--c {
  left: 10px;
  top: 212px;
  color: var(--faint);
}
.danmaku--d {
  left: 486px;
  top: 308px;
  color: rgba(10, 132, 255, 0.6);
}

.sparkle {
  position: absolute;
  left: 524px;
  top: 54px;
  width: 20px;
  height: 20px;
}

/* 4.4 首页 S1 核心能力 */
.sec {
  padding: 92px 0;
}

.sec--tight {
  padding: 88px 0;
}

.sec--surface {
  background: var(--surface);
}

.sec__body {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.sec__body--40 {
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 功能特性三栏（设计稿 gap 24） */
.grid-3--wide {
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cap-card:hover {
  transform: translateY(-2px);
  border-color: #dbe6f5;
  box-shadow: var(--sh-card-hover);
}

.cap-card__ttl {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 24px;
  color: var(--title);
}

.cap-card__desc {
  font-size: 13px;
  line-height: 22px;
  color: var(--body);
}

/* 4.5 首页 S2 播放器 */
.split {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.split--library {
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.shot--player {
  height: 335px;
  border-radius: var(--r-sm);
}

.shot-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.shot--portrait {
  height: 714px;
  border-radius: var(--r-lg);
}

/* 4.6 首页 S4 全平台 */
.shot--desktop {
  height: 556px;
  border-radius: var(--r-md);
}

.pill-band {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 30px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  line-height: 26px;
  color: var(--body);
  text-align: center;
}

/* 4.7 首页 S5 开源 */
.kv-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--surface);
}

.kv-card__ttl {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--title);
}

.kv-card__desc {
  font-size: 13px;
  line-height: 23px;
  color: var(--body);
}

/* 4.8 首页 S6 结尾 CTA */
.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 58px 60px;
  border-radius: 26px;
  background: var(--grad);
  text-align: center;
}

.cta-panel__ttl {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 46px;
  color: #fff;
}

.cta-panel__sub {
  font-size: 15px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-panel__btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn--cta {
  padding: 15px 34px;
  font-size: 15px;
}

.btn--on-grad {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.btn--on-grad:hover {
  background: rgba(255, 255, 255, 0.26);
}

.cta-panel__note {
  font-size: 12px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.75);
}

/* 4.9 内页页头（P2~P6） */
.page-hero {
  padding: 58px 0 52px;
  background: linear-gradient(135deg, #ebf5ff 0%, #fff 100%);
}

.page-hero--flat {
  background: linear-gradient(180deg, #ebf5ff 0%, #fff 100%);
}

.page-hero__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero__sub {
  max-width: 900px;
}

.page-hero__sub--narrow {
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   5. 页面专属
   -------------------------------------------------------------------------- */

/* 5.1 P2 下载中心 */
.dl-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 8px 26px -8px rgba(15, 23, 42, 0.07);
}

.dl-primary__info {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.dl-primary__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
}

.dl-primary__text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.dl-primary__ttl {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--title);
}

.dl-primary__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
}

.dl-primary__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: #cfe1f7;
  box-shadow: 0 12px 28px -12px rgba(10, 132, 255, 0.22);
}

.platform-card__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-bottom: 4px;
}

.platform-card__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--title);
}

.platform-card__fit {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--body);
}

.platform-card__meta {
  font-size: 11.5px;
  line-height: 19px;
  color: var(--faint);
  margin-top: auto;
}

/* 平台卡内的紧凑下载按钮（图标走 --ico-download，不在 HTML 里重复贴 8 遍 SVG） */
.platform-card__dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--note-bg);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.platform-card__dl::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--ico-download) center / contain no-repeat;
  mask: var(--ico-download) center / contain no-repeat;
}

/* 让按钮的点击区铺满整张卡：整卡可点，但每张卡只有一个链接
   注意圆角要用卡片自己的 --r-sm，inherit 会继承到按钮的胶囊圆角，四角就点不到了 */
.platform-card__dl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-sm);
}

.platform-card__dl:hover {
  background: var(--primary);
  color: #fff;
}

.platform-card__dl:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dl-note {
  font-size: 12.5px;
  line-height: 22px;
  color: var(--faint);
}

/* 下载模块末尾的 GitHub 源站入口（次级样式，不抢主下载按钮的视觉权重） */
.dl-gh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.dl-gh__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.dl-gh__ttl {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--title);
}

.dl-gh__desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--body);
}

.dl-gh__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--title);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dl-gh__btn::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--ico-github) center / contain no-repeat;
  mask: var(--ico-github) center / contain no-repeat;
}

.dl-gh__btn:hover {
  border-color: #cfe1f7;
  color: var(--primary);
  box-shadow: 0 10px 24px -12px rgba(10, 132, 255, 0.3);
}

.dl-gh__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 5.2 P3 功能特性 */
.group-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.group-card__ttl {
  font-size: 17px;
  font-weight: 700;
  line-height: 26px;
  color: var(--title);
}

.group-card__list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.group-card__item {
  font-size: 14px;
  line-height: 30px;
  color: var(--body);
}

/* 5.3 P4 更新日志 */
.release-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.release-list__items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.release {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.05);
}

.release__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.release__ver {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}

.release__date {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

.release__link {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.release__link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.release__body {
  display: flex;
  flex-direction: column;
}

.release__item {
  font-size: 13.5px;
  line-height: 27px;
  color: var(--body);
}

/* 5.4 P5 帮助中心 */
.install-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 196px;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--surface);
}

.install-card__ttl {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 26px;
  color: var(--title);
}

.install-card__desc {
  font-size: 13px;
  line-height: 26px;
  color: var(--body);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}

.faq__q {
  font-size: 15px;
  font-weight: 700;
  line-height: 26px;
  color: var(--title);
}

.faq__a {
  font-size: 13.5px;
  line-height: 26px;
  color: var(--body);
}

/* 5.5 P6 关于 */
.spec-card {
  display: flex;
  gap: 70px;
  padding: 38px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.spec-card__labels,
.spec-card__values {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  line-height: 36px;
}

.spec-card__labels {
  width: 180px;
  flex: none;
  font-weight: 500;
  color: var(--faint);
}

.spec-card__values {
  color: var(--title);
  min-width: 0;
}

.spec-card__values a:hover {
  color: var(--primary);
}

.disc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.disc-card__item {
  font-size: 13.5px;
  line-height: 30px;
  color: var(--body);
}

.gh-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 44px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.gh-band__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gh-band__ttl {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--title);
}

.gh-band__desc {
  font-size: 13.5px;
  line-height: 26px;
  color: var(--body);
}

.btn--dark {
  padding: 14px 30px;
  font-size: 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #1c2433;
}

/* 区块间距修饰（对应设计稿各自的上下留白） */
.sec--s1 { padding: 92px 0; }
.sec--s2 { padding: 88px 0; }
.sec--s3 { padding: 88px 0; }
.sec--s4 { padding: 88px 0; }
.sec--s5 { padding: 88px 0; }
.sec--s6 { padding: 0 0 92px; }
.sec--features { padding: 72px 0 88px; }
.sec--releases { padding: 72px 0 88px; }
.sec--install { padding: 72px 0 12px; }
/* 安装指引作为页面最后一块时段落（下载中心），补足底部留白 */
.sec--install.sec--last { padding: 72px 0 92px; }
.sec--faq { padding: 44px 0 88px; }
.sec--info { padding: 72px 0 12px; }
.sec--disc { padding: 44px 0 12px; }
.sec--gh { padding: 44px 0 88px; }

/* --------------------------------------------------------------------------
   6. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  :root {
    --gutter: 32px;
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 40px;
  }

  .hero__visual {
    width: 480px;
    height: 520px;
    transform: scale(0.8);
    transform-origin: top left;
  }

  .hero__h1 {
    font-size: 50px;
    line-height: 66px;
  }

  .h-sec {
    font-size: 34px;
    line-height: 46px;
  }

  .h-page {
    font-size: 40px;
    line-height: 54px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split,
  .split--library {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .shot--portrait {
    height: 560px;
  }

  .shot--desktop {
    height: 440px;
  }
}

@media (max-width: 1023px) {
  .nav,
  .btn--github {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  /* 展开式导航 */
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    z-index: 40;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px var(--gutter) 26px;
    background: #fff;
    border-top: 1px solid var(--divider);
    box-shadow: 0 18px 30px -18px rgba(15, 23, 42, 0.2);
  }

  .page-hero,
  .hero,
  .sec,
  .sec--tight,
  .sec--s1,
  .sec--s2,
  .sec--s3,
  .sec--s4,
  .sec--s5,
  .sec--features,
  .sec--releases,
  .sec--install,
  .sec--faq,
  .sec--info,
  .sec--disc,
  .sec--gh {
    padding-block: 56px;
  }

  .sec--s6 {
    padding: 0 0 56px;
  }

  /* 安装指引收尾块：移动端同样要补底部留白 */
  .sec--install.sec--last {
    padding-block: 56px;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-brand {
    width: 100%;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 15px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero__h1 {
    font-size: 34px;
    line-height: 46px;
  }

  .hero__visual {
    width: 100%;
    height: 430px;
    transform: none;
    margin-inline: auto;
    max-width: 600px;
  }

  .phone {
    left: 50%;
    transform: translateX(-50%) scale(0.72);
    transform-origin: top center;
    top: 0;
  }

  .float-card--a {
    left: 0;
    top: 40px;
    transform: scale(0.86);
    transform-origin: left top;
  }

  .float-card--b {
    left: auto;
    right: 0;
    top: 348px;
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  .danmaku--b,
  .danmaku--d,
  .sparkle {
    display: none;
  }

  .danmaku--a,
  .danmaku--c {
    left: 0;
  }

  .h-sec,
  .h-page {
    font-size: 28px;
    line-height: 40px;
  }

  .h-sm {
    font-size: 25px;
    line-height: 36px;
  }

  .sub {
    font-size: 14.5px;
    line-height: 26px;
  }

  .cta-panel {
    padding: 40px 24px;
  }

  .cta-panel__ttl {
    font-size: 25px;
    line-height: 36px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14.5px;
  }

  .btn--cta {
    padding: 13px 24px;
    font-size: 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .platform-grid,
  .shot-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot--portrait {
    height: 520px;
    max-width: 320px;
    margin-inline: auto;
  }

  .shot--desktop {
    height: 260px;
  }

  .shot--player {
    height: 220px;
  }

  .spec-card {
    flex-direction: column;
    gap: 8px;
    padding: 26px;
  }

  .spec-card__labels {
    width: auto;
    line-height: 30px;
  }

  .spec-card__values {
    line-height: 30px;
  }

  .gh-band {
    padding: 26px;
  }

  .footer-cols {
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .dl-primary {
    padding: 22px;
  }

  .dl-primary__actions {
    width: 100%;
  }

  .dl-primary__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .dl-gh {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
  }

  .dl-gh__btn {
    width: 100%;
    justify-content: center;
  }
}

/* 打印：去掉装饰，保留正文 */
@media print {
  .site-header,
  .site-footer,
  .hero__visual,
  .cta-panel,
  .nav-toggle {
    display: none;
  }
}
