/* ============================================================
   海洋系软件分发站 · 全局样式
   主色：蓝白海洋系
   ============================================================ */
:root {
  --blue-deep: #0b3d91;
  --blue-main: #1470d8;
  --blue-light: #4fa8f5;
  --blue-ice: #eaf4fd;
  --white: #ffffff;
  --text-dark: #0f2540;
  --text-gray: #5b7290;
  --radius-lg: 22px;
  --shadow-card: 0 12px 40px rgba(11, 61, 145, 0.14);
  --shadow-card-hover: 0 22px 60px rgba(11, 61, 145, 0.24);
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- 通用导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  transition: var(--transition);
}
.nav .logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav .logo svg { width: 26px; height: 26px; }
.nav .nav-links { display: flex; gap: 28px; }
.nav .nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  transition: var(--transition);
}
.nav .nav-links a:hover { color: var(--white); text-shadow: 0 0 12px rgba(255,255,255,0.6); }

/* 内页导航（浅色背景） */
.nav.nav-light { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); box-shadow: 0 2px 16px rgba(11, 61, 145, 0.08); }
.nav.nav-light .logo { color: var(--blue-deep); }
.nav.nav-light .nav-links a { color: var(--text-gray); }
.nav.nav-light .nav-links a:hover { color: var(--blue-main); text-shadow: none; }

/* ============================================================
   首页 Landing
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 140px;
}

/* 动态背景：冲浪图 + 缓慢缩放 */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.png") center 30% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-14px); }
}

/* 海洋蓝渐变罩层，保证文字可读 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 61, 145, 0.42) 0%,
    rgba(20, 112, 216, 0.28) 45%,
    rgba(11, 61, 145, 0.55) 100%);
  z-index: 1;
}

/* 漂浮光斑 */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
}
.hero-glow.g1 { width: 420px; height: 420px; background: rgba(79, 168, 245, 0.35); top: -80px; left: -100px; animation: drift 14s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 360px; height: 360px; background: rgba(255, 255, 255, 0.22); bottom: 60px; right: -80px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, 40px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1080px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 6px;
  line-height: 1.15;
  text-shadow: 0 6px 30px rgba(11, 61, 145, 0.45);
  animation: fadeUp 0.9s ease 0.12s both;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 3px;
  animation: fadeUp 0.9s ease 0.24s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 双大卡片 ---------- */
.hero-cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 285px));
  gap: 24px;
  justify-content: center;
  animation: fadeUp 1s ease 0.38s both;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 27px 25px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  text-align: left;
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.app-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}
.app-card:hover::before { transform: scaleX(1); }

.app-card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-light));
  box-shadow: 0 6px 14px rgba(20, 112, 216, 0.35);
}
.app-card .card-icon svg { width: 21px; height: 21px; }

.app-card .card-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.app-card .card-tag {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-main);
  letter-spacing: 1px;
}
.app-card .card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-gray);
}
.app-card .card-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-main);
  transition: var(--transition);
}
.app-card:hover .card-cta { gap: 14px; color: var(--blue-deep); }

/* ---------- 其他作品：横跨两列的宽卡片 ---------- */
.app-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
}
.app-card--wide .card-body { flex: 1; min-width: 0; }
.app-card--wide .card-name,
.app-card--wide .card-tag,
.app-card--wide .card-desc { text-align: left; }
.app-card--wide .card-cta { margin-top: 0; flex-shrink: 0; }
@media (max-width: 768px) {
  .app-card--wide { flex-direction: column; align-items: flex-start; }
  .app-card--wide .card-cta { margin-top: 6px; }
}

/* ---------- 底部海浪 ---------- */
.hero-waves {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}
.hero-waves svg { width: 100%; height: 130px; display: block; }
/* 关键：以 viewBox(1440) 为基准，-50% = 向左平移 720 = 恰好一个波长，配合 2880 长的路径实现无缝循环 */
.hero-waves g { transform-box: view-box; }
.wave-move-1 { animation: waveShift 17s linear infinite; }
.wave-move-2 { animation: waveShift 12s linear infinite reverse; }
.wave-move-3 { animation: waveShift 8s linear infinite; }
@keyframes waveShift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   下载页（CredHaven / Prompt 共用）
   ============================================================ */
.page {
  flex: 1;
  background: linear-gradient(180deg, var(--blue-ice) 0%, var(--white) 46%);
  padding: 140px 24px 90px;
}

.page-hero { text-align: center; max-width: 860px; margin: 0 auto; }
.page-hero .product-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-light));
  box-shadow: 0 14px 34px rgba(20, 112, 216, 0.35);
}
.page-hero .product-icon svg { width: 42px; height: 42px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 2px;
}
.page-hero .product-tag {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-main);
  letter-spacing: 2px;
}
.page-hero .product-intro {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-gray);
}
.page-hero .product-intro b { color: var(--text-dark); font-weight: 700; }
.page-hero .product-note {
  margin: 16px auto 0;
  max-width: 680px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-gray);
  background: rgba(234, 244, 253, 0.55);
  border: 1px dashed rgba(20, 112, 216, 0.28);
  border-radius: 12px;
  padding: 12px 16px;
}
.page-hero .product-note b { color: var(--blue-main); font-weight: 700; }
.page-hero .product-note .note-strong { color: var(--blue-deep); font-weight: 700; }

/* 功能亮点 */
.features {
  max-width: 980px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* CredHaven 特性卡：8 张 4×2 两行（桌面 4 列，逐步降级） */
.features--8 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
}
@media (max-width: 1024px) {
  .features--8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features--8 { grid-template-columns: 1fr; }
}
.feature-item {
  background: var(--white);
  border: 1px solid rgba(20, 112, 216, 0.12);
  border-radius: 18px;
  padding: 28px 26px;
  transition: var(--transition);
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(20, 112, 216, 0.3);
}
.feature-item .f-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-ice);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-item .f-icon svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.feature-item p { font-size: 14px; line-height: 1.75; color: var(--text-gray); }
.feature-item p b { color: var(--blue-main); font-weight: 700; }

/* 下载区 */
.download-section { max-width: 860px; margin: 72px auto 0; text-align: center; }
.download-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 2px;
  margin-bottom: 34px;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 34px;
  border-radius: 16px;
  background: var(--white);
  border: 1.5px solid rgba(20, 112, 216, 0.25);
  box-shadow: 0 6px 20px rgba(11, 61, 145, 0.08);
  transition: var(--transition);
}
.dl-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.dl-btn .dl-text { text-align: left; }
.dl-btn .dl-text .dl-os { display: block; font-size: 12.5px; color: var(--text-gray); letter-spacing: 1px; }
.dl-btn .dl-text .dl-name { display: block; font-size: 17px; font-weight: 700; color: var(--text-dark); margin-top: 2px; }
.dl-btn:hover {
  transform: translateY(-4px);
  border-color: var(--blue-main);
  box-shadow: var(--shadow-card-hover);
  background: linear-gradient(135deg, var(--blue-main), var(--blue-light));
}
.dl-btn:hover .dl-text .dl-os,
.dl-btn:hover .dl-text .dl-name { color: var(--white); }
.dl-btn:hover svg path,
.dl-btn:hover svg rect,
.dl-btn:hover svg circle { fill: var(--white); }

/* 三按钮排布（仅 CredHaven 下载区，不影响 Prompt）：Windows 一行两个，Android 独占一行 */
.download-buttons.triple { gap: 18px; }
.download-buttons.triple .dl-btn { flex: 1 1 calc(50% - 9px); max-width: 360px; justify-content: center; }
.download-buttons.triple .dl-btn:nth-child(3) { flex-basis: 100%; max-width: 360px; }
@media (max-width: 768px) {
  .download-buttons.triple .dl-btn { flex-basis: 100%; max-width: 340px; }
}

/* 反馈与支持 */
.support-section {
  max-width: 680px;
  margin: 80px auto 0;
  text-align: center;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 112, 216, 0.06), rgba(79, 168, 245, 0.1));
  border: 1px solid rgba(20, 112, 216, 0.15);
}
.support-section h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.support-section p { font-size: 14.5px; color: var(--text-gray); line-height: 1.8; }
.support-section .mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-main);
  transition: var(--transition);
}
.support-section .mail-link:hover { color: var(--blue-deep); text-decoration: underline; }

/* 返回首页 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
  font-size: 14.5px;
  color: var(--text-gray);
  transition: var(--transition);
}
.back-link:hover { color: var(--blue-main); gap: 10px; }

/* ============================================================
   全局 Footer
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--blue-deep), #072a66);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 24px 32px;
  text-align: center;
}
.footer .footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition);
}
.footer .footer-mail:hover { color: var(--blue-light); }
.footer .footer-copy {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav { padding: 14px 22px; }
  .nav .nav-links { gap: 16px; }
  .hero-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .app-card { padding: 22px 20px; }
  .page { padding: 110px 18px 60px; }
  .dl-btn { width: 100%; max-width: 340px; justify-content: center; }
}

/* ============================================================
   反馈弹窗
   ============================================================ */
.fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 61, 145, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.fb-overlay.show { opacity: 1; pointer-events: auto; }

.fb-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(11, 61, 145, 0.35);
  padding: 40px 32px 32px;
  text-align: center;
  transform: translateY(18px) scale(0.94);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.fb-overlay.show .fb-modal { transform: translateY(0) scale(1); }

.fb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}
.fb-close:hover { background: var(--blue-ice); color: var(--blue-main); }

.fb-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--blue-ice);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-icon svg { width: 28px; height: 28px; }

.fb-modal h3 { font-size: 21px; font-weight: 800; color: var(--text-dark); letter-spacing: 1px; }
.fb-desc { margin-top: 10px; font-size: 13.5px; line-height: 1.8; color: var(--text-gray); }

.fb-email {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-ice);
  border: 1px dashed rgba(20, 112, 216, 0.4);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.5px;
  user-select: all;
}

.fb-actions { margin-top: 20px; display: flex; gap: 12px; }
.fb-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.fb-btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-light));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 112, 216, 0.3);
}
.fb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 112, 216, 0.42); }
.fb-btn-primary.copied { background: linear-gradient(135deg, #12a870, #3ecf94); }
.fb-btn-ghost {
  border: 1.5px solid rgba(20, 112, 216, 0.35);
  background: var(--white);
  color: var(--blue-main);
}
.fb-btn-ghost:hover { background: var(--blue-ice); border-color: var(--blue-main); }

@media (max-width: 480px) {
  .fb-actions { flex-direction: column; }
}

/* ---------- 反馈表单（内置邮件发送） ---------- */
.fb-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left; }

.fb-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(20, 112, 216, 0.22);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.fb-input:focus { border-color: var(--blue-main); box-shadow: 0 0 0 3px rgba(20, 112, 216, 0.12); }
.fb-input::placeholder { color: #9db2c9; }
select.fb-input { appearance: none; cursor: pointer; }
.fb-label { font-size: 13px; color: var(--text-gray); margin-top: 2px; }
.fb-textarea { resize: vertical; min-height: 96px; line-height: 1.7; }

.fb-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px dashed rgba(20, 112, 216, 0.4);
  border-radius: 12px;
  background: rgba(234, 244, 253, 0.5);
  cursor: pointer;
  transition: var(--transition);
}
.fb-file:hover { border-color: var(--blue-main); background: var(--blue-ice); }
.fb-file svg { width: 22px; height: 22px; flex-shrink: 0; }
.fb-file-text { font-size: 13px; color: var(--text-gray); }

.fb-file-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fb-file-list li {
  font-size: 12.5px;
  color: var(--blue-deep);
  background: var(--blue-ice);
  border-radius: 8px;
  padding: 6px 12px;
  word-break: break-all;
}

.fb-error {
  font-size: 13px;
  color: #d83931;
  background: #fdecea;
  border-radius: 10px;
  padding: 9px 12px;
  line-height: 1.6;
}

.fb-submit { width: 100%; padding: 13px 10px; font-size: 15px; }
.fb-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.fb-success { margin-top: 18px; text-align: center; }
.fb-success-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.fb-success-icon svg { width: 52px; height: 52px; }
.fb-success h4 { font-size: 19px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.fb-success .fb-done { margin-top: 16px; width: 100%; display: block; }

.fb-fallback { margin-top: 16px; font-size: 12.5px; color: var(--text-gray); }
.fb-fallback .fb-email-text { font-weight: 700; color: var(--blue-main); user-select: all; cursor: pointer; }

/* 蜜罐字段：视觉隐藏，机器人填写会被服务器丢弃 */
.fb-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   动态冲浪首屏（仅 index.html 使用）
   分层：AI 巨浪背景 → 压暗 → sea-fade 溶入 Footer →
        冲浪少年(板下白沫) → 板尾粒子 → 前景滚动浪 → 内容
   ============================================================ */

/* 第 0 层：AI 巨浪背景 + 极缓慢的推近 */
.surf-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/surf-wave.jpg") center 42% / cover no-repeat;
  animation: surfBgDrift 30s ease-in-out infinite alternate;
}
@keyframes surfBgDrift {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.10) translate(-14px, -10px); }
}

/* 第 1 层：读字压暗 */
.surf-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(11, 61, 145, 0.34) 0%,
    rgba(20, 112, 216, 0.10) 38%,
    rgba(8, 40, 96, 0.16) 68%,
    rgba(6, 32, 78, 0.45) 100%);
}

/* 第 1 层半：把照片海面渐变溶进 Footer 深蓝，消除断层 */
.surf-sea-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 50%,
    rgba(9, 54, 116, 0.42) 72%,
    #0b3d91 100%);
}

/* 第 2 层：冲浪组合（少年 + 板下白沫，同一容器保证同步） */
.surf-rider {
  position: absolute;
  z-index: 2;
  left: 4.5%;
  bottom: 108px;
  width: min(300px, 23vw);
  transform-origin: 50% 88%;
  animation: surfRide 5.2s ease-in-out infinite;
  pointer-events: none;
}
.surf-rider img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 14px 18px rgba(4, 30, 70, 0.45));
}
.surf-wake {
  position: absolute;
  left: 4%;
  bottom: -10px;
  width: 92%;
  animation: surfWakePulse 2.6s ease-in-out infinite;
}
@keyframes surfWakePulse {
  0%, 100% { opacity: 0.75; transform: scaleX(1); }
  50%      { opacity: 1;    transform: scaleX(1.06); }
}
@keyframes surfRide {
  0%   { transform: translate(0, 0)        rotate(-7deg); }
  30%  { transform: translate(26px, -14px) rotate(-10deg); }
  55%  { transform: translate(46px, -6px)  rotate(-5deg); }
  78%  { transform: translate(20px, 6px)   rotate(-3deg); }
  100% { transform: translate(0, 0)        rotate(-7deg); }
}

/* 第 2 层半：板尾浪花粒子画布 */
.surf-spray { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* 第 3 层：前景无缝滚动浪（盖住板底造纵深；底层颜色对齐 Footer） */
.surf-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 190px;
  z-index: 3;
  pointer-events: none;
}
.surf-waves svg { width: 100%; height: 100%; display: block; }
.surf-w1 { animation: surfWaveMove 22s linear infinite; }
.surf-w2 { animation: surfWaveMove 14s linear infinite; }
.surf-w3 { animation: surfWaveMove 9s  linear infinite; }
@keyframes surfWaveMove { from { transform: translateX(0); } to { transform: translateX(-1440px); } }

/* 内容层抬到浪之上 */
.hero-content { z-index: 4; }
.hero-title, .hero-subtitle { text-shadow: 0 2px 18px rgba(6, 40, 90, 0.55); }
.hero-badge { backdrop-filter: blur(6px); }

@media (prefers-reduced-motion: reduce) {
  .surf-bg, .surf-rider, .surf-wake, .surf-w1, .surf-w2, .surf-w3 { animation: none; }
}
@media (max-width: 720px) {
  /* 小屏卡片纵向堆叠，冲浪少年无处落脚，只保留动态海浪 */
  .surf-rider, .surf-spray { display: none; }
  .surf-waves { height: 120px; }
}
