/* =========================================================
   首页样式 — 极简 / 干净 / 移动优先
   ========================================================= */

/* —— Hero — 三句诗 + 右侧风帆视觉 ————————————— */
.hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
  min-height: clamp(520px, 85vh, 720px);
}

.hero__content { position: relative; z-index: 2; }
.hero__visual {
  position: relative;
  height: 100%;
  min-height: 360px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__eyebrow::before {
  content: ""; width: 1.5rem; height: 1px; background: var(--c-mute);
}

/* —— 三句诗：递进字号 + 递进字重 ———————— */
.hero__slogan {
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.4vw, 0.4rem);
  margin-bottom: var(--s-6);
}
.slogan-line {
  display: block;
  line-height: 1.08;
  font-family: var(--font-display);
  opacity: 0;
  transform: translateY(24px);
  animation: sloganReveal 0.9s var(--ease-out) forwards;
}
/* 第一句：轻、小 — 风刚起 */
.slogan-line--1 {
  font-size: clamp(1.35rem, 1.2vw + 0.7rem, 2.2rem);
  font-weight: 300;
  color: var(--c-ink-2);
  letter-spacing: 0.04em;
  animation-delay: 0.15s;
}
/* 第二句：中 — 挂帆，品牌名亮出 */
.slogan-line--2 {
  font-size: clamp(2rem, 2.4vw + 0.9rem, 3.4rem);
  font-weight: 400;
  color: var(--c-ink);
  letter-spacing: -0.005em;
  animation-delay: 0.45s;
}
/* 第三句：大、重 — 渡沧海，情感落地 */
.slogan-line--3 {
  font-size: clamp(2.8rem, 4.5vw + 1rem, 4.8rem);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.035em;
  animation-delay: 0.75s;
}

/* "AI" 用 mono 字体区分 */
.slogan-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0.02em;
  margin-right: 0.12em;
}
/* "元力" 品牌蓝 */
.slogan-brand {
  font-style: normal;
  color: var(--c-primary);
}

@keyframes sloganReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* —— 风帆视觉：蓝色光晕 + 几何帆 + 风线 + 海浪 ————————— */
.hero__visual {
  position: relative;
  height: 100%;
  min-height: 420px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero__sail {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: auto;
  max-height: 64vh;
  z-index: 3;
  filter: drop-shadow(0 14px 28px color-mix(in srgb, var(--c-primary) 18%, transparent));
  animation: sailSpeed 3.6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  transform-origin: 52% 92%;
}
.hero__sail svg { width: 100%; height: 100%; }
.hero__sail-img { width: 100%; height: auto; display: block; }
@keyframes sailSpeed {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-10px) rotate(-1.2deg) scale(1.01); }
  45% { transform: translateY(-22px) rotate(2.8deg) scale(1.03); }
  70% { transform: translateY(-8px) rotate(0.6deg) scale(1.01); }
  88% { transform: translateY(-16px) rotate(-0.8deg) scale(1.02); }
}

/* 风：弧线 SVG + 粒子线 */
.hero__wind--arc {
  position: absolute;
  width: clamp(340px, 50vw, 600px);
  height: auto;
  right: -2%;
  top: 22%;
  z-index: 2;
  animation: windArc 2.6s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes windArc {
  0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.65; }
  50% { transform: translateX(28px) scaleX(1.08); opacity: 1; }
}

.hero__wind {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--c-primary-3) 85%, transparent), transparent);
  opacity: 0;
  z-index: 2;
  animation: windDrift 2.4s ease-out infinite;
  pointer-events: none;
}
.hero__wind--1 { width: 220px; right: 0%; top: 34%; animation-delay: 0.2s; }
.hero__wind--2 { width: 180px; right: 5%; top: 50%; animation-delay: 0.9s; }
.hero__wind--3 { width: 260px; right: -4%; top: 66%; animation-delay: 1.6s; }
.hero__wind--4 { width: 140px; right: 10%; top: 40%; animation-delay: 0.5s; animation-duration: 2s; }
.hero__wind--5 { width: 200px; right: -2%; top: 58%; animation-delay: 1.2s; animation-duration: 2.1s; }
.hero__wind--6 { width: 120px; right: 14%; top: 72%; animation-delay: 1.9s; animation-duration: 1.9s; }
@keyframes windDrift {
  0% { opacity: 0; transform: translateX(-50px); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(160px); }
}

/* 海浪 */
.hero__waves {
  position: absolute;
  bottom: clamp(0.8rem, 2.2vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(380px, 54vw, 680px);
  height: 70px;
  z-index: 2;
  animation: waveMove 2.2s ease-in-out infinite;
  opacity: 0.92;
}
@keyframes waveMove {
  0%, 100% { transform: translateX(-50%) translateY(0) scaleX(1); }
  50% { transform: translateX(-50%) translateY(10px) scaleX(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sail, .hero__wind, .hero__waves, .hero__wind--arc { animation: none; }
}

/* 诗句与副标题之间的细线 — 延迟画出 */
.hero__rule {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--c-line-2), transparent);
  margin-bottom: var(--s-6);
  animation: ruleDraw 0.7s var(--ease-out) 1.05s forwards;
}
@keyframes ruleDraw {
  to { width: 100%; }
}

.hero__desc {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem);
  color: var(--c-ink-2);
  max-width: 40ch;
  line-height: 1.6;
  margin-bottom: var(--s-6);
  opacity: 0;
  transform: translateY(16px);
  animation: sloganReveal 0.7s var(--ease-out) 1.2s forwards;
}
.hero__ctas {
  display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: sloganReveal 0.7s var(--ease-out) 1.4s forwards;
}

/* 减弱动效偏好 — 立即显示 */
@media (prefers-reduced-motion: reduce) {
  .hero__sail, .hero__wind { animation: none; }
  .slogan-line,
  .hero__desc,
  .hero__ctas { opacity: 1; transform: none; animation: none; }
  .hero__rule { width: 100%; animation: none; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; gap: var(--s-6); }
  .hero__visual { min-height: 320px; order: -1; margin-bottom: var(--s-4); padding-bottom: clamp(1rem, 3vh, 2rem); }
  .hero__sail { width: 92%; max-width: 520px; max-height: 42vh; transform-origin: 52% 94%; }
  .hero__wind--arc { width: 280px; top: 16%; right: 0; }
  .hero__waves { width: 300px; height: 56px; bottom: clamp(0.6rem, 1.8vh, 1.4rem); }
}

@media (max-width: 540px) {
  .hero__eyebrow { font-size: 0.65rem; margin-bottom: 1.2rem; }
  .hero__slogan { gap: 0.1rem; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__visual { min-height: 260px; }
  .hero__sail { width: 96%; max-width: 380px; max-height: 36vh; transform-origin: 52% 94%; }
  .hero__wind--arc { width: 200px; top: 18%; }
  .hero__waves { width: 220px; height: 48px; }
}

/* —— 四大能力 ——————————————————————— */
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-line);
  margin-top: var(--s-8);
}
.cap {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.cap:last-child { border-right: 0; }
.cap__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--c-mute);
  margin-bottom: var(--s-3);
}
.cap__title { font-size: var(--fs-xl); margin-bottom: var(--s-2); font-weight: 500; }
.cap__desc { color: var(--c-mute); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 920px) {
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .cap:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  .capabilities { grid-template-columns: 1fr; }
  .cap { border-right: 0; }
}

/* —— 简洁 section-head ——————————————————————— */
.section-head--simple {
  margin-bottom: var(--s-8);
}
.section-head--simple h2 { margin-top: var(--s-4); font-size: var(--fs-h2); max-width: 26ch; }

/* —— 支持摘要（首页四栏） ——————————————————————— */
.support-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-8);
}
.sp {
  position: relative;
  padding: var(--s-8) var(--s-6) var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  display: flex; flex-direction: column;
  min-height: 260px;
  transition: all var(--t-med) var(--ease-out);
}
.sp:hover { transform: translateY(-2px); border-color: var(--c-ink); }
.sp__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--c-primary);
  margin-bottom: var(--s-3);
}
.sp__title { font-size: var(--fs-h3); font-weight: 500; margin-bottom: var(--s-3); }
.sp__body { color: var(--c-mute); font-size: var(--fs-sm); line-height: 1.65; flex: 1; }
.sp__cta {
  margin-top: var(--s-6);
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-4);
  transition: color var(--t-fast) var(--ease-out);
}
.sp__cta:hover { color: var(--c-primary); }
.sp__cta .arrow { transition: transform var(--t-fast); }
.sp__cta:hover .arrow { transform: translateX(4px); }
@media (max-width: 1100px) { .support-preview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .support-preview { grid-template-columns: 1fr; } }

/* —— 社区预览（首页） ——————————————————————— */
.community-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--s-3);
}
.cp-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-med) var(--ease-out);
}
.cp-card:hover { transform: translateY(-3px); border-color: var(--c-line-2); box-shadow: var(--shadow-2); }
.cp-card .placeholder { width: 100%; height: 100%; border: 0; border-radius: 0; font-size: 0.65rem; }
.cp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.cp-card:hover img { transform: scale(1.04); }
.cp-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(to top, rgba(14,14,16,0.78), rgba(14,14,16,0));
  color: #fff; font-size: var(--fs-sm); letter-spacing: 0.02em;
  opacity: 0; transform: translateY(8px);
  transition: all var(--t-med) var(--ease-out);
}
.cp-card:hover .cp-card__caption { opacity: 1; transform: none; }
.cp-card--large { grid-column: span 2; grid-row: span 2; }
.cp-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  background: rgba(255,255,255,0.92);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.cp-card--cta {
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  flex-direction: column;
  gap: var(--s-2);
}
.cp-card--cta:hover { background: var(--c-tint); border-color: var(--c-primary); }
.cp-card__cta-title { font-size: var(--fs-h3); font-weight: 500; color: var(--c-ink); }
.cp-card__cta-arrow { font-size: 1.5rem; color: var(--c-primary); }

@media (max-width: 920px) {
  .community-preview { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .cp-card--large { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 540px) {
  .community-preview { grid-auto-rows: 140px; }
  .cp-card--cta { grid-column: span 2; }
}
.feed {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin-top: var(--s-8);
}
.feed__col { padding: var(--s-6); }
.feed__col + .feed__col { border-left: 1px solid var(--c-line); }
.feed__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: var(--s-6); }
.feed__head h3 { font-size: var(--fs-h3); font-weight: 500; }
.feed__head a { color: var(--c-mute); font-size: var(--fs-sm); }
.feed__head a:hover { color: var(--c-ink); }

.feed__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--c-line);
}
.feed__item:first-of-type { border-top: 0; }
.feed__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-mute);
  letter-spacing: 0.1em;
  min-width: 6ch;
  padding-top: 0.15rem;
}
.feed__title { font-size: var(--fs-base); font-weight: 500; line-height: 1.35; margin-bottom: 0.15rem; }
.feed__excerpt { color: var(--c-mute); font-size: var(--fs-sm); }
.feed__tag { color: var(--c-primary-2); font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 720px) {
  .feed { grid-template-columns: 1fr; }
  .feed__col + .feed__col { border-left: 0; border-top: 1px solid var(--c-line); }
}

/* —— 大号数字 ——————————————————————— */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); padding: var(--s-12) 0; }
.stat__num { font-size: var(--fs-4xl); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--c-ink); }
.stat__num sup { font-size: 0.4em; color: var(--c-primary); margin-left: 0.2em; }
.stat__label { color: var(--c-mute); font-size: var(--fs-sm); margin-top: var(--s-2); }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (max-width: 400px) { .stat-strip { grid-template-columns: 1fr; } }

/* —— 加入 CTA — 品牌蓝色系 ————————————————————— */
.join-cta {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
  background: linear-gradient(135deg, #0E6EA8 0%, #1E8FD5 52%, #4FB3E8 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: var(--s-8);
  align-items: center;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(14,14,16,0.04), 0 30px 80px -30px color-mix(in srgb, var(--c-primary) 45%, transparent);
}
.join-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,0.22) 0%, transparent 55%);
  pointer-events: none;
}
.join-cta::after {
  content: ""; position: absolute; left: -80px; top: 50%;
  width: 420px; height: 420px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.28) 0%, transparent 55%);
  opacity: 0.6; transform: translateY(-50%);
  pointer-events: none;
  filter: blur(6px);
}
.join-cta > * { position: relative; z-index: 2; }
.join-cta h2 { color: #fff; font-size: var(--fs-h2); }
.join-cta p { color: rgba(255,255,255,0.86); margin-top: 1rem; }
.join-cta__actions { display: flex; gap: var(--s-3); justify-content: flex-end; flex-wrap: wrap; }
.join-cta .btn--blue { background: #fff; color: var(--c-primary-2); }
.join-cta .btn--blue:hover { background: rgba(255,255,255,0.92); color: var(--c-primary-2); }
.join-cta .btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.join-cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
@media (max-width: 720px) {
  .join-cta { grid-template-columns: 1fr; }
  .join-cta__actions { justify-content: flex-start; }
  .join-cta::after { width: 280px; height: 280px; left: -60px; opacity: 0.45; }
}
@media (max-width: 540px) {
  .join-cta__actions { flex-direction: column; align-items: stretch; }
  .join-cta__actions .btn { justify-content: center; }
}
