/* ============================================================
   blocks.css — 站头 / Hero / 下载卡 / 横幅 / 特性行 / 步骤 / 页脚
   组件级响应式覆盖紧跟各组件定义（坑 1）
   ============================================================ */

/* ================= 站头 ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 800;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand img { width: 42px; height: 42px; border-radius: 13px; }
.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--brand-ink); }
.nav__link[aria-current="page"] {
  color: var(--brand-ink);
  font-weight: 700;
}
/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text);
  place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-burger { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(34, 22, 64, 0.08);
  }
  .nav-open .nav { display: flex; }
  .nav__link {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid #F1EDFC;
  }
  .nav__item--cta { padding-top: var(--sp-4); }
  .nav__item--cta .btn { width: 100%; }
}

/* ================= Hero（首页） ================= */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding-block: var(--sp-8) var(--sp-9);
}
.hero__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.12;
}
.hero__sub {
  max-width: 520px;
  font-size: 18px;
  color: var(--text-body);
}
.hero__chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__figure {
  flex: 0 0 auto;
  position: relative;
  width: 380px;
}
.hero__figure img { width: 100%; border-radius: 48px; }
/* 弹幕装饰（刻意的低对比装饰，aria-hidden） */
.danmaku {
  position: absolute;
  padding: 6px 15px;
  border-radius: var(--r-pill);
  font-size: var(--fs-tiny);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
}
.danmaku--white { background: var(--surface); color: var(--brand-ink);
                  box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px rgba(124,58,237,.1); }
.danmaku--brand { background: var(--brand-mark); color: var(--text-invert); }
.danmaku--pink  { background: var(--pink); color: var(--text-invert); }
.danmaku--amber { background: var(--amber-surface); color: var(--amber-ink); }

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; text-align: center; padding-block: var(--sp-7); }
  .hero__body { align-items: center; }
  .hero__figure { width: min(320px, 82vw); }
  .danmaku { display: none; }
}

/* ================= 下载卡（首页 3 列） ================= */
.dl-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
}
.dl-card__name {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-h3);
  color: var(--text);
}
.dl-card__meta { font-size: var(--fs-small); color: var(--text-muted); }
.dl-card__note { font-size: var(--fs-tiny); color: var(--text-muted); }
.dl-card__note--link { color: var(--brand-ink); }

/* ================= 下载页行卡 ================= */
.dl-row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: 26px 34px;
}
.dl-row .icon-tile { width: 72px; height: 72px; border-radius: 22px; }
.dl-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-row__name {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-h3);
  color: var(--text);
}
.dl-row__action { flex: 0 0 auto; }

@media (max-width: 760px) {
  .dl-row { flex-wrap: wrap; }
  .dl-row__action { width: 100%; }
  .dl-row__action .btn { width: 100%; }
}

/* ================= 横幅提示条 ================= */
.banner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: 22px 32px;
  border-radius: var(--r-card);
}
.banner--soft { background: var(--brand-surface-2); }
.banner--dark { background: var(--dark); }
.banner__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.banner__title { font-size: 17px; font-weight: 700; color: var(--text); }
.banner--dark .banner__title { color: var(--text-invert); }
.banner__desc { font-size: var(--fs-small); color: var(--text-muted); }
.banner--soft .banner__desc { color: #665F85; }
.banner--dark .banner__desc { color: var(--text-invert-mute); }
.banner .icon-tile { width: 46px; height: 46px; border-radius: 14px; }
.banner .icon-tile svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .banner { flex-wrap: wrap; }
  .banner .btn { width: 100%; }
}

/* ================= 截图展示 ================= */
.shot-card {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-card-lg);
}
.shot-card img { width: 100%; }

/* ================= 特性行（特性页） ================= */
.feat__kicker { margin-bottom: var(--sp-4); }
.feat__title { margin-bottom: var(--sp-4); }
.feat__desc { line-height: 1.85; margin-bottom: var(--sp-5); }
.feat__visual { min-width: 0; }
.sync-card, .cal-card {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 460px;
}
.sync-card__head, .cal-card__head { font-weight: 700; color: var(--text); font-size: 16px; }
/* 手机截图卡 */
.phone-card {
  width: min(340px, 100%);
  border-radius: 36px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-card-lg);
  justify-self: center;
}
/* 弹幕演示卡 */
.danmaku-card {
  position: relative;
  max-width: 460px;
  height: 300px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #14102A;
  box-shadow: var(--shadow-card-lg);
}
.danmaku-card p {
  position: absolute;
  font-size: 15px;
  font-weight: 600;
}
.danmaku-card__play {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-mark);
}

/* ================= 步骤（教程页） ================= */
.steps {
  display: flex;
  align-items: stretch;
  gap: var(--sp-4);
}
.step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.step__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-invert);
  font-weight: 800;
  font-size: 16px;
}
.step__title { font-size: 17px; }
.step__desc { font-size: var(--fs-tiny); line-height: 1.7; color: var(--text-muted); }
.steps__arrow {
  align-self: center;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-mark);
}

@media (max-width: 760px) {
  .steps { flex-direction: column; }
  .steps__arrow { transform: rotate(90deg); }
}

/* ================= 教程卡 ================= */
.tut-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
}
.tut-card .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
.tut-card .icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.tut-card__name { font-size: 17px; color: var(--text); }
.tut-card__desc { font-size: var(--fs-tiny); line-height: 1.7; color: var(--text-muted); flex: 1 1 auto; }
.tut-card__link { font-size: var(--fs-tiny); font-weight: 600; color: var(--brand-ink); }

/* ================= 关于页 ================= */
.about-card {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  padding: var(--sp-7);
}
.about-card img {
  width: 250px;
  border-radius: 36px;
  flex: 0 0 auto;
}
.about-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.about-card__chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
}
.info-card--dark { background: var(--dark); border-radius: var(--r-card); }
.info-card--dark .info-card__title { color: var(--text-invert); }
.info-card--dark .info-card__desc { color: var(--text-invert-mute); }
.info-card__title { font-size: 18px; color: var(--text); }
.info-card__desc { font-size: var(--fs-small); line-height: 1.85; color: var(--text-muted); }

.disclaimer {
  padding: var(--sp-5) var(--sp-6);
  border-radius: 24px;
  background: #F1EDFC;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.disclaimer strong { color: var(--text-body); }
.disclaimer p { font-size: var(--fs-tiny); color: var(--text-muted); line-height: 1.85; }

@media (max-width: 760px) {
  .about-card { flex-direction: column; text-align: center; padding: var(--sp-6); }
  .about-card__chips { justify-content: center; }
  .about-card img { width: 200px; }
}

/* ================= 页脚 ================= */
.site-footer {
  background: var(--dark);
  color: var(--text-invert-mute);
  padding: var(--sp-8) 0 var(--sp-6);
  font-size: var(--fs-small);
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.footer-brand__row { display: flex; align-items: center; gap: var(--sp-3); }
.footer-brand__row img { width: 48px; height: 48px; border-radius: 15px; }
.footer-brand__name { font-size: 22px; font-weight: 800; color: var(--text-invert); }
.footer-brand p { line-height: 1.8; }
.footer-cols { display: flex; gap: var(--sp-8); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col__title {
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: #8F86B8;
  letter-spacing: 0.08em;
}
.footer-col a { color: var(--text-invert-mute); }
.footer-col a:hover { color: var(--text-invert); }
.footer-divider { height: 1px; background: #3D2E66; margin-block: var(--sp-6); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-tiny);
}

@media (max-width: 760px) {
  .site-footer__top, .site-footer__bottom { flex-direction: column; }
  .footer-cols { gap: var(--sp-6); }
}
