/* =========================================================
   CourseFlow 官网
   设计令牌与 src/styles/theme.scss 保持一致
   ========================================================= */

:root {
  --primary: #4f8f62;
  --primary-soft: #6ba87a;
  --primary-deep: #3a6d4b;
  --light: #eaf3ec;
  --bg: #f7f8f5;
  --text: #1f2328;
  --secondary: #4a5258;
  --muted: #7a8288;
  --divider: #e8ece8;
  --input: #f5f7f9;
  --border: #e6e8eb;

  --radius-card: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 30px rgba(31, 35, 40, 0.04);
  --shadow-soft: 0 4px 16px rgba(31, 35, 40, 0.05);
  --shadow-lift: 0 20px 60px rgba(31, 35, 40, 0.1);
  --shadow-float: 0 30px 80px rgba(31, 35, 40, 0.16);

  --wrap: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

/* 作者样式里的 display 会盖掉 hidden 属性，这里补回来 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

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

svg {
  display: block;
}

/* 线性图标自带 fill="none"，只给实心图标上色 */
svg:not([fill="none"]) {
  fill: currentColor;
}

canvas {
  display: block;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-lift);
}

.skip-link:focus {
  left: 24px;
}

/* =========================================================
   Logo
   ========================================================= */

.logo-mark {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}

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

.logo-mark__col--flow {
  transform: translateY(3.5px);
}

.logo-mark i {
  width: 6px;
  height: 6px;
  border-radius: 1.8px;
  background: currentColor;
}

.logo-mark__col--flow i {
  background: var(--primary-soft);
}

.logo-mark--sm i {
  width: 5px;
  height: 5px;
}

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

.brand__word {
  font-size: 19px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand__word b {
  font-weight: 650;
}

.brand__word em {
  font-style: normal;
  font-weight: 500;
  color: var(--primary-soft);
}

/* 透明导航压在照片上，柔绿会糊掉，换成更亮的一档 */
.nav:not(.is-solid) .brand__word em {
  color: #a6dcb7;
}

/* =========================================================
   导航
   ========================================================= */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  color: #fff;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.nav__inner {
  height: var(--nav-h);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav.is-solid {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.06);
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 14.5px;
  opacity: 0.9;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.nav__links a:hover::after {
  right: 0;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-pill {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 35, 40, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.icon-pill svg {
  width: 17px;
  height: 17px;
}

.icon-pill:hover {
  background: rgba(31, 35, 40, 0.62);
  transform: translateY(-1px);
}

.nav.is-solid .icon-pill {
  background: var(--input);
  color: var(--secondary);
}

.nav.is-solid .icon-pill:hover {
  background: var(--light);
  color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.25s, color 0.25s,
    box-shadow 0.25s;
}

.pill:active {
  transform: scale(0.98);
}

.pill svg {
  width: 16px;
  height: 16px;
}

.pill--dark {
  background: var(--text);
  color: #fff;
}

.pill--dark:hover {
  background: #000;
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.22);
}

.nav__burger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(31, 35, 40, 0.42);
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.nav__burger i {
  display: block;
  height: 1.7px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav.is-solid .nav__burger {
  background: var(--input);
}

.nav.is-solid .nav__burger i {
  background: var(--secondary);
}

.nav__burger[aria-expanded="true"] i:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] i:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 阅读进度：只在实心导航态出现，透明态压在照片上会变成一条噪点 */
.nav__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--primary-soft), var(--primary));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.nav.is-solid .nav__progress {
  opacity: 1;
}

.nav__drawer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.nav__drawer a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
}

.nav__drawer a:last-child {
  border-bottom: none;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #2c3a30 url("../media/coast-blur.jpg") center / cover no-repeat;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  animation: hero-zoom 22s var(--ease) forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 30, 24, 0.52) 0%,
    rgba(20, 30, 24, 0.16) 26%,
    rgba(20, 30, 24, 0.34) 62%,
    rgba(18, 26, 21, 0.76) 100%
  );
}

.hero__scrim--side {
  background: linear-gradient(
    100deg,
    rgba(18, 26, 21, 0) 20%,
    rgba(17, 25, 20, 0.34) 44%,
    rgba(15, 23, 18, 0.68) 68%,
    rgba(13, 21, 16, 0.84) 100%
  );
}

.hero__inner {
  position: relative;
  min-height: 100svh;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__copy {
  max-width: 580px;
  margin-left: auto;
  padding-top: 4vh;
  text-align: right;
  animation: rise 0.9s var(--ease) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.badge em {
  font-style: normal;
  opacity: 0.5;
  margin: 0 2px;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd3a5;
  box-shadow: 0 0 0 3px rgba(143, 211, 165, 0.28);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.hero__title {
  margin: 20px 0 0;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(10, 17, 13, 0.45), 0 6px 34px rgba(10, 17, 13, 0.35);
}

.grad {
  background: linear-gradient(96deg, #8fd3a5 0%, #d7ecdd 52%, #f2e9db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 18px 0 0;
  margin-left: auto;
  max-width: 440px;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 12px rgba(12, 20, 15, 0.4);
}

.stats {
  display: inline-flex;
  margin-top: 26px;
  padding: 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stats__item {
  padding: 10px 22px;
  text-align: center;
  position: relative;
}

.stats__item + .stats__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.stats__item b {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats__item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* Hero 底部：胶囊 + 说明 + 截图带 */
.hero__bottom {
  padding-bottom: 0;
  animation: rise 1s 0.15s var(--ease) both;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease);
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, #fff);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.chip.is-active {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.hero__caption {
  padding: 6px 0 16px;
}

.hero__caption h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 650;
  text-shadow: 0 1px 12px rgba(12, 20, 15, 0.4);
}

.hero__caption-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fd3a5;
  box-shadow: 0 0 12px rgba(143, 211, 165, 0.8);
}

.hero__caption p {
  margin-top: 5px;
  max-width: 520px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 1px 10px rgba(12, 20, 15, 0.45);
}

.strip {
  height: 224px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.strip__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 58s linear infinite;
}

.strip:hover .strip__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.strip__card {
  width: 172px;
  flex-shrink: 0;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: none;
  padding: 6px 6px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease);
  cursor: zoom-in;
}

.strip__card:hover {
  transform: translateY(-8px);
}

.strip__card img {
  display: block;
  width: 100%;
  border-radius: 13px 13px 0 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* =========================================================
   通用区块
   ========================================================= */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

/* 两端回到页面底色，避免和相邻区块之间出现硬色带 */
.section--tint {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    #ffffff 18%,
    #e7f1ea 80%,
    var(--bg) 100%
  );
}

.section--plain {
  background: #fff;
}

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--light);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.04em;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.section__title {
  margin-top: 16px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 680;
}

.section__sub {
  margin-top: 14px;
  font-size: clamp(14.5px, 1.5vw, 16px);
  color: var(--secondary);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--features {
  grid-template-columns: repeat(3, 1fr);
  counter-reset: feat;
}

/* 卡片角标编号：标题说的是「六件事」，用 CSS 计数器把它坐实，不动 HTML */
.grid--features .card::before {
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #d8ded9;
  transition: color 0.35s var(--ease);
}

.grid--features .card:hover::before {
  color: var(--primary-soft);
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 143, 98, 0.32);
  box-shadow: var(--shadow-lift);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(150deg, #eef6f0 0%, #dcebe0 100%);
  box-shadow: inset 0 0 0 1px rgba(79, 143, 98, 0.12);
  color: var(--primary);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease);
}

.card:hover .card__icon {
  transform: scale(1.06);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 18px;
  font-weight: 620;
}

.card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--secondary);
}

/* =========================================================
   产品一览
   ========================================================= */

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  width: fit-content;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__item {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--secondary);
  transition: background 0.25s, color 0.25s;
}

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

.tabs__item.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 143, 98, 0.28);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.showcase__text {
  max-width: 520px;
}

.showcase__index {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary-soft);
}

.showcase__text h3 {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 680;
}

.showcase__text > p {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--secondary);
}

.ticks {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--secondary);
}

.ticks li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--light)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f8f62' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6 9.6 17 19 7.4'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.showcase__device {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(340px, 82vw);
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(155deg, #ffffff 0%, #e7ede8 100%);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(31, 35, 40, 0.05) inset;
  transition: transform 0.5s var(--ease);
}

.phone:hover {
  transform: translateY(-6px);
}

/* 侧边按键：不占屏幕内容，但让它读起来是台设备 */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d6ded9, #b6c3bb);
}

.phone::before {
  left: -2px;
  top: 116px;
  height: 58px;
}

.phone::after {
  right: -2px;
  top: 140px;
  height: 78px;
}

.phone__screen {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 609 / 1024;
  cursor: zoom-in;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.32s var(--ease);
}

.phone__screen img.is-swapping {
  opacity: 0;
}

.phone__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 143, 98, 0.22), transparent 68%);
  filter: blur(24px);
}

/* =========================================================
   三步上手
   ========================================================= */

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

.step {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

.step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(79, 143, 98, 0.24);
}

/* 卡片之间补一段虚线，让三步读起来是一条流程而不是三块并列 */
@media (min-width: 901px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 53px;
    width: 20px;
    height: 2px;
    background-image: linear-gradient(
      90deg,
      rgba(79, 143, 98, 0.45) 0 5px,
      transparent 5px 10px
    );
    background-size: 10px 2px;
  }
}

.step h3 {
  font-size: 18px;
  font-weight: 620;
}

.step p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--secondary);
}

/* =========================================================
   常见问题
   ========================================================= */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.faq__item[open] {
  background: #fff;
  border-color: var(--divider);
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 550;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

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

.faq__mark {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--light);
  transition: background 0.25s, transform 0.3s var(--ease);
}

.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s;
}

.faq__mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__mark {
  background: var(--primary);
  transform: rotate(180deg);
}

.faq__item[open] .faq__mark::before,
.faq__item[open] .faq__mark::after {
  background: #fff;
}

.faq__item[open] .faq__mark::after {
  opacity: 0;
}

.faq__body {
  padding: 0 22px 20px;
  animation: faq-open 0.3s var(--ease);
}

.faq__body p {
  max-width: 68ch;
  font-size: 14.5px;
  color: var(--secondary);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* =========================================================
   下载 CTA
   ========================================================= */

.section--cta {
  padding-bottom: clamp(72px, 10vw, 130px);
}

.cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

/* 左侧压暗保证文案可读，右侧收力，让银杏的暖黄留在画面里 */
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(14, 32, 20, 0.9) 0%,
    rgba(18, 40, 25, 0.78) 34%,
    rgba(22, 46, 29, 0.44) 68%,
    rgba(26, 50, 33, 0.24) 100%
  );
}

.cta__body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: clamp(34px, 5vw, 56px);
}

.cta__text h2 {
  margin-top: 16px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 680;
}

.cta__text > p {
  margin-top: 14px;
  max-width: 480px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.cta__actions .pill {
  height: 44px;
  padding: 0 22px;
  font-size: 14.5px;
}

.pill--solid {
  background: #fff;
  color: var(--text);
}

.pill--solid:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.cta__note {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.cta__qr {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta__qr img {
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.cta__qr p {
  font-size: 13px;
  font-weight: 500;
}

.cta__qr span {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   页脚
   ========================================================= */

.foot {
  background: #fff;
  border-top: 1px solid var(--divider);
  padding: clamp(44px, 6vw, 64px) 0 28px;
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.foot__brand .brand__word {
  margin-left: 10px;
}

.foot__brand > * {
  vertical-align: middle;
}

.foot__brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.foot__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.foot__tags li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--light);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.foot__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 56px;
}

.foot__links h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.foot__links a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}

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

.foot__bar {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.foot__dot {
  opacity: 0.5;
}

/* =========================================================
   大图查看
   ========================================================= */

body.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(16, 26, 20, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: zoom-out;
  animation: fade 0.25s var(--ease);
}

.lightbox img {
  max-width: min(440px, 92vw);
  max-height: 88vh;
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  animation: lightbox-in 0.3s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* =========================================================
   进场动画
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.grid--features .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.09s;
}

.grid--features .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.18s;
}

.grid--features .reveal:nth-child(4) {
  transition-delay: 0.06s;
}

.grid--features .reveal:nth-child(5) {
  transition-delay: 0.15s;
}

.grid--features .reveal:nth-child(6) {
  transition-delay: 0.24s;
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1080px) {
  .grid--features {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero__copy {
    max-width: 100%;
    text-align: left;
    padding-top: 2vh;
  }

  .hero__sub {
    margin-left: 0;
  }

  /* 竖屏裁切后建筑高光正好落在标题后面，改成上半屏压暗 */
  .hero__scrim--side {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 18, 0.62) 0%,
      rgba(15, 23, 18, 0.5) 34%,
      rgba(15, 23, 18, 0.12) 58%,
      rgba(15, 23, 18, 0.45) 100%
    );
  }

  .showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .showcase__text {
    max-width: 540px;
  }

  .ticks li {
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta__body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 堆叠后文案铺满整宽，横向渐变兜不住，改成整块压暗 */
  .cta__bg::after {
    background: linear-gradient(
      176deg,
      rgba(14, 32, 20, 0.9) 0%,
      rgba(18, 40, 25, 0.8) 46%,
      rgba(22, 46, 29, 0.64) 100%
    );
  }

  /* 已经在手机上了，扫码下载没有意义，按钮本身就够 */
  .cta__qr {
    display: none;
  }

  .foot__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }

  .nav__inner {
    padding: 0 18px;
    gap: 12px;
  }

  .grid--features {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats {
    width: 100%;
    justify-content: space-between;
  }

  .stats__item {
    padding: 10px 12px;
    flex: 1;
  }

  .stats__item b {
    font-size: 19px;
  }

  .strip {
    height: 176px;
  }

  .strip__card {
    width: 132px;
  }

  .hero__caption p {
    font-size: 12.5px;
  }

  .foot__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
