/* =========================================================
   YEWU.ME — style.css
   由原 index.html 内联样式拆分而来，内容保持一致
   新增：项目演示视频播放器样式（.pc-video，兼容 PC / iOS / Android）
   ========================================================= */

:root {
  --bg-base: #060911;
  --bg-surface: rgba(13, 19, 33, 0.72);
  --bg-surface-hover: rgba(19, 28, 48, 0.88);
  --border: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(56, 189, 248, 0.38);
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --cyan: #38bdf8;
  --indigo: #818cf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --font-disp: "Space Grotesk", -apple-system, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::selection { background: rgba(56, 189, 248, 0.3); color: #fff; }
html { scrollbar-color: rgba(148, 163, 184, 0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, 0.45); }
:focus-visible { outline: 2px solid rgba(56, 189, 248, 0.55); outline-offset: 2px; }
#top, #projects, #practice, #coop, #about { scroll-margin-top: 96px; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 15%, #000 40%, transparent 100%);
}
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.42;
  pointer-events: none;
}
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #0284c7, transparent 70%); top: -140px; left: -100px; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, #4f46e5, transparent 70%); top: 120px; right: -120px; }
.orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, #059669, transparent 70%); bottom: -120px; left: 30%; opacity: 0.25; }
@keyframes drift1 { to { transform: translate(36px, 26px) scale(1.05); } }
@keyframes drift2 { to { transform: translate(-30px, 22px) scale(1.07); } }
@keyframes drift3 { to { transform: translate(24px, -20px) scale(1.06); } }
.orb-1 { animation: drift1 18s ease-in-out infinite alternate; }
.orb-2 { animation: drift2 22s ease-in-out infinite alternate; }
.orb-3 { animation: drift3 26s ease-in-out infinite alternate; }

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }

nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: 1240px;
  padding: 0 24px;
}
.nav-inner {
  background: rgba(9, 14, 26, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  font-family: var(--font-disp);
}
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.logo span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-sub);
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(148, 163, 184, 0.1); }
.nav-links a.active {
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.13);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.28);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: #34d399;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.28);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: absolute;
  top: calc(100% + 10px);
  left: 24px;
  right: 24px;
  background: rgba(9, 14, 26, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 60;
}
.nav-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.18s;
}
.drawer-item:hover, .drawer-item.active { background: rgba(56, 189, 248, 0.09); }
.drawer-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}
.drawer-item strong { display: block; font-size: 15px; }
.drawer-item .d { font-size: 12.5px; color: var(--text-sub); }
.drawer-item .arr { margin-left: auto; color: var(--cyan); font-weight: 700; font-size: 18px; }
.drawer-cta { margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(148, 163, 184, 0.18); }
.drawer-cta .btn { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

nav.scrolled .nav-inner {
  padding: 11px 20px;
  background: rgba(7, 11, 21, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.06);
}
a.logo { text-decoration: none; color: inherit; }

.hero { padding: 62px 0 26px; text-align: center; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 1.4px;
  font-family: var(--font-disp);
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #38bdf8 0%, #818cf8 48%, #34d399 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.hero-pill, .hero h1, .hero p, .hero-actions, .do-grid {
  animation: rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.hero-pill { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.18s; }
.hero-actions { animation-delay: 0.24s; }
.do-grid { animation-delay: 0.3s; }
.hero p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--text-sub);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.hero-actions .btn { padding: 11px 22px; font-size: 14px; border-radius: 12px; }

.do-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 44px auto 0;
  text-align: left;
}
.do-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 17px 18px;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.do-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.do-item .do-ico { font-size: 18px; display: block; margin-bottom: 8px; }
.do-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.do-item span { font-size: 12.5px; color: var(--text-sub); line-height: 1.65; display: block; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 64px 0 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .lead { font-size: 13.5px; color: var(--text-sub); max-width: 560px; margin-top: 6px; }
.eyebrow {
  display: block;
  font-family: var(--font-disp);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.9;
  margin-bottom: 8px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }

.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.11), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover .card-icon {
  transform: scale(1.07);
  box-shadow: 0 6px 22px -6px currentColor;
}
.ic-cyan { background: rgba(56, 189, 248, 0.14); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.ic-indigo { background: rgba(129, 140, 248, 0.14); color: var(--indigo); border: 1px solid rgba(129, 140, 248, 0.3); }
.ic-emerald { background: rgba(16, 185, 129, 0.14); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.ic-amber { background: rgba(245, 158, 11, 0.14); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.ic-rose { background: rgba(244, 63, 94, 0.14); color: var(--rose); border: 1px solid rgba(244, 63, 94, 0.3); }

.st {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.st-live { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.st-iter { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.st-internal { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.st-concept { background: rgba(129, 140, 248, 0.14); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.35); }

.pc-num {
  font-family: var(--font-disp);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.2px; }
.pc-oneliner {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.7;
}
.pc-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 16px 0 9px;
}
.pc-status {
  font-size: 12.5px;
  color: var(--text-sub);
  background: rgba(6, 9, 17, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  padding: 9px 12px;
  margin-top: 16px;
  line-height: 1.65;
}
.pc-status b { color: #e2e8f0; font-weight: 700; }

/* ===== 项目预览区：骨架占位图（无视频时的形态，与原 HTML 一致） ===== */
.pc-preview {
  --pp-a: #38bdf8;
  --pp-b: #818cf8;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(6, 9, 17, 0.96));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 132px;
  overflow: hidden;
  position: relative;
  margin-bottom: 4px;
}
.pp-bar { display: flex; gap: 5px; padding: 1px 3px; }
.pp-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); }
.pp-body { flex: 1; display: flex; gap: 8px; min-height: 0; }
.pp-side {
  width: 25%;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 7px;
}
.pp-side i { height: 5px; border-radius: 3px; background: rgba(148, 163, 184, 0.17); }
.pp-side i:first-child { background: rgba(56, 189, 248, 0.35); width: 70%; }
.pp-main {
  flex: 1;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.05);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-line { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--pp-a), transparent); opacity: 0.6; }
.pp-line.w-70 { width: 70%; }
.pp-line.w-90 { width: 90%; opacity: 0.4; }
.pp-line.w-50 { width: 50%; opacity: 0.3; }
.pp-block {
  margin-top: auto;
  height: 40%;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--pp-a), var(--pp-b));
  opacity: 0.24;
}

/* ===== 项目预览区：视频播放器形态（.pc-preview 的升级版） =====
   兼容要点：
   - iOS Safari：muted + playsinline 允许自动播放；低电量模式拦截时回退为点击播放
   - Android / 微信 X5 内核：x5-playsinline、x5-video-player-type=h5 防止全屏接管
   - 桌面端：悬停显示控件，点击画面暂停 / 继续
   - 视频缺失或加载失败：自动回退为上方同款骨架占位图，页面永不破图 */
.pc-video {
  --pp-a: #38bdf8;
  --pp-b: #818cf8;
  position: relative;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(6, 9, 17, 0.96));
  overflow: hidden;
  margin-bottom: 4px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.pv-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9，用 padding 兼容不支持 aspect-ratio 的老内核 */
  cursor: pointer;
  outline: none;
}
.pv-frame:focus-visible { box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.55); }

.pv-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  /* 注意：不做 opacity:0 → pv-ready 的隐藏/显示切换。
     iOS Safari 可能忽略 preload 迟迟不加载，若初始 opacity:0 视频会一直不可见；
     现在视频元素始终可见（封面/首帧一到即显示），骨架占位图垫在下面兜底。 */
}

/* 加载中 / 失败时垫在视频下面的骨架占位图 */
.pv-fallback {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s ease;
}
.pc-video.pv-ready .pv-fallback { opacity: 0; pointer-events: none; }
.pc-video.pv-failed .pv-el,
.pc-video.pv-failed .pv-ui,
.pc-video.pv-failed .pv-big,
.pc-video.pv-failed .pv-progress { display: none; }
.pc-video.pv-failed .pv-fallback { opacity: 1; }
.pc-video.pv-failed .pv-frame { cursor: default; }

/* 中央播放按钮：自动播放被拦截或用户暂停时出现 */
.pv-big {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background: radial-gradient(circle at 50% 50%, rgba(6, 9, 17, 0.4), transparent 62%);
}
.pc-video.pv-needs-gesture .pv-big,
.pc-video.pv-paused .pv-big { opacity: 1; pointer-events: auto; }
.pv-big-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.92), rgba(79, 70, 229, 0.92));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0 0 0 3px;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pv-big-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.5);
}
.pv-big-btn svg { width: 20px; height: 20px; display: block; }

/* 右下角控件（声音开关） */
.pv-ui {
  position: absolute;
  right: 10px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pc-video.pv-ready .pv-ui { opacity: 1; }
.pv-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(6, 9, 17, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
}
.pv-btn:hover { color: #fff; border-color: rgba(56, 189, 248, 0.55); transform: translateY(-1px); }
.pv-btn svg { width: 15px; height: 15px; display: block; }
.pv-btn .pv-ic-on { display: none; }
.pv-btn.is-on .pv-ic-muted { display: none; }
.pv-btn.is-on .pv-ic-on { display: block; }

/* 底部进度条 */
.pv-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 4;
  background: rgba(148, 163, 184, 0.18);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.pc-video.pv-ready .pv-progress { opacity: 1; }
.pv-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pp-a), var(--pp-b));
  border-radius: 0 2px 2px 0;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #cbd5e1;
}
/* 用绝对定位小标记代替 flex 行布局：
   flex 会把「文字 + strong + 文字」拆成并排的列，移动端窄屏下会折行错乱 */
.feature-list li { position: relative; padding-left: 16px; line-height: 1.65; }
.feature-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 800;
}
.feature-list strong { color: #f1f5f9; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-sub);
}

.btn-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.75);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  font-family: inherit;
  touch-action: manipulation;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 150%; }
.btn:hover { background: rgba(51, 65, 85, 0.9); border-color: rgba(148, 163, 184, 0.4); }
.btn-glow {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #fff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.32);
}
.btn-glow:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
  border-color: rgba(56, 189, 248, 0.6);
}
.btn-emerald {
  background: linear-gradient(135deg, #059669, #0d9488);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #fff;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.28);
}
.btn-emerald:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; }

.social-kit {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(56, 189, 248, 0.25);
}
.social-kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.social-kit-head strong {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #e2e8f0;
}
.social-kit-head .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  white-space: nowrap;
}
.social-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.sp-item {
  text-align: center;
  padding: 9px 6px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  transition: border-color 0.18s, background 0.18s;
}
.sp-item:hover { border-color: rgba(56, 189, 248, 0.3); background: rgba(19, 28, 48, 0.85); }
.sp-item .sp-ico { display: block; font-size: 15px; margin-bottom: 3px; }
.social-kit ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 12px;
}
/* 同上：避免 flex 把 strong 和文字拆列 */
.social-kit ul li { position: relative; padding-left: 12px; line-height: 1.6; }
.social-kit ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rose);
  font-weight: 800;
}

.internal-panel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(56, 189, 248, 0.28);
}
body.mode-internal .internal-panel { display: block; }
.endpoint-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 9, 17, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9px;
  padding: 7px 11px;
  margin-bottom: 10px;
  font-size: 12px;
  gap: 8px;
}
.endpoint-bar code {
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  flex: 1;
  text-align: right;
  word-break: break-all;
}

.cap-list {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: #cbd5e1;
}
.cap-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.cap-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}

/* ===== 可切换的开发案例 ===== */
.case-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.case-tabs::-webkit-scrollbar { height: 6px; }
.case-tabs::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 4px; }
.case-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
}
.case-tab:hover { border-color: rgba(56, 189, 248, 0.3); color: #fff; }
.case-tab.active {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.case-tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.case-panel { display: none; }
.case-panel.active {
  display: block;
  animation: rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.case-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.case-panel-head .cp-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.case-panel-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}
.case-panel-head p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 680px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 4px;
}
.case-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.case-step {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 15px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.case-step:hover { border-color: rgba(56, 189, 248, 0.3); background: rgba(19, 28, 48, 0.7); }
.case-step .n {
  font-family: var(--font-disp);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 6px;
}
.case-step strong { display: block; font-size: 14px; margin-bottom: 5px; }
.case-step p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }
.case-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 2px solid rgba(148, 163, 184, 0.25);
  line-height: 1.7;
}

.coop-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; align-items: start; }
.coop-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ctype {
  text-align: left;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 9px;
  touch-action: manipulation;
}
.ctype:hover { border-color: rgba(56, 189, 248, 0.32); background: rgba(19, 28, 48, 0.8); }
.ctype .ico { font-size: 15px; }
.ctype .txt { font-size: 13px; font-weight: 600; }
.ctype.active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.ctype.active .txt { color: #fff; }

.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 6px;
  font-weight: 600;
}
.field > span em { color: var(--rose); font-style: normal; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  background: rgba(6, 9, 17, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
textarea { min-height: 108px; resize: vertical; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.coop-result {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.06);
}
.coop-result h4 { font-size: 13px; color: var(--cyan); margin-bottom: 9px; }
.coop-result pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 12px;
}
.coop-result .hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.65; }
.copy-state { color: #34d399; font-weight: 700; }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.about-text p { font-size: 14px; color: #cbd5e1; line-height: 1.85; margin-bottom: 13px; }
.about-text p strong { color: #fff; }
.about-block {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 15px 17px;
  margin-bottom: 12px;
}
.about-block h4 {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  font-family: var(--font-disp);
}
.about-block p, .about-block li { font-size: 13px; color: var(--text-sub); line-height: 1.75; }
.about-block p + p { margin-top: 7px; }
.about-block ul { list-style: none; display: grid; gap: 6px; }
.about-block li::before { content: "· "; color: var(--cyan); font-weight: 800; }
.about-block a { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed rgba(56, 189, 248, 0.4); }
.about-block a:hover { border-bottom-style: solid; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal-mask.open { display: grid; }
.modal {
  max-width: 720px;
  width: 100%;
  background: #0d1424;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.modal-close {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  touch-action: manipulation;
}
.modal-close:hover { background: rgba(51, 65, 85, 0.9); }
.modal-body h4 { color: var(--cyan); margin: 18px 0 8px; font-size: 14px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p, .modal-body li { font-size: 14px; color: #cbd5e1; line-height: 1.8; }
.modal-body ul { padding-left: 18px; display: grid; gap: 6px; }
.modal-body .meta {
  font-size: 12.5px;
  color: var(--text-muted);
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  padding-left: 11px;
  margin: 12px 0;
  line-height: 1.75;
}
.modal-mask.open .modal { animation: modalIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

.reveal { opacity: 0; }
.reveal.in {
  opacity: 1;
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  animation-delay: var(--rd, 0s);
}

footer {
  margin-top: 64px;
  padding: 26px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-sub);
}
.contact-tag {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
a.contact-tag { text-decoration: none; transition: background 0.2s, box-shadow 0.2s; }
a.contact-tag:hover { background: rgba(56, 189, 248, 0.2); box-shadow: 0 0 16px rgba(56, 189, 248, 0.25); }
.foot-mode {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  touch-action: manipulation;
}
.foot-mode:hover { color: var(--cyan); border-color: rgba(56, 189, 248, 0.4); }
body.mode-internal .foot-mode { color: #34d399; border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.1); }

@media (max-width: 1100px) {
  .nav-links { font-size: 13px; }
  .nav-links a { padding: 8px 10px; }
}

@media (max-width: 960px) {
  .span-6, .span-4 { grid-column: span 12; }
  .do-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-grid.cols-2 { grid-template-columns: 1fr; }
  .coop-grid, .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .pc-wide-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px 56px; }
  nav { padding: 0 12px; margin-top: 10px; top: 10px; }
  .nav-inner { padding: 12px 14px; gap: 10px; }
  .nav-drawer { left: 12px; right: 12px; top: calc(100% + 8px); }
  .logo { font-size: 17px; }
  .nav-cta { display: none; }

  .hero { padding: 34px 0 10px; }
  .hero-pill { font-size: 10px; padding: 5px 11px; margin-bottom: 16px; letter-spacing: 0.8px; }
  .hero h1 { font-size: clamp(22px, 6.6vw, 28px); line-height: 1.4; letter-spacing: 0; margin-bottom: 14px; }
  .hero p { font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .do-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .do-item { padding: 15px 16px; }

  .section-head { margin: 40px 0 16px; }
  .section-head h2 { font-size: 19px; }
  .section-head .lead { font-size: 12.5px; line-height: 1.7; }

  .bento-grid { gap: 12px; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .card h3 { font-size: 17px; }
  .pc-oneliner { font-size: 13px; }
  .feature-list { font-size: 12.5px; gap: 6px; }
  .btn { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
  .pc-preview { height: 112px; }

  /* 视频播放器（移动端） */
  .pc-video { border-radius: 12px; }
  .pv-big-btn { width: 48px; height: 48px; }
  .pv-big-btn svg { width: 17px; height: 17px; }
  .pv-btn { width: 30px; height: 30px; }
  .pv-btn svg { width: 14px; height: 14px; }
  .pv-ui { right: 8px; bottom: 12px; }

  .social-platforms { grid-template-columns: repeat(3, 1fr); }

  .case-tabs { gap: 6px; }
  .case-tab { padding: 7px 11px; font-size: 12px; }
  .case-panel-head h4 { font-size: 15px; }
  .case-panel-head p { font-size: 12.5px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid.cols-2 { grid-template-columns: 1fr; }
  .coop-types { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* 弹窗改为底部抽屉式，更贴合手机操作习惯 */
  .modal-mask { padding: 12px; align-items: end; }
  .modal {
    max-height: 86vh;
    max-height: 86dvh;
    padding: 22px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }
  .modal-mask.open .modal { animation: sheetUp 0.32s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .modal-body p, .modal-body li { font-size: 13px; }

  footer { padding: 18px 16px; flex-direction: column; align-items: flex-start; }
}

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

@media (hover: none) {
  /* 触屏设备没有悬停：控件常驻显示 */
  .pc-video.pv-ready .pv-ui { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; }
}
