/* ============================================================
   齐发CN · 共享外壳样式 /assets/site.css
   湖心青蓝为锚，雪白长卷，日落橙只给动作，经幡暖黄只给状态
   ============================================================ */

:root {
  --qf-lake: #0E7C9B;
  --qf-lake-deep: #0A4E63;
  --qf-lake-light: #6FC3D8;
  --qf-mist: #DCEEF4;
  --qf-sunset: #F26B3A;
  --qf-prayer: #F2B233;
  --qf-prayer-soft: #FCEBC8;
  --qf-snow: #FBFDFE;
  --qf-ink: #232A2E;
  --qf-stone: #6E797E;
  --qf-line: #E2E8EA;
  --qf-wrap-max: 1280px;
  --qf-gutter: clamp(20px, 4vw, 48px);
  --qf-radius-lg: 32px;
  --qf-radius-md: 24px;
  --qf-radius-sm: 14px;
  --qf-radius-pill: 999px;
  --qf-header-h: 76px;
  --qf-font: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --qf-shadow-1: 0 10px 26px rgba(10, 78, 99, 0.08);
  --qf-shadow-2: 0 20px 46px rgba(10, 78, 99, 0.16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  font-family: var(--qf-font);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--qf-ink);
  background: var(--qf-snow);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body.qf-no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--qf-lake-deep);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 800; }
hr { border: 0; }

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

/* ---------- 容器与排版工具 ---------- */
.qf-wrap {
  width: 100%;
  max-width: calc(var(--qf-wrap-max) + var(--qf-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--qf-gutter);
}

.qf-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.qf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--qf-lake);
  margin-bottom: 18px;
}
.qf-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--qf-lake), var(--qf-prayer));
  flex: none;
}

.qf-number {
  display: block;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(14, 124, 155, 0.14);
  -webkit-text-stroke: 1.5px var(--qf-lake);
}

.qf-display {
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--qf-lake-deep);
}
.qf-h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.02em; }
.qf-h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; }
.qf-h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; }

.qf-lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--qf-stone);
  max-width: 34em;
}

.qf-prose {
  max-width: 68ch;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.75;
}
.qf-prose p + p { margin-top: 1.1em; }
.qf-prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
.qf-prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }

/* ---------- 章节外壳 ---------- */
.qf-section {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 0;
}
.qf-section--mist { background: var(--qf-mist); }
.qf-section--deep { background: var(--qf-lake-deep); color: var(--qf-snow); }
.qf-section--deep h1,
.qf-section--deep h2,
.qf-section--deep h3 { color: var(--qf-snow); }
.qf-section--deep .qf-lede { color: rgba(251, 253, 254, 0.76); }

.qf-band {
  background: linear-gradient(120deg, var(--qf-lake) 0%, var(--qf-lake-deep) 100%);
  color: var(--qf-snow);
  padding: clamp(40px, 5vw, 72px) 0;
}
.qf-band h2, .qf-band h3 { color: var(--qf-snow); }

.qf-rule { height: 1px; background: var(--qf-line); border: 0; }
.qf-rule--round {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--qf-lake), var(--qf-lake-light) 55%, var(--qf-prayer));
}

/* ---------- 栅格 ---------- */
.qf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- 面包屑 ---------- */
.qf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--qf-stone);
  margin-bottom: 22px;
}
.qf-breadcrumb__link { border-radius: 6px; transition: color 0.18s ease-out; }
.qf-breadcrumb__link:hover { color: var(--qf-lake); }
.qf-breadcrumb__sep { color: var(--qf-line); }
.qf-breadcrumb__current { color: var(--qf-ink); font-weight: 700; }

/* ---------- 图片容器（页面阶段放图） ---------- */
.qf-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--qf-radius-lg);
  background: var(--qf-mist);
  aspect-ratio: 16 / 9;
  margin: 0;
}
.qf-media > img,
.qf-media > svg,
.qf-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(220, 238, 244, 0.06);
  pointer-events: none;
}
.qf-media--tall { aspect-ratio: 4 / 5; }
.qf-media--square { aspect-ratio: 1 / 1; }
.qf-media--wide { aspect-ratio: 21 / 9; }

/* ---------- 卡片与标签 ---------- */
.qf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--qf-radius-lg);
  background: var(--qf-snow);
  box-shadow: var(--qf-shadow-1);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.qf-card:hover { transform: translateY(-6px); box-shadow: var(--qf-shadow-2); }
.qf-card__meta { font-size: 13px; line-height: 1.6; color: var(--qf-stone); }

.qf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--qf-radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  background: var(--qf-prayer-soft);
  color: #7A5312;
  border: 1px solid rgba(242, 178, 51, 0.5);
}
.qf-tag--lake {
  background: var(--qf-mist);
  color: var(--qf-lake-deep);
  border-color: rgba(14, 124, 155, 0.24);
}
.qf-tag--sunset {
  background: rgba(242, 107, 58, 0.12);
  color: #B8431B;
  border-color: rgba(242, 107, 58, 0.34);
}

/* ---------- 按钮 ---------- */
.qf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.qf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--qf-radius-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s ease-out, background-color 0.18s ease-out, color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.qf-btn--sunset {
  background: var(--qf-sunset);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(242, 107, 58, 0.28);
}
.qf-btn--sunset:hover { transform: translateY(-2px); background: #E35C2C; }
.qf-btn--lake { background: var(--qf-lake); color: var(--qf-snow); }
.qf-btn--lake:hover { transform: translateY(-2px); background: var(--qf-lake-deep); }
.qf-btn--prayer { background: var(--qf-prayer); color: var(--qf-ink); }
.qf-btn--prayer:hover { transform: translateY(-2px); background: #E5A521; }
.qf-btn--ghost { border: 1.5px solid currentColor; color: var(--qf-lake-deep); }
.qf-btn--ghost:hover { background: var(--qf-mist); color: var(--qf-lake-deep); }
.qf-section--deep .qf-btn--ghost,
.qf-band .qf-btn--ghost { color: var(--qf-snow); }

/* ---------- 显现（JS 加 is-visible） ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 跳转链接 ---------- */
.qf-skip {
  position: fixed;
  top: -120px;
  left: var(--qf-gutter);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--qf-radius-pill);
  background: var(--qf-sunset);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--qf-shadow-2);
  transition: top 0.2s ease-out;
}
.qf-skip:focus { top: 14px; }

/* ============================================================
   页头
   ============================================================ */
.qf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  color: var(--qf-snow);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(10, 78, 99, 0.72) 0%, rgba(10, 78, 99, 0.3) 62%, rgba(10, 78, 99, 0) 100%);
  transition: background-color 0.24s ease-out, box-shadow 0.24s ease-out;
}
.qf-header[data-scrolled="true"] {
  background-color: var(--qf-lake);
  background-image: none;
  box-shadow: 0 8px 26px rgba(10, 78, 99, 0.22);
}

.qf-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  min-height: var(--qf-header-h);
  transition: min-height 0.24s ease-out;
}
.qf-header[data-scrolled="true"] .qf-header__inner { min-height: 64px; }

.qf-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--qf-sunset);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* 品牌 */
.qf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 6px 0;
  flex: none;
}
.qf-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--qf-radius-sm);
  background: var(--qf-snow);
  color: var(--qf-lake-deep);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.qf-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.qf-brand__name { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.qf-brand__line { font-size: 12px; letter-spacing: 0.04em; opacity: 0.78; }

/* 版本胶囊 */
.qf-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--qf-radius-pill);
  border: 1px solid rgba(251, 253, 254, 0.42);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  flex: none;
}
.qf-version__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--qf-prayer);
  box-shadow: 0 0 0 4px rgba(242, 178, 51, 0.22);
}

/* 汉堡按钮 */
.qf-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 16px;
  border-radius: var(--qf-radius-pill);
  border: 1.5px solid rgba(251, 253, 254, 0.5);
  color: var(--qf-snow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}
.qf-nav-toggle:hover { background: rgba(251, 253, 254, 0.14); }
.qf-nav-toggle__bars { position: relative; width: 18px; height: 12px; flex: none; }
.qf-nav-toggle__bars::before,
.qf-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease-out;
}
.qf-nav-toggle__bars::before { top: 0; }
.qf-nav-toggle__bars::after { bottom: 0; }
.qf-nav-toggle[aria-expanded="true"] .qf-nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.qf-nav-toggle[aria-expanded="true"] .qf-nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.qf-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-left: auto;
  min-width: 0;
}
.qf-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.qf-nav__list::-webkit-scrollbar { height: 4px; }
.qf-nav__list::-webkit-scrollbar-thumb { background: rgba(251, 253, 254, 0.45); border-radius: 4px; }

.qf-nav__item { flex: none; }
.qf-nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--qf-radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: inherit;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}
.qf-nav__link:hover { background: rgba(251, 253, 254, 0.18); }
.qf-nav__link[aria-current="page"] {
  background: var(--qf-snow);
  color: var(--qf-lake-deep);
  font-weight: 800;
}

.qf-nav__foot { display: flex; align-items: center; gap: 14px; flex: none; }
.qf-nav__note { display: none; margin: 0; font-size: 13px; line-height: 1.6; }

/* ============================================================
   页脚
   ============================================================ */
.qf-footer {
  background: var(--qf-lake-deep);
  color: var(--qf-snow);
}

.qf-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

.qf-footer__brand {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.qf-footer__tagline {
  margin-top: 12px;
  max-width: 26em;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(251, 253, 254, 0.78);
}
.qf-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.qf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--qf-radius-pill);
  background: rgba(251, 253, 254, 0.12);
  border: 1px solid rgba(251, 253, 254, 0.2);
  color: var(--qf-snow);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.qf-chip--prayer {
  background: rgba(242, 178, 51, 0.18);
  border-color: rgba(242, 178, 51, 0.45);
  color: var(--qf-prayer-soft);
}

.qf-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: var(--qf-radius-pill);
  border: 1.5px solid rgba(251, 253, 254, 0.36);
  color: var(--qf-snow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
}
.qf-copy:hover { background: rgba(251, 253, 254, 0.12); border-color: var(--qf-lake-light); }
.qf-copy[data-copied="true"] { border-color: var(--qf-prayer); color: var(--qf-prayer); }

.qf-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.qf-footer__col { min-width: 0; }
.qf-footer__heading {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--qf-lake-light);
}
.qf-footer__list { display: flex; flex-direction: column; gap: 10px; }
.qf-footer__link {
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(251, 253, 254, 0.86);
  border-radius: 6px;
  transition: color 0.18s ease-out;
}
.qf-footer__link:hover { color: var(--qf-prayer); }

.qf-footer__bar {
  border-top: 1px solid rgba(251, 253, 254, 0.14);
  background: rgba(0, 0, 0, 0.14);
}
.qf-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 253, 254, 0.7);
}
.qf-footer__stable { font-weight: 700; color: var(--qf-snow); }
.qf-footer__contact { min-width: 0; }
.qf-footer__address { min-width: 0; }
.qf-footer__copyright { margin-left: auto; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .qf-version { display: none; }
}

@media (max-width: 1024px) {
  .qf-footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .qf-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --qf-header-h: 68px; }

  .qf-nav-toggle { display: inline-flex; }
  .qf-brand__line { display: none; }

  .qf-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--qf-header-h) + 20px) var(--qf-gutter) 32px;
    background: linear-gradient(160deg, var(--qf-lake-deep) 0%, var(--qf-lake) 68%, var(--qf-lake) 100%);
    color: var(--qf-snow);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
  }
  .qf-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .qf-nav__list {
    counter-reset: qf-nav;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }
  .qf-nav__item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    counter-increment: qf-nav;
    border-bottom: 1px solid rgba(251, 253, 254, 0.14);
  }
  .qf-nav__item::before {
    content: counter(qf-nav, decimal-leading-zero);
    flex: none;
    min-width: 2.4em;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--qf-lake-light);
  }
  .qf-nav__link {
    flex: 1;
    padding: 14px 0;
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .qf-nav__link:hover { background: none; color: var(--qf-prayer); }
  .qf-nav__link[aria-current="page"] {
    background: none;
    color: var(--qf-prayer);
  }

  .qf-nav__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: auto;
    padding-top: 32px;
  }
  .qf-nav__note { display: block; color: rgba(251, 253, 254, 0.68); }
  .qf-nav__foot .qf-btn { padding: 14px 26px; font-size: 16px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .qf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .qf-card { border-radius: var(--qf-radius-md); }
  .qf-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .qf-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qf-footer__copyright { margin-left: 0; }
  .qf-actions { gap: 10px; }
  .qf-btn { padding: 12px 20px; }
}

/* ============================================================
   动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .qf-card:hover { transform: none; }
  .qf-btn:hover { transform: none; }
}
