/* IMA Skills Landing — ImaClaw Design System Tokens */
:root {
  /* ima/ 品牌色阶 (rose) */
  --ima-50:#FFF0F1;--ima-100:#FFE5E7;--ima-200:#FEC3CA;--ima-300:#FD9BA6;
  --ima-400:#FB657C;--ima-500:#F33454;--ima-600:#CB1A41;--ima-700:#950E30;
  --primary-ima:var(--ima-400);
  /* bg/ 页面背景层次 */
  --bg-dark-1:#1A1A1A;--bg-dark-2:#27272A;--bg-dark-3:#3F3F46;--bg-dark-4:#52525B;
  /* card/ 透明叠层 */
  --card-light-1:rgba(255,255,255,0.08);--card-light-2:rgba(255,255,255,0.12);
  --card-light-3:rgba(255,255,255,0.18);--card-light-4:rgba(255,255,255,0.48);
  --card-light-5:rgba(255,255,255,0.70);--card-light-6:rgba(255,255,255,1.00);
  --card-dark-1:rgba(26,26,26,0.08);--card-dark-2:rgba(26,26,26,0.12);
  --card-dark-3:rgba(26,26,26,0.18);--card-dark-4:rgba(26,26,26,0.26);
  --card-dark-5:rgba(26,26,26,0.60);
  --card-theme-1:rgba(69,12,13,0.70);--card-theme-2:rgba(132,6,8,0.50);
  --card-theme-3:rgba(163,5,8,0.50);--card-theme-4:rgba(209,16,19,0.50);
  --card-gray-1:#52525B;--card-gray-2:#3F3F46;--card-gray-3:#52525B;
  /* text/ 文字色 */
  --text-gray-1:#FCFCFC;--text-gray-2:#F4F4F5;--text-gray-3:#E1E1E2;
  --text-gray-4:#A1A1AA;--text-gray-5:#7A7A83;--text-gray-6:#3F3F46;
  --text-alpha-1:rgba(255,255,255,0.08);--text-alpha-2:rgba(255,255,255,0.12);
  --text-alpha-3:rgba(255,255,255,0.18);--text-alpha-4:rgba(255,255,255,0.36);
  --text-alpha-5:rgba(255,255,255,0.60);--text-alpha-6:rgba(255,255,255,0.70);
  /* 中性色 */
  --neutral-gray-50:#FCFCFC;--neutral-gray-100:#F4F4F5;--neutral-gray-200:#E1E1E2;
  --neutral-gray-300:#D0D0D4;--neutral-gray-400:#A1A1AA;--neutral-gray-500:#7A7A83;
  --neutral-gray-600:#52525B;--neutral-gray-700:#3F3F46;
  --neutral-gray-800:#27272A;--neutral-gray-900:#1D1D20;
  --neutral-white:#FFFFFF;--neutral-black:#1A1A1A;
  /* 功能色 */
  --func-lime-300:#BAF15B;--func-green-400:#30D96E;--func-green-200:#BBF7D0;
  --func-red-400:#FF6565;--func-red-50:#FEF1F1;
  --func-yellow-500:#D9A508;--func-yellow-400:#FAC905;--func-yellow-200:#FEF08B;--func-yellow-50:#FEFCE7;
  --func-cyan-400:#10B7D1;--func-cyan-100:#A5F6FD;--func-cyan-50:#EBFEFF;
  --func-blue-400:#2BBAF7;--func-teal-400:#2BD4BD;--func-emerald-400:#36D399;--func-green-900:#0E3F22;
  /* 字体规格 */
  --text-large-title: 26px; --lh-large-title: 32px;
  --text-title1: 22px; --lh-title1: 26px;
  --text-title2: 17px; --lh-title2: 22px;
  --text-title3: 15px; --lh-title3: 22px;
  --text-headline: 14px; --lh-headline: 22px;
  --text-body: 14px; --lh-body: 20px;
  --text-callout: 12px; --lh-callout: 18px;
  /* 梯度与语意化 */
  --gray-910:#111111;--gray-920:#161616;
  --bg-dark-5:var(--gray-910);--card-dark-6:var(--gray-920);
  --primary:var(--ima-400);--on-primary:var(--neutral-black);
  --primary-container:var(--ima-700);--on-primary-container:var(--ima-100);
  --background:var(--bg-dark-5);--on-bg:var(--text-gray-1);
  --surface:var(--bg-dark-5);--on-surface:var(--text-gray-1);--on-surface-variant:var(--text-gray-4);
  --outline:var(--neutral-gray-600);--outline-variant:var(--card-light-1);
  --sc-lowest:#0A0A0A;--sc-low:var(--card-dark-6);--sc:#1C1C1C;--sc-high:#242424;--sc-highest:#2E2E2E;
  --red-alpha-10:rgba(251,101,124,.10);
  --alpha-dark-1:rgba(26,26,26,0.08);--alpha-dark-2:rgba(26,26,26,0.12);
  /* 本页用：圆角、过渡、字体、阴影 */
  --font-sans: 'Poppins', SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif, system-ui;
  --font-sans-zh: 'Poppins', SF Pro SC, PingFang SC, Helvetica Neue, Helvetica, Arial, sans-serif, system-ui;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
  --radius: 12px; --radius-lg: 16px;
  --transition: 0.15s ease;
  --shadow-card: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="zh"], html[lang="zh-CN"] { font-family: var(--font-sans-zh); }

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-title2);
  color: var(--on-surface);
  text-decoration: none;
  justify-self: start;
}

.nav-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-brand-img {
  display: block;
  width: 200px;
  height: auto;
  object-fit: contain;
}

/* 导航居中：tabs 在整个 nav 内左右居中；每个 tab 为胶囊，红色表示当前选中 */
.nav-tabs-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.nav-tabs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-tabs-pill .sort-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-tabs-pill .sort-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.nav-tabs-pill .sort-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-weight: 600;
}

.nav-tabs-pill .sort-tab.active:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 语言切换：ImaClaw 胶囊按钮（地球图标 + 当前语言） */
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  margin-left: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  justify-self: end;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.lang-pill i {
  font-size: 14px;
  opacity: 0.9;
}

.lang-pill span {
  line-height: 1;
}

/* Hero — 参考 imaclaw 首页：大标题 + 副标题层级、背景光晕 */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vh, 108px) 0 clamp(48px, 8vh, 80px);
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* 全屏背景视频 */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* 深色蒙层 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hero 吉祥物：与 imaclaw 一致，180×180 canvas，视频去黑底或 fallback 为 logo */
.hero-mascot-wrap {
  display: none;
}

.hero-mascot-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-mascot-canvas {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(46px, 8.25vw, 79px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 0 0 12px;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  background-clip: unset;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 860px;
  margin: 0 auto 24px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Hero 向下滚动引导 */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  z-index: 2;
  animation: hero-scroll-float 2s ease-in-out infinite;
}

@keyframes hero-scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.hero-scroll-mouse {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 13px;
  position: relative;
}

.hero-scroll-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: hero-wheel-scroll 2s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hero CTA：与设计系统 btn-fancy / btn-fancy-neutral 一致（Adopt ImaClaw、Learn More 大小与交互） */
.btn-fancy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 57px;
  padding: 0 44px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 500;
  line-height: 57px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--primary);
  color: var(--card-theme-1);
  box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.btn-fancy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,.24), 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn-fancy-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 57px;
  padding: 0 44px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 500;
  line-height: 57px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.btn-fancy-neutral:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: none;
}

.btn-md {
  height: 34px;
  padding: 0 16px;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
}

.btn-primary,
.btn-default {
  background: var(--primary);
  color: var(--card-theme-1);
  box-shadow: 0 1px 2px rgba(0,0,0,.16);
}

.btn-primary:hover,
.btn-default:hover {
  background: var(--ima-300);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--sc-low);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
}

.btn-secondary:hover {
  background: var(--sc);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--func-red-50);
  color: var(--func-red-400);
  border: 1px solid color-mix(in srgb, var(--func-red-400) 35%, transparent);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--func-red-400) 20%, transparent);
  color: var(--func-red-400);
}

/* Sections */
section {
  padding: 64px 0;
}

.section-title {
  font-size: var(--text-title1);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.section-subtitle {
  color: var(--on-surface-variant);
  font-size: var(--text-body);
  margin: 0 0 40px;
  max-width: 560px;
}

/* Features — 设计系统 Feature Card 四栏小卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

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

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

@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* eagle-card：hover 上浮 + 红色光晕 */
.eagle-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--outline-variant) 55%, var(--background));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eagle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eagle-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eagle-card:hover::before {
  opacity: 1;
}

.eagle-card > * {
  position: relative;
  z-index: 1;
}

.card-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--sc-low);
  color: var(--icon-color, var(--primary));
  border: 1px solid var(--outline-variant);
  line-height: 1;
  flex-shrink: 0;
}

.feature-card.feature-card-ds {
  background: var(--sc-low);
  border-radius: 20px;
  padding: 28px 20px;
  min-height: 200px;
}

.feature-card-ds-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
  margin: 0 0 4px;
}

.feature-card-ds-desc {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.55;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* skill-card-in：与设计系统 Motion 一致，0.35s，卡片错开入场（50ms 间隔） */
@keyframes skill-card-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 技能卡片 — 与 imaclaw Installed Skills 规则一致（配色、描边、hover、布局）；顶部 16:9 媒体区 */
.skill-card {
  animation: skill-card-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
  position: relative;
  background: var(--sc-low);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--outline-variant) 55%, var(--background));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 3px -1.5px rgba(23,23,23,.04), 0 1px 1px -.5px rgba(23,23,23,.04), 0 0 0 1px rgba(23,23,23,.08);
}

/* 16:9 媒体展示区 */
.skill-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  background: var(--sc-high);
}

.skill-card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.skill-card-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.skill-card-media-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--sc-high);
  transition: opacity 0.25s ease;
}

.skill-card-media-placeholder .skill-card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skill-card-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 有视频的卡片：默认显示播放按钮 */
.skill-card[data-cover-video] .skill-card-media-play {
  opacity: 1;
}

/* hover 时隐藏播放按钮（视频开始播了） */
.skill-card[data-cover-video]:hover .skill-card-media-play {
  opacity: 0;
}

/* 无视频的卡片 hover 时也不显示 */
.skill-card:not([data-cover-video]) .skill-card-media:hover .skill-card-media-play {
  opacity: 0;
}

.skill-card-media-play i {
  margin-left: 3px;
}

.skill-card-media-tags {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-card-media-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--func-blue-400) 20%, rgba(0,0,0,0.3));
  color: var(--func-blue-400);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.skill-card-media-tag--recommended {
  background: color-mix(in srgb, var(--func-emerald-400) 20%, rgba(0,0,0,0.3));
  color: var(--func-emerald-400);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.skill-card-media-tag--recommended i {
  font-size: 10px;
}

.skill-card-media-tag:empty {
  display: none;
}

.skill-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
}

.skill-card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray-4);
  font-size: 18px;
}

.skill-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.skill-card-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.176px;
  line-height: 24px;
  color: var(--text-gray-1);
  margin: 0;
}

.skill-card-desc {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.084px;
  line-height: 20px;
  color: var(--text-gray-4);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-card-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-version {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  background: color-mix(in srgb, var(--func-blue-400) 12%, transparent);
  color: var(--func-blue-400);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--func-blue-400) 20%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 推荐：绿色角标，与「版本」区分，文字在深色背景上可见 */
.skill-recommended {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  color: var(--func-emerald-400);
  background: color-mix(in srgb, var(--func-emerald-400) 16%, var(--sc-low));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--func-emerald-400) 35%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.skill-models {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-gray-4);
  font-family: var(--font-mono);
  line-height: 1.4;
}

/* 操作区：按钮同一排，文字垂直居中 */
.skill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.skill-actions .skill-copy-btn,
.skill-actions .skill-repo-link,
.skill-actions .skill-comingsoon-btn,
.skill-actions .skill-repo-link.skill-tutorial-link,
.skill-actions .skill-repo-link.skill-case-link {
  flex-shrink: 0;
  line-height: 1;
}

/* 主操作：使用设计系统 btn-tonal 样式 */
.skill-copy-btn {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: var(--sc-high);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.skill-actions .skill-copy-btn {
  width: auto;
  min-width: 100px;
}

.skill-copy-btn:hover {
  background: var(--sc-highest);
}

.skill-copy-btn.skill-copy-done {
  background: color-mix(in srgb, var(--func-green-400) 12%, transparent);
  color: var(--func-green-400);
  border-color: color-mix(in srgb, var(--func-green-400) 24%, transparent);
  cursor: default;
}

.skill-repo-link {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--text-gray-4);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.skill-comingsoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  color: var(--func-yellow-500);
  background: color-mix(in srgb, var(--func-yellow-400) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--func-yellow-400) 22%, transparent);
  box-sizing: border-box;
}

.skill-comingsoon-btn {
  font-family: inherit;
  cursor: pointer;
}

.skill-comingsoon-btn:hover {
  background: color-mix(in srgb, var(--func-yellow-400) 20%, transparent);
  border-color: color-mix(in srgb, var(--func-yellow-400) 60%, transparent);
}

.skill-case-link {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary);
}

.skill-case-link:hover {
  border-color: var(--primary);
  color: var(--ima-300);
}

.skill-tutorial-link {
  border-color: color-mix(in srgb, var(--func-teal-400) 35%, transparent);
  color: var(--func-teal-400);
}

.skill-tutorial-link:hover {
  border-color: var(--func-teal-400);
  color: var(--func-cyan-100);
}


.skill-copy-btn-clawhub {
  background: transparent;
  color: var(--on-surface-variant);
  border-color: var(--outline-variant);
}

.skill-copy-btn-clawhub:hover {
  background: var(--sc);
  color: var(--on-surface);
  border-color: var(--outline);
}

.skill-repo-link {
  background: transparent;
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
}

.skill-repo-link:hover {
  background: var(--sc);
  color: var(--text-gray-1);
  border-color: var(--outline);
}

.skill-repo-url-wrap {
  margin: 0;
  font-size: 12px;
}

.skill-repo-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-gray-4);
  text-decoration: none;
  word-break: break-all;
}

.skill-repo-url:hover {
  color: var(--primary);
}

body.modal-open {
  overflow: hidden;
}

.comingsoon-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.comingsoon-modal.open {
  display: block;
}

.comingsoon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.comingsoon-modal-panel {
  position: relative;
  width: min(92vw, 760px);
  max-height: 92vh;
  margin: 4vh auto;
  background: var(--neutral-white);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.comingsoon-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--neutral-gray-900);
  background: var(--alpha-dark-1);
}

.comingsoon-close:hover {
  background: var(--alpha-dark-2);
}

.comingsoon-frame {
  padding: 18px;
  border: 10px solid var(--neutral-gray-900);
  border-radius: 14px;
  margin: 14px;
  text-align: center;
}

.comingsoon-frame h3 {
  margin: 0 0 14px;
  font-size: var(--text-title2);
  color: var(--neutral-gray-900);
}

.comingsoon-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}

/* 纯 HTML 技能列表：供 fetch/readability 提取，不依赖 JS */
.skills-list-static {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--sc-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  font-size: var(--text-body);
}

.skills-list-static-title {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.skills-list-static ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--on-surface-variant);
  line-height: 1.8;
}

.skills-list-static li {
  margin-bottom: 6px;
}

.skills-list-static a {
  color: var(--primary);
  text-decoration: none;
}

.skills-list-static a:hover {
  text-decoration: underline;
}

.skills-list-static code {
  font-family: var(--font-mono);
  font-size: var(--text-callout);
  background: var(--sc-high);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.skills-hint {
  margin-top: 24px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: var(--radius);
  font-size: var(--text-body);
  color: var(--on-surface-variant);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Tutorials */
.tutorials-eyebrow {
  display: none;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

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

@media (max-width: 560px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sc-low);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.tutorial-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--sc-high);
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.tutorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-card:hover .tutorial-card-img {
  transform: scale(1.04);
}

.tutorial-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tutorial-card:hover .tutorial-card-play {
  background: color-mix(in srgb, var(--func-emerald-400) 80%, rgba(0,0,0,0.4));
  transform: translate(-50%, -50%) scale(1.1);
}

.tutorial-card-play i {
  margin-left: 3px;
}

.tutorial-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
  line-height: 1.5;
  margin: 0;
  padding: 0 16px 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutorials-footer {
  text-align: center;
  margin-top: 32px;
}

.tutorials-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--func-red-400);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--func-red-400) 50%, transparent);
  border-radius: 99px;
  padding: 8px 24px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.tutorials-more-link:hover {
  background: color-mix(in srgb, var(--func-red-400) 10%, transparent);
  opacity: 1;
}

/* How it works */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-step {
  background: var(--sc-low);
  border: 1px solid color-mix(in srgb, var(--outline-variant) 55%, var(--background));
  border-radius: var(--radius-lg);
  padding: 24px;
}

.how-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-body);
  border-radius: 10px;
  margin-bottom: 14px;
}

.how-step h3 {
  font-size: var(--text-title2);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--on-surface);
}

.how-step p {
  font-size: var(--text-body);
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.55;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 72px 24px;
  background: linear-gradient(180deg, var(--sc-low) 0%, var(--background) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
}

.cta-mascot-wrap {
  position: relative;
  margin-bottom: 16px;
}

.cta-block h2 {
  font-size: var(--text-title1);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--on-surface);
}

.cta-block p {
  color: var(--on-surface-variant);
  margin: 0 0 24px;
  font-size: var(--text-body);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--outline-variant);
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-weight: 600;
  color: var(--on-surface-variant);
  font-size: var(--text-body);
}

.footer-links {
  color: var(--on-surface-variant);
  font-size: var(--text-callout);
}

.footer-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
}

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

.active-link {
  color: var(--on-surface) !important;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

/* Case management */
.cases-manage-page {
  min-height: 100vh;
}

.manage-main {
  padding-top: 40px;
}

.manage-header h1 {
  margin: 0 0 8px;
  font-size: clamp(var(--text-title1), 3vw, var(--text-large-title));
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.manage-header p {
  margin: 0;
  max-width: 860px;
  color: var(--on-surface-variant);
}

.manage-showcase-toolbar {
  margin-top: 20px;
}

.manage-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--sc-low);
}

.manage-tab {
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: var(--text-body);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.manage-tab:hover {
  color: var(--on-surface);
  border-color: var(--on-surface-variant);
}

.manage-tab.active {
  color: var(--card-theme-1);
  border-color: var(--primary);
  background: var(--primary);
}

.manage-showcase-grid-wrap {
  margin-top: 16px;
}

.manage-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.skill-showcase-card {
  background: var(--sc-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.skill-showcase-card h3 {
  margin: 0;
  font-size: var(--text-title2);
}

.skill-showcase-desc {
  margin: 8px 0 0;
  color: var(--on-surface-variant);
  font-size: var(--text-body);
  line-height: 1.55;
}

.skill-showcase-meta {
  margin: 10px 0 0;
  color: var(--on-surface-variant);
  font-size: var(--text-callout);
  font-family: var(--font-mono);
}

.skill-showcase-case-title {
  margin: 14px 0 8px;
  font-size: var(--text-body);
  color: var(--on-surface);
}

.skill-case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-case-item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  font-size: var(--text-callout);
  padding: 6px 10px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.skill-case-item:hover {
  border-color: var(--primary);
  color: var(--ima-300);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}

.skill-case-empty {
  color: var(--on-surface-variant);
  font-size: var(--text-callout);
}

.manage-toolbar {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--sc-low);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.toolbar-group.grow {
  flex: 1;
  min-width: 260px;
}

.toolbar-group label {
  font-size: var(--text-callout);
  color: var(--on-surface-variant);
}

.toolbar-group input,
.toolbar-group select,
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--outline-variant);
  background: var(--sc);
  color: var(--on-surface);
  font-family: inherit;
  font-size: var(--text-body);
  padding: 10px 12px;
}

.toolbar-group input:focus,
.toolbar-group select:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-actions .btn {
  min-height: 38px;
}

.import-label {
  user-select: none;
}

#import-file {
  display: none;
}

.manage-stats {
  color: var(--on-surface-variant);
  font-size: var(--text-body);
}

.manage-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: start;
}

.manage-panel {
  background: var(--sc-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.manage-panel h2 {
  margin: 0 0 14px;
  font-size: var(--text-title2);
  color: var(--on-surface);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: var(--text-callout);
  color: var(--on-surface-variant);
}

.form-row textarea {
  resize: vertical;
}

.field-error {
  min-height: 16px;
  margin: 0;
  font-size: var(--text-callout);
  color: var(--func-red-400);
}

.form-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.cases-empty {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed var(--outline-variant);
  color: var(--on-surface-variant);
  margin-bottom: 10px;
}

.cases-table-wrap {
  overflow-x: auto;
}

.cases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
}

.cases-table th,
.cases-table td {
  border-bottom: 1px solid var(--outline-variant);
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
}

.cases-table th {
  color: var(--on-surface-variant);
  font-size: var(--text-callout);
  font-weight: 600;
}

.case-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--on-surface);
}

.case-summary {
  color: var(--on-surface-variant);
  font-size: var(--text-callout);
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--text-callout);
  border: 1px solid;
}

.status-draft {
  color: var(--func-yellow-400);
  background: color-mix(in srgb, var(--func-yellow-400) 10%, transparent);
  border-color: color-mix(in srgb, var(--func-yellow-400) 35%, transparent);
}

.status-published {
  color: var(--func-emerald-400);
  background: color-mix(in srgb, var(--func-emerald-400) 10%, transparent);
  border-color: color-mix(in srgb, var(--func-emerald-400) 35%, transparent);
}

.row-actions {
  display: flex;
  gap: 6px;
}

.row-actions button {
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  border-radius: 8px;
  font-size: var(--text-callout);
  padding: 4px 9px;
  cursor: pointer;
}

.row-actions button:hover {
  color: var(--on-surface);
  border-color: var(--outline);
}

.row-actions button.danger {
  color: var(--func-red-400);
  border-color: color-mix(in srgb, var(--func-red-400) 35%, transparent);
}

.row-actions button.danger:hover {
  background: color-mix(in srgb, var(--func-red-400) 12%, transparent);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 64px;
  }
  section {
    padding: 48px 0;
  }
  .nav-tabs-wrap {
    display: none;
  }
  .manage-main {
    padding-top: 22px;
  }
  .manage-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions .btn {
    width: 100%;
  }
  .cases-table th:nth-child(4),
  .cases-table td:nth-child(4) {
    display: none;
  }
}

/* ===== Demo Video Section ===== */
.demo-video-section {
  background: var(--sc-lowest, #0A0A0A);
}
.demo-video-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary, #7C6DFA);
  margin-bottom: 12px;
  text-align: center;
}
.demo-video-title {
  margin-bottom: 8px;
}
.demo-video-subtitle {
  margin-bottom: 40px;
}
.demo-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 24px 64px rgba(0,0,0,0.6);
}
.demo-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* ===== /Demo Video Section ===== */
