/* ============================================================
   pages.css — 内页与页脚区块：行动区 / 页头 / 功能模块 / 界面格 /
   问答 / 安装三步 / 下载卡 / 版本记录 / 页脚
   ============================================================ */

/* ------------------------------------------------------------
   行动区
   ------------------------------------------------------------ */
.cta {
  padding-block: 68px 72px;
  /* 底色压到白字可读：设计稿的亮橙配白字只有 2.5:1，这里整段压到 4.6:1 以上 */
  background-color: #c4470a;
  background-image: radial-gradient(130% 130% at 50% -12%, #cb4a0b 0%, #bb4007 54%, #a53304 100%);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.cta__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.cta__title {
  font-size: var(--fs-4xl);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}

.cta__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #fff;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

/* 内页 CTA：左右结构、深色面 */
.cta--bar {
  padding-block: 54px;
  background-color: var(--dark);
  background-image: none;
}

.cta--bar .cta__inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta--bar .cta__title {
  font-size: 32px;
  line-height: 1.35;
}

.cta--bar .cta__text {
  font-size: 14px;
  color: var(--text-invert-soft);
}

/* ------------------------------------------------------------
   内页页头
   ------------------------------------------------------------ */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-block: 52px 44px;
  background: var(--surface);
}

.page-head--alt {
  background: var(--surface-2);
  padding-block: 54px 58px;
}

.page-head__desc {
  max-width: var(--w-prose);
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   功能页：交替模块
   ------------------------------------------------------------ */
.module {
  padding-block: 64px;
}

.module--alt {
  background: var(--surface-2);
}

.module__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.module__index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-ink);
}

.module__index::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-soft);
}

.module__tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.module__title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.42;
  color: var(--text);
}

.module__text {
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-muted);
}

.module__media {
  display: flex;
  justify-content: center;
}

/* 功能页手机（286×566） */
.phone--sm {
  width: 286px;
  height: 566px;
  border-radius: 44px;
  background: var(--text);
  box-shadow: 0 18px 44px -8px rgba(15, 15, 20, 0.16);
}

.phone--sm .phone__screen {
  border-radius: 36px;
}

.phone-stage--sm {
  position: relative;
  width: 340px;
  height: 600px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.phone-stage--sm .phone {
  position: relative;
}

/* ------------------------------------------------------------
   界面页：2×2 详解格
   ------------------------------------------------------------ */
.shot-cell {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.shot-cell__media {
  flex: 0 0 210px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 378 / 672;
}

.shot-cell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-cell__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.shot-cell__index {
  font-size: 11px;
  font-weight: 900;
  color: var(--brand-ink);
}

.shot-cell__title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.shot-cell__text {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   问答页
   ------------------------------------------------------------ */
.faq-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  padding-block: 56px 64px;
}

.faq-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 108px;
}

.faq-aside__title {
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
}

.faq-aside__text {
  max-width: 260px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   安装三步
   ------------------------------------------------------------ */
.steps {
  padding-block: 50px 56px;
  background: var(--dark);
}

.steps__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
}

.steps__copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.steps__title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

.steps__text {
  font-size: 13px;
  color: var(--text-invert-soft);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: var(--dark-3);
}

.step__num {
  font-size: 21px;
  font-weight: 900;
  color: var(--brand-mark);
}

.step__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
}

.step__text {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--text-invert-soft);
}

/* ------------------------------------------------------------
   下载页
   ------------------------------------------------------------ */
.download-wrap {
  padding-block: 4px 50px;
  background: var(--surface-2);
}

.download-card {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 36px 40px;
  border-radius: var(--r-panel);
  background: var(--dark);
}

.download-card__main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.download-card__id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-card__logo {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  flex: 0 0 auto;
}

.download-card__name {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: #fff;
}

.download-card__ver {
  font-size: 12px;
  color: var(--text-invert-soft);
}

.download-card__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-invert-mute);
}

.download-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-card__spec {
  flex: 0 0 330px;
}

.changelog-wrap {
  background: var(--surface);
}

.changelog-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.changelog-aside__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--text);
}

.changelog-aside__text {
  max-width: 220px;
  font-size: var(--fs-xs);
  line-height: 1.9;
  color: var(--text-muted);
}

.changelog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  padding-block: 44px 50px;
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-full {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-block: 56px 46px;
}

.footer-full__top {
  display: flex;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
}

.footer-brand__name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.footer-brand__text {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-col {
  display: flex;
  flex: 0 0 130px;
  flex-direction: column;
  gap: 10px;
}

.footer-col__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-col__link {
  font-size: 13px;
  color: var(--text-body);
}

.footer-col__link:hover {
  color: var(--brand-ink);
}

.footer-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.footer-mini__id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mini__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-mini__name {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.footer-mini__links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-mini__link {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-mini__link:hover {
  color: var(--brand-ink);
}

/* ============================================================
   组件级断点（必须靠近各自的定义，否则会被后加载的文件盖掉）
   ============================================================ */

/* ============================================================
   组件级断点（跟随本文件里的区块定义）
   ============================================================ */

@media (max-width: 1100px) {
  .faq-layout,
  .changelog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .faq-aside {
    position: static;
    gap: 10px;
  }
  .download-card {
    flex-wrap: wrap;
    gap: 32px;
  }
  .download-card__spec {
    flex: 1 1 100%;
  }
}

@media (max-width: 860px) {
  .cta {
    padding-block: 48px 52px;
  }
  .cta--bar .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .cta--bar .cta__title {
    font-size: 26px;
  }
  .module {
    padding-block: 44px;
  }
  .module__media {
    justify-content: center;
  }
  .shot-cell {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .shot-cell__media {
    flex: 0 0 auto;
    align-self: center;
    width: 200px;
  }
  .steps__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .steps__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-full__top {
    flex-wrap: wrap;
    gap: 28px;
  }
  .footer-brand {
    flex: 1 1 100%;
  }
  .footer-mini {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .download-card {
    padding: 24px 20px;
    gap: 24px;
  }
  .download-card__logo {
    width: 52px;
    height: 52px;
  }
  .shot-cell {
    padding: 16px;
  }
  .shot-cell__media {
    width: 100%;
  }
  .cta__actions {
    width: 100%;
    flex-direction: column;
  }
  .cta__actions .btn {
    width: 100%;
  }
}

