/* =====================================================================
   BitFun-ADE 鸿蒙官网 - 完全按 Figma 原稿复刻
   Source: Figma node 7:2 (BitFun ADE · Desktop · 1512)
   ===================================================================== */

/* ---------- 设计令牌（来自 Figma JSON） ---------- */
:root {
  /* 背景渐变（linear + radial 光斑） */
  --bg-grad-1: rgb(247, 251, 255);
  --bg-grad-2: rgb(255, 255, 255);
  --bg-grad-3: rgb(237, 247, 255);

  --glow-blue:   rgba(10, 89, 247, 0.08);
  --glow-purple: rgba(137, 100, 255, 0.22);
  --glow-cyan:   rgba(47, 205, 255, 0.27);
  --glow-pink:   rgba(255, 119, 171, 0.22);

  /* Hero 区光斑 */
  --hero-glow-fire:   rgba(255, 107, 53, 0.13);
  --hero-glow-purple: rgba(158, 98, 255, 0.21);
  --hero-glow-cyan:   rgba(40, 198, 255, 0.25);

  /* 文字 */
  --ink-900: rgb(23, 32, 51);     /* 主文字 */
  --ink-700: rgb(49, 58, 77);     /* 标题次级 */
  --ink-500: rgb(102, 112, 133);  /* 描述文字 */
  --ink-400: rgb(138, 148, 163);  /* eyebrow / 副标 */
  --ink-300: rgb(140, 150, 171);  /* 导航链接 */
  --ink-600: rgb(79, 87, 115);    /* footer 文字 */
  --ink-grey: rgb(58, 72, 86);    /* 下载区标题 */
  --ink-grey-2: rgb(84, 100, 116); /* DOWNLOAD eyebrow */
  --ink-muted: rgb(160, 170, 184);/* 版权 */

  /* 品牌色 */
  --brand-blue:   rgb(10, 89, 247);
  --brand-fire:   rgb(255, 107, 53);
  --brand-purple: rgb(158, 98, 255);
  --brand-cyan:   rgb(8, 145, 178);
  --brand-green:  rgb(5, 150, 105);

  /* 状态色 */
  --ok-bg:    rgb(236, 253, 245);
  --ok-fg:    rgb(5, 150, 105);
  --warn-bg:  rgb(255, 251, 235);
  --warn-fg:  rgb(217, 119, 6);
  --err-bg:   rgb(254, 242, 242);
  --err-fg:   rgb(220, 38, 38);

  /* 边框 / 底色 */
  --line:        rgb(230, 237, 245);
  --line-soft:   rgb(241, 245, 249);
  --chip-bg:     rgb(245, 246, 248);
  --surface:     rgb(255, 255, 255);
  --ink-50:      rgb(51, 65, 85);
  --row-num:     rgb(176, 185, 198);

  /* 下载区 */
  --dl-surface:  rgb(253, 253, 253);
  --dl-line:     rgb(216, 216, 216);
  --dl-btn:      rgb(0, 0, 0);

  /* 圆角（Figma） */
  --r-2: 2px;
  --r-7: 7.33px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-16: 16px;
  --r-20: 20px;
  --r-22: 22px;
  --r-24: 24px;
  --r-100: 100px;
  --r-999: 999px;

  /* 间距 */
  --sp-8: 8px;
  --sp-10: 10px;
  --sp-12: 12px;
  --sp-14: 14px;
  --sp-16: 16px;
  --sp-18: 18px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-30: 30px;
  --sp-32: 32px;
  --sp-36: 36px;
  --sp-38: 38px;
  --sp-40: 40px;
  --sp-42: 42px;
  --sp-48: 48px;
  --sp-53: 53px;
  --sp-54: 54px;
  --sp-64: 64px;
  --sp-72: 72px;
  --sp-80: 80px;
  --sp-88: 88px;
  --sp-96: 96px;
  --sp-132: 132px;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font-sans);
  background: #F5FAFF;
  color: var(--ink-900);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 容器 ---------- */
.page-frame {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section-pad   { padding: 0 var(--sp-48); }
.section-pad-2 { padding: 0 var(--sp-48); }

/* =====================================================================
   01 / Navigation  (1512 x 88, pad 72 横向, SPACE_BETWEEN)
   ===================================================================== */
.nav {
  height: 88px;
  padding: 0 var(--sp-48);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(230, 237, 245, 0.6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
}
.nav-brand .logo {
  width: 32px; height: 32px;
  border-radius: var(--r-7);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(10, 89, 247, 0.18);
  object-fit: cover;
  display: inline-block;
}
.nav-brand .name {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: var(--sp-32);
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-300);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink-900); }
.nav-links a.active { font-weight: 700; }

/* 汉堡按钮（移动端显示） */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-10);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.nav-toggle .nt-bar {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform .25s, opacity .25s;
}
.nav.open .nav-toggle .nt-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle .nt-bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle .nt-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 产品下拉菜单 ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown-trigger::after {
  content: ''; display: inline-block; margin-left: 4px;
  width: 5px; height: 5px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.25s ease; vertical-align: middle;
}
.nav-dropdown:hover > .nav-dropdown-trigger::after,
.nav-dropdown.open > .nav-dropdown-trigger::after { transform: rotate(225deg); margin-top: 2px; }
.nav-caret { display: none; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-10);
  transition: background .2s;
}
.nav-dropdown-item:hover {
  background: rgb(247, 251, 255);
}
.nav-dropdown-item .nd-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-dropdown-item .nd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-item .nd-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}
.nav-dropdown-item .nd-desc {
  font-size: 12px;
  color: var(--ink-500);
}
.nav-dropdown-item[data-product="innovate"]:hover .nd-name { color: var(--p-innovate); }
.nav-dropdown-item[data-product="harmony"]:hover .nd-name  { color: var(--p-harmony); }
.nav-dropdown-item[data-product="ascend"]:hover .nd-name   { color: var(--p-ascend); }

/* =====================================================================
   Body 容器
   ===================================================================== */
.body { display: flex; flex-direction: column; flex: 1; }

/* =====================================================================
   Section 1 - Hero  (1512 x 1091, pad 132/48/80/48)
   ===================================================================== */
.hero {
  padding: var(--sp-132) var(--sp-48) var(--sp-80);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 25%, var(--hero-glow-fire) 0%, transparent 35%),
    radial-gradient(circle at 85% 15%, var(--hero-glow-purple) 0%, transparent 40%),
    radial-gradient(circle at 70% 55%, var(--hero-glow-cyan) 0%, transparent 45%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Hero 容器 */
.hero-container {
  width: 100%;
  max-width: 1560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* logo 圆角方形 96x96 r22 */
.hero-logo {
  width: 96px; height: 96px;
  border-radius: var(--r-22);
  background: var(--surface);
  box-shadow: 0 10px 36px rgba(10, 89, 247, 0.14);
  object-fit: cover;
  margin-bottom: 26px;
}

/* Heading 1 */
.hero-title {
  font-size: 92.8px;
  font-weight: 800;
  letter-spacing: -1.86px;
  color: var(--ink-900);
  line-height: 1.02;
  text-align: center;
}

/* 副标 */
.hero-sub {
  font-size: 16.8px;
  font-weight: 600;
  letter-spacing: 2.35px;
  color: var(--ink-400);
  margin-top: 16px;
  text-align: center;
}

/* Tagline 渐变三色 */
.hero-tagline {
  font-size: 25.6px;
  font-weight: 700;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--brand-fire) 0%, var(--brand-blue) 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

/* 描述 */
.hero-desc {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-500);
  margin-top: 18px;
  max-width: 720px;
  text-align: center;
  line-height: 1.5;
}

/* 按钮组 */
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
}
.btn {
  width: 160px; height: 50px;
  border-radius: var(--r-999);
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: rgb(21, 24, 29);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(21, 24, 29, 0.25); }
.btn-secondary {
  background: var(--surface);
  color: rgb(31, 41, 55);
  border: 1px solid rgb(193, 202, 215);
}
.btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-ghost {
  background: var(--surface);
  color: rgb(31, 41, 55);
  border: 1px solid rgb(193, 202, 215);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* 分隔彩虹条 */
.hero-divider {
  width: 200px; height: 3px;
  border-radius: var(--r-2);
  background: linear-gradient(90deg, var(--brand-fire), var(--brand-blue), var(--brand-cyan));
  margin: 60px auto 0;
}

/* Overview 区 */
.overview {
  width: 100%;
  max-width: 1560px;
  margin-top: 136px;
  padding: 0 48px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.overview-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.96px;
  color: var(--ink-400);
  text-transform: uppercase;
}
.overview-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink-900);
  text-align: center;
}

/* 三张 Scenario Cards */
.scenario-cards {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  width: 100%;
  justify-content: center;
}
.scenario-card {
  width: 460px;
  min-height: 220px;
  border-radius: var(--r-24);
  background: var(--surface);
  border: 1px solid;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, box-shadow .25s;
}
.scenario-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10, 89, 247, 0.08); }
.scenario-card.code    { border-color: rgb(198, 217, 246); }
.scenario-card.work    { border-color: rgb(215, 204, 251); }
.scenario-card.assist  { border-color: rgb(255, 208, 184); }
.scenario-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.scenario-card.code   .scenario-eyebrow { color: var(--brand-blue); }
.scenario-card.work   .scenario-eyebrow { color: var(--brand-purple); }
.scenario-card.assist .scenario-eyebrow { color: var(--brand-fire); }
.scenario-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
}
.scenario-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.5;
}

/* =====================================================================
   Section 2 - 功能区  (1512 x 3548, pad 88/48/96/48)
   ===================================================================== */
.features {
  padding: var(--sp-88) var(--sp-48) var(--sp-96);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-container {
  width: 100%;
  max-width: 1560px;
}

/* Mode switch Tab */
.mode-switch {
  width: 356px; height: 56px;
  border-radius: var(--r-999);
  background: var(--surface);
  border: 1px solid rgb(219, 228, 240);
  padding: 5px;
  display: flex;
  gap: 4px;
  margin: 0 auto 48px;
}
.mode-tab {
  flex: 1;
  height: 44px;
  border-radius: var(--r-999);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15.2px;
  font-weight: 700;
  color: var(--ink-900);
  transition: background .2s, color .2s;
}
.mode-tab.active {
  background: var(--brand-blue);
  color: #fff;
}

/* Tab 面板 */
.tab-panel { width: 100%; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* 单元容器 */
.feature-row {
  display: grid;
  width: 100%;
  margin-bottom: 0;
}
.feature-row.split-1-1 { grid-template-columns: 1fr 1fr; }
.feature-row.split-2   { grid-template-columns: 676px 676px; justify-content: center; gap: 0; }
.feature-row.center-col { display: flex; flex-direction: column; align-items: center; gap: 36px; }

/* 标题块 */
.feature-title {
  font-size: 43.2px;
  font-weight: 700;
  letter-spacing: -1.3px;
  color: var(--ink-900);
  line-height: 1.02;
}
.feature-title.lg { font-size: 44.8px; letter-spacing: -1.34px; }

/* 描述块 */
.feature-desc {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.4;
  margin-top: 16px;
  max-width: 700px;
}

/* chip / tag 行 */
.chip-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.chip {
  border-radius: var(--r-100);
  padding: 6px 14px;
  font-size: 12.2px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--surface);
  border: 1px solid var(--line);
}
.chip.sm { padding: 4px 12px; }
.chip-row.tight { gap: 8px; }

/* 左侧内��块 */
.feature-content { display: flex; flex-direction: column; gap: 53px; padding-right: 40px; }
.feature-content.tight { gap: 0; }
.feature-content.center { align-items: center; text-align: center; }

/* 子特性条目（带左侧色条） */
.feature-item-row { display: flex; gap: 12px; align-items: center; }
.feature-item-bar { width: 4px; border-radius: 2px; align-self: stretch; background: var(--brand-blue); }
.feature-item-text { display: flex; flex-direction: column; gap: 12px; }
.feature-item-title { font-size: 27px; font-weight: 700; color: var(--ink-700); }
.feature-item-desc  { font-size: 20px; font-weight: 400; color: var(--ink-500); }

/* 右侧 mockup 框 */
.mock-frame {
  border-radius: var(--r-12);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mock-frame.placeholder { background: rgb(238, 238, 238); min-height: 360px; }

/* 鸿蒙应用开发 mockup（代码编辑器样式） */
.code-mock {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  padding: 18px 20px;
  font-family: var(--font-mono);
}
.code-line {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.code-line:last-child { border-bottom: none; }
.code-line.warn { background: var(--warn-bg); }
.code-line.err  { background: var(--err-bg); }
.code-num { width: 16px; font-size: 11.5px; font-weight: 700; color: var(--row-num); flex-shrink: 0; }
.code-text { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--ink-50); font-family: var(--font-mono); }
.code-badge {
  width: 26px; height: 20px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.3px; font-weight: 800;
}
.code-badge.ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.code-badge.warn { background: var(--warn-bg); color: var(--warn-fg); width: 20px; }
.code-badge.err  { background: var(--err-bg);  color: var(--err-fg);  width: 20px; }

/* 代码审核专家 - 左侧渐变 mock 容器 */
.review-mock {
  border-radius: var(--r-12);
  background: linear-gradient(135deg, rgb(232, 240, 254), rgb(219, 231, 253));
  border: 1px solid var(--line);
  padding: 16px;
}
.review-mock-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  padding: 16px 20px;
}

/* 黑灯工厂 - checklist */
.factory-mock {
  border-radius: var(--r-12);
  background: linear-gradient(135deg, rgb(234, 251, 242), rgb(220, 246, 232));
  border: 1px solid var(--line);
  padding: 24px 28px;
}
.factory-mock-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.check-item { display: flex; align-items: center; gap: 12px; }
.check-dot {
  width: 10px; height: 10px;
  border-radius: 5px;
  flex-shrink: 0;
}
.check-dot.done   { background: var(--brand-green); }
.check-dot.active { background: var(--brand-blue); }
.check-dot.pend   { background: var(--line); }
.check-label { font-size: 14.1px; font-weight: 600; }
.check-label.done   { color: var(--ink-900); }
.check-label.active { color: var(--brand-blue); }
.check-label.pend   { color: var(--ink-400); }
.check-mark {
  margin-left: auto;
  font-size: 12.5px; font-weight: 800;
  color: var(--brand-green);
}

/* 多设备协同 - 左侧设备卡 */
.devices-mock {
  border-radius: var(--r-12);
  background: linear-gradient(135deg, rgb(224, 247, 250), rgb(208, 240, 247));
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  position: relative;
  min-height: 368px;
  justify-content: center;
}
.device-pair { display: flex; align-items: center; gap: 16px; }
.device-card {
  width: 82px;
  background: var(--surface);
  border: 2px solid var(--surface);
  border-radius: var(--r-14);
  padding: 14px 18px;
  display: flex; flex-direction: column;
  gap: 6px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.12);
}
.device-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-12);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.device-name { font-size: 10.9px; font-weight: 700; color: rgb(14, 116, 144); }
.device-link {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, rgba(14,116,144,0), rgba(14,116,144,0.35), rgba(14,116,144,0));
  position: relative;
}
.device-link::after {
  content: '';
  position: absolute; left: 50%; top: -1px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--brand-cyan);
  transform: translateX(-50%);
}
.device-ring {
  position: absolute;
  width: 305px; height: 305px;
  border-radius: 50%;
  border: 1px solid rgb(14, 116, 144, 0.4);
  opacity: .4;
  pointer-events: none;
}

/* 多设备协同 - 右侧特性卡 */
.feature-list { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; }
.feature-card {
  border-radius: var(--r-10);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.feature-card-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-8);
  background: rgb(224, 247, 250);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.feature-card-body { display: flex; flex-direction: column; gap: 2px; }
.feature-card-title { font-size: 13.4px; font-weight: 700; color: var(--ink-900); }
.feature-card-desc   { font-size: 12.2px; font-weight: 400; color: var(--ink-500); }

/* 子标题（碰一碰） */
.feature-subtitle {
  font-size: 27.2px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.1;
}

/* 大标题（多设备协同） */
.feature-title-xl {
  font-size: 44.8px;
  font-weight: 700;
  letter-spacing: -1.34px;
  color: var(--ink-900);
  line-height: 1.02;
}

/* 单元间距 */
.feature-block { padding-top: 42px; }
.feature-block + .feature-block { border-top: 1px solid var(--line); }
.feature-block.last { padding-bottom: 0; }

/* QT 迁移专家 iframe 容器（按 Figma: 1040x748 r12） */
.qt-frame {
  width: 100%;
  max-width: 1040px;
  border-radius: var(--r-12);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  height: 748px;
}
.qt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 办公模式 mockup ---------- */
.work-mock {
  border-radius: var(--r-12);
  background: linear-gradient(135deg, rgb(243, 233, 253), rgb(229, 213, 251));
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-mock-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  padding: 24px 28px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-sans);
}
/* 文档 mockup */
.work-doc-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.work-doc-dot { width: 12px; height: 12px; border-radius: 50%; }
.work-doc-title { margin-left: 8px; font-size: 13px; color: var(--ink-400); font-weight: 600; }
.work-doc-body { padding: 8px 4px; flex: 1; }
.work-doc-h { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.work-doc-p { font-size: 13px; color: var(--ink-700); line-height: 1.7; }
.work-doc-p.dim { color: var(--ink-400); font-style: italic; }
.work-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--brand-purple);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 图表 mockup */
.chart-mock {
  flex: 1;
  display: flex; align-items: flex-end; gap: 14px;
  padding: 16px 8px 8px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 200px;
}
.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  transition: height .8s ease;
  min-height: 12px;
}
.chart-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-500); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- 助理模式 mockup ---------- */
.assist-mock {
  border-radius: var(--r-12);
  background: linear-gradient(135deg, rgb(255, 237, 224), rgb(255, 221, 199));
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assist-mock-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  padding: 24px 28px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assist-mock-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-400);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.assist-pref {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-10);
  background: rgb(255, 248, 244);
  border: 1px solid rgb(255, 224, 208);
}
.assist-pref-key {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-fire);
  min-width: 72px;
}
.assist-pref-val {
  font-size: 13px;
  color: var(--ink-900);
  font-weight: 500;
}
/* 任务列表 */
.assist-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.assist-task-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.assist-task-check.done { background: var(--brand-fire); border-color: var(--brand-fire); color: #fff; }
.assist-task-check.active { border-color: var(--brand-fire); }
.assist-task-check.active::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-fire);
  animation: pulse 1.4s ease-in-out infinite;
}
.assist-task-check.pend { background: var(--chip-bg); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.assist-task-text { font-size: 14px; color: var(--ink-900); }
.assist-task-text.done { color: var(--ink-400); text-decoration: line-through; }
.assist-task-text.pend { color: var(--ink-400); }

/* =====================================================================
   Section 3 - 下载  (1512 x 453, pad 64/88/64/88, gap 38)
   ===================================================================== */
.download {
  padding: var(--sp-64) var(--sp-48);
  display: flex; flex-direction: column;
  align-items: center;
  gap: var(--sp-38);
}
.download-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.96px;
  color: var(--ink-grey-2);
  text-transform: uppercase;
}
.download-title-block { display: flex; flex-direction: column; gap: 17px; align-items: center; }
.download-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--ink-grey);
  text-align: center;
}
.download-sub {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-500);
  text-align: center;
}
.download-grid {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 1560px;
  justify-content: center;
}
.dl-card {
  flex: 1;
  max-width: 430px;
  border-radius: var(--r-20);
  background: var(--dl-surface);
  border: 1px solid var(--dl-line);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-card-head { display: flex; flex-direction: column; gap: 4px; }
.dl-card-name { font-size: 22px; font-weight: 700; color: var(--ink-grey); }
.dl-card-sub  { font-size: 13px; font-weight: 400; color: var(--ink-300); }
.dl-card-action {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.dl-card-ver  { font-size: 12px; color: var(--ink-300); }
.dl-btn {
  border-radius: var(--r-999);
  background: var(--dl-btn);
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center; gap: 6px;
  transition: transform .15s;
}
.dl-btn:hover { transform: translateY(-1px); }

/* =====================================================================
   Footer  (1512 x 354, pad 64/48/32/48)
   ===================================================================== */
.footer {
  padding: var(--sp-64) var(--sp-48) var(--sp-32);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 451px 1fr;
  gap: 64px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
.footer-brand .logo {
  width: 46px; height: 46px;
  border-radius: var(--r-10);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  object-fit: cover;
}
.footer-brand .name { font-size: 18.4px; font-weight: 800; color: var(--ink-900); }
.footer-brand .footer-tag  { font-size: 14.1px; color: var(--ink-400); }
.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 64px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--ink-600); }
.footer-col p  { font-size: 12px; color: var(--ink-600); line-height: 1.4; }
.footer-col a  { font-size: 12px; color: var(--ink-600); line-height: 1.4; transition: color .15s; }
.footer-col a:hover { color: var(--ink-900); }
.footer-bottom {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-bottom p { font-size: 12.8px; color: var(--ink-muted); }
.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), var(--brand-fire), transparent);
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1280px) {
  .scenario-cards { flex-wrap: wrap; }
  .scenario-card { width: 100%; max-width: 460px; }
  .feature-row.split-2 { grid-template-columns: 1fr; gap: 24px; }
  .feature-content { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav { padding: 0 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(10, 89, 247, 0.08);
    padding: 8px 24px 16px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > li { padding: 4px 0; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 12px;
    min-width: 0;
  }
  .hero { padding: 64px 24px 48px; }
  .hero-title { font-size: 56px; }
  .overview { padding: 0 24px 48px; margin-top: 64px; }
  .overview-title { font-size: 28px; }
  .features { padding: 48px 24px; }
  .feature-title { font-size: 32px; }
  .feature-title-xl { font-size: 34px; }
  .download { padding: 48px 24px; }
  .download-grid { flex-direction: column; }
  .footer { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .hero-title { font-size: 40px; }
  .hero-tagline { font-size: 18px; }
  .scenario-cards { gap: 12px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn { width: 100%; }
}

/* 大屏自适应：宽屏下放大内容容器，避免两侧大面积留白 */
@media (min-width: 1600px) {
  .hero-container,
  .overview,
  .features-container,
  .download-grid,
  .footer-top,
  .ob-best-grid,
  .ob-news-list,
  .ob-comm-grid,
  .calendar-shell {
    max-width: 1416px;
  }
}
@media (min-width: 1920px) {
  .hero-container,
  .overview,
  .features-container,
  .download-grid,
  .footer-top,
  .ob-best-grid,
  .ob-news-list,
  .ob-comm-grid,
  .calendar-shell {
    max-width: 1760px;
  }
  .hero-title { font-size: 92px; }
  .hero-sub { font-size: 22px; }
  .hero-tagline { font-size: 30px; }
  .hero-desc { font-size: 17px; }
}
@media (min-width: 2400px) {
  .hero-container,
  .overview,
  .features-container,
  .download-grid,
  .footer-top,
  .ob-best-grid,
  .ob-news-list,
  .ob-comm-grid,
  .calendar-shell {
    max-width: 2000px;
  }
}

/* =====================================================================
   OpenBitFun 首页专属样式
   ===================================================================== */

/* ---------- 三款产品配色 ---------- */
:root {
  --p-innovate:       rgb(255, 107, 53);   /* 创新 - 火橙 */
  --p-innovate-soft:  rgb(255, 237, 224);
  --p-harmony:        rgb(10, 89, 247);    /* 鸿蒙 - 鸿蒙蓝 */
  --p-harmony-soft:   rgb(232, 240, 254);
  --p-ascend:         rgb(220, 38, 38);    /* 昇腾 - 红 */
  --p-ascend-soft:    rgb(254, 242, 242);
  --p-innovate-grad:  linear-gradient(135deg, rgb(255, 237, 224), rgb(255, 221, 199));
  --p-harmony-grad:   linear-gradient(135deg, rgb(232, 240, 254), rgb(219, 231, 253));
  --p-ascend-grad:    linear-gradient(135deg, rgb(254, 242, 242), rgb(252, 226, 226));
}

/* ---------- OpenBitFun Hero（沿用原 .hero 样式，覆盖文字） ---------- */
.obf-hero .hero-tagline {
  background: linear-gradient(90deg, var(--p-innovate) 0%, var(--p-harmony) 50%, var(--p-ascend) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 产品 Overview 三卡 ---------- */
.product-cards {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  width: 100%;
  justify-content: center;
}
.product-card {
  width: 460px;
  min-height: 280px;
  border-radius: var(--r-24);
  background: var(--surface);
  border: 1px solid;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10, 89, 247, 0.08); }
.product-card.innovate { border-color: rgb(255, 208, 184); }
.product-card.harmony  { border-color: rgb(198, 217, 246); }
.product-card.ascend   { border-color: rgb(254, 202, 202); }
.product-card .pc-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.product-card.innovate .pc-eyebrow { color: var(--p-innovate); }
.product-card.harmony  .pc-eyebrow { color: var(--p-harmony); }
.product-card.ascend   .pc-eyebrow { color: var(--p-ascend); }
.product-card .pc-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.15;
}
.product-card .pc-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.5;
}
.product-card .pc-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.6;
}
.product-card .pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.product-card .pc-meta .chip {
  font-size: 11.5px;
  padding: 4px 10px;
}

/* "了解更多"链接 */
.product-card .pc-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 700;
  transition: gap .2s, color .2s;
  align-self: flex-start;
}
.product-card.innovate .pc-more { color: var(--p-innovate); }
.product-card.harmony  .pc-more { color: var(--p-harmony); }
.product-card.ascend   .pc-more { color: var(--p-ascend); }
.product-card .pc-more:hover { gap: 10px; letter-spacing: 0.3px; }

/* ---------- 产品切换 Tab（大号） ---------- */
.product-switch {
  width: 100%;
  max-width: 720px;
  height: 60px;
  border-radius: var(--r-999);
  background: var(--surface);
  border: 1px solid rgb(219, 228, 240);
  padding: 6px;
  display: flex;
  gap: 4px;
  margin: 0 auto 56px;
}
.product-tab {
  flex: 1;
  height: 48px;
  border-radius: var(--r-999);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  transition: background .25s, color .25s;
  text-align: center;
}
.product-tab .pt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.product-tab[data-product="innovate"] .pt-dot { background: var(--p-innovate); }
.product-tab[data-product="harmony"]  .pt-dot { background: var(--p-harmony); }
.product-tab[data-product="ascend"]   .pt-dot { background: var(--p-ascend); }
.product-tab.active[data-product="innovate"] { background: var(--p-innovate); color: #fff; }
.product-tab.active[data-product="harmony"]  { background: var(--p-harmony); color: #fff; }
.product-tab.active[data-product="ascend"]   { background: var(--p-ascend); color: #fff; }
.product-tab.active .pt-dot { background: #fff !important; }

/* ---------- 产品面板 ---------- */
.product-pane { display: none; }
.product-pane.active { display: block; }

/* 产品头部（标语 + 定位 + 目标客户 + 关键词） */
.product-head {
  max-width: 900px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.product-head .ph-tagline {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.product-head .ph-positioning {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 760px;
}
.product-head .ph-meta-row {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.product-head .ph-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.product-head .ph-meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink-400);
  text-transform: uppercase;
}
.product-head .ph-meta-val {
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}

/* ---------- 通用 mockup 框（适配三款产品） ---------- */
.demo-mock {
  border-radius: var(--r-12);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-mock.innovate { background: var(--p-innovate-grad); }
.demo-mock.harmony  { background: var(--p-harmony-grad); }
.demo-mock.ascend   { background: var(--p-ascend-grad); }
.demo-mock-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-12);
  padding: 24px 28px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- 创新：通用工作台 mockup ---------- */
.workbench-mock .wb-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.wb-head .wb-dot { width: 12px; height: 12px; border-radius: 50%; }
.wb-head .wb-title { margin-left: 8px; font-size: 13px; color: var(--ink-400); font-weight: 600; }
.wb-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; }
.wb-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.wb-row .wb-stage {
  width: 90px; flex-shrink: 0;
  font-size: 12px; font-weight: 700;
  color: var(--p-innovate);
}
.wb-row .wb-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: var(--chip-bg); position: relative; overflow: hidden;
}
.wb-row .wb-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  background: var(--p-innovate);
}
.wb-row[data-progress="100"] .wb-bar::after { width: 100%; }
.wb-row[data-progress="80"]  .wb-bar::after { width: 80%; }
.wb-row[data-progress="55"]  .wb-bar::after { width: 55%; }
.wb-row[data-progress="30"]  .wb-bar::after { width: 30%; background: var(--ink-400); }
.wb-row[data-progress="10"]  .wb-bar::after { width: 10%; background: var(--ink-400); }
.wb-row .wb-status {
  width: 40px; flex-shrink: 0; text-align: right;
  font-size: 12px; font-weight: 700;
}
.wb-row.done .wb-status { color: var(--brand-green); }
.wb-row.active .wb-status { color: var(--p-innovate); }
.wb-row.pend .wb-status { color: var(--ink-400); }

/* ---------- 昇腾：算子优化流程 mockup ---------- */
.opflow-mock .of-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.of-head .of-dot { width: 12px; height: 12px; border-radius: 50%; }
.of-head .of-title { margin-left: 8px; font-size: 13px; color: var(--ink-400); font-weight: 600; }
.of-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 8px 4px; }
.of-step {
  display: flex; align-items: center; gap: 12px;
}
.of-step .of-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.of-step.done .of-num { background: var(--p-ascend); color: #fff; }
.of-step.active .of-num { background: var(--p-ascend); color: #fff; }
.of-step.pend .of-num { background: var(--chip-bg); color: var(--ink-400); }
.of-step .of-text { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.of-step.pend .of-text { color: var(--ink-400); }
.of-step .of-code {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-500); margin-left: auto;
  background: var(--chip-bg); padding: 2px 8px; border-radius: 4px;
}
.of-perf {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.of-perf-label { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.of-perf-val { font-size: 20px; font-weight: 800; color: var(--p-ascend); }
.of-perf-val .of-arrow { font-size: 13px; color: var(--brand-green); margin-left: 6px; }

/* ---------- 鸿蒙 mockup（沿用原 devices-mock 风格，简化版） ---------- */
.harmony-mock .hm-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.hm-head .hm-dot { width: 12px; height: 12px; border-radius: 50%; }
.hm-head .hm-title { margin-left: 8px; font-size: 13px; color: var(--ink-400); font-weight: 600; }
.hm-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 8px 4px; }
.hm-skill {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-10);
  background: rgb(244, 248, 255); border: 1px solid rgb(219, 228, 240);
}
.hm-skill .hm-icon {
  width: 32px; height: 32px; border-radius: var(--r-8);
  background: var(--p-harmony-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.hm-skill .hm-name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.hm-skill .hm-desc { font-size: 12px; color: var(--ink-500); }
.hm-skill .hm-tag {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: var(--p-harmony); background: var(--p-harmony-soft);
  padding: 2px 8px; border-radius: 4px;
}

/* ---------- OpenBitFun 下载区 ---------- */
.obf-download-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.96px;
  color: var(--ink-grey-2); text-transform: uppercase;
}

/* 响应式补充 */
@media (max-width: 1280px) {
  .product-cards { flex-wrap: wrap; }
  .product-card { width: 100%; max-width: 460px; }
}
@media (max-width: 860px) {
  .product-switch { height: auto; flex-direction: column; gap: 4px; padding: 4px; }
  .product-tab { height: 44px; }
  .product-head .ph-tagline { font-size: 24px; }
  .product-head .ph-positioning { font-size: 15px; }
}

/* =====================================================================
   OpenBitFun 开发者日历
   ===================================================================== */
.dev-calendar {
  width: 100%;
  max-width: 1416px;
  margin: 80px auto 0;
  padding: 0 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 头部 */
.dc-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dc-title-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; justify-content: center; }
.dc-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink-900);
  line-height: 1.15;
}
.dc-month {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--p-harmony-soft);
  padding: 4px 14px;
  border-radius: var(--r-100);
}
.dc-sub {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 680px;
}

/* Tab 切换 */
.dc-tabs {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.dc-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  border-radius: var(--r-10) var(--r-10) 0 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.dc-tab:hover { color: var(--ink-900); background: rgb(247, 251, 255); }
.dc-tab.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

/* 主体：左日历 + 右事件 */
.dc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* 月历 */
.dc-cal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-16);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dc-cal-grid .dc-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-400);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dc-cal-grid .dc-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  border-radius: var(--r-10);
  background: rgb(249, 251, 253);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.dc-cal-grid .dc-day.outside { color: var(--ink-400); opacity: 0.45; background: transparent; }
.dc-cal-grid .dc-day.today {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 800;
}
.dc-cal-grid .dc-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.dc-cal-grid .dc-day.has-event.today::after { background: #fff; }
.dc-cal-grid .dc-day.has-event.meeting::after { background: var(--brand-blue); }
.dc-cal-grid .dc-day.has-event.release::after  { background: var(--brand-green); }
.dc-cal-grid .dc-day.has-event.event::after    { background: var(--brand-fire); }
.dc-cal-grid .dc-day:hover:not(.outside) {
  border-color: var(--brand-blue);
  cursor: pointer;
}
.dc-cal-grid .dc-day.selected {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.dc-cal-grid .dc-day.selected.has-event::after { background: #fff; }
.dc-cal-grid .dc-day.has-event { cursor: pointer; }

/* 月份切换按钮 */
.dc-month-btn {
  background: none; border: none; cursor: pointer;
  font-size: 18px; font-weight: 700; color: var(--ink-500);
  padding: 0 6px; line-height: 1; vertical-align: middle;
  transition: color .15s;
}
.dc-month-btn:hover { color: var(--brand-blue); }
#dc-month-text { vertical-align: middle; }

/* 图例 */
.dc-cal-legend { display: flex; gap: 18px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.dc-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-500); }
.dc-legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* 事件列表 */
.dc-events {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
}
.dc-events::-webkit-scrollbar { width: 6px; }
.dc-events::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.dc-event {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-12);
  background: rgb(251, 253, 255);
  border: 1px solid var(--line-soft);
  transition: background .2s, border-color .2s, transform .15s;
}
.dc-event:hover {
  background: var(--surface);
  border-color: var(--brand-blue);
  transform: translateX(2px);
}
.dc-event.highlighted {
  background: rgb(237, 246, 255);
  border-color: var(--brand-blue);
}
.dc-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border-right: 1px solid var(--line-soft);
  padding-right: 14px;
}
.dc-event-day { font-size: 22px; font-weight: 800; color: var(--ink-900); line-height: 1; }
.dc-event-month { font-size: 11px; font-weight: 600; color: var(--ink-400); margin-top: 2px; }
.dc-event-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dc-event-title { font-size: 14px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-event-meta { font-size: 12px; color: var(--ink-500); }
.dc-event-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-100);
  flex-shrink: 0;
}
.dc-event-tag.meeting { color: var(--brand-blue); background: var(--p-harmony-soft); }
.dc-event-tag.release  { color: var(--brand-green); background: rgb(236, 253, 245); }
.dc-event-tag.event    { color: var(--brand-fire); background: rgb(255, 248, 244); }

/* 底部 */
.dc-foot { display: flex; justify-content: center; padding-top: 4px; }
.dc-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  transition: gap .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dc-more-link:hover { gap: 10px; }

/* 响应式 */
@media (max-width: 1080px) {
  .dc-body { grid-template-columns: 1fr; }
  .dc-events { max-height: 420px; }
}
@media (max-width: 860px) {
  .dev-calendar { padding: 0 24px 48px; margin-top: 48px; }
  .dc-title { font-size: 26px; }
  .dc-event { grid-template-columns: 56px 1fr; }
  .dc-event-tag { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* ============================================================
   OpenBitFun 通用模块：优秀实践 / 参与贡献 / 活动与资讯 / 友好社区
   参考 CANN 官网设计语言，与现有浅色主题 + 三品牌色保持一致
   ============================================================ */
:root {
  --lav:   rgb(240, 238, 251);   /* 浅紫背景 */
  --mint:  rgb(233, 245, 238);   /* 浅绿背景 */
  --peach: rgb(251, 240, 230);   /* 浅橙背景 */
  --blue:  rgb(234, 242, 252);  /* 浅蓝背景 */
  --rose:  rgb(252, 238, 238);   /* 浅红背景 */
  --ob-soft-bg: rgb(247, 250, 255);
}

/* 通用 Section 容器 */
.ob-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 48px;
  position: relative;
}
.ob-section-alt {
  background: var(--ob-soft-bg);
  border-radius: 32px;
  margin: 32px auto;
  max-width: 1232px;
}
.ob-section-alt:first-of-type { margin-top: 0; }

/* Section 头部 */
.ob-sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  text-align: center;
}
.ob-sec-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-400);
}
.ob-sec-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.ob-sec-sub {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 680px;
}

/* 通用卡片网格（4 列） */
.ob-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ob-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.ob-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
  border-color: transparent;
}
.ob-card-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.ob-card-ico svg { width: 28px; height: 28px; }
.ob-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
}
.ob-card-desc {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.65;
  flex: 1;
}
.ob-card-tag {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

/* 参与贡献卡片：编号样式 */
.ob-card.contribute { gap: 12px; }
.ob-card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.ob-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: 4px;
  transition: gap 0.2s ease;
}
.ob-card.contribute:hover .ob-card-link { color: var(--ink-900); }

/* 活动与资讯：列表式布局 */
.ob-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ob-news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ob-news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}
.ob-news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.ob-news-day {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
}
.ob-news-ym {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 6px;
}
.ob-news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-news-cat {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid;
  background: #fff;
}
.ob-news-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
}
.ob-news-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* 友好社区：社区卡片 */
.ob-comm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ob-comm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ob-comm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
}
.ob-comm-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.ob-comm-ico svg { width: 30px; height: 30px; }
.ob-comm-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
}
.ob-comm-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.6;
  flex: 1;
}
.ob-comm-stat {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--blue);
  padding: 4px 12px;
  border-radius: 8px;
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 1080px) {
  .ob-cards { grid-template-columns: repeat(2, 1fr); }
  .ob-comm-grid { grid-template-columns: repeat(2, 1fr); }
  .ob-section { padding: 64px 32px; }
}
@media (max-width: 680px) {
  .ob-cards,
  .ob-comm-grid,
  .ob-news-grid { grid-template-columns: 1fr; }
  .ob-section { padding: 48px 20px; }
  .ob-sec-title { font-size: 28px; }
  .ob-sec-sub { font-size: 14px; }
  .ob-news-item { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 20px; }
}

/* ===== Playground 交互式体验 ===== */
.playground {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 0 0;
}
.pg-head {
  text-align: center;
  margin-bottom: 40px;
}
.pg-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--brand-fire);
  margin-bottom: 12px;
}
.pg-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.pg-sub {
  font-size: 16px;
  color: var(--ink-500);
  margin-top: 12px;
  line-height: 1.5;
}

/* Panel — 浅色 IDE 风格 */
.pg-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 24px rgba(20,20,40,.06);
  overflow: hidden;
  min-height: 680px;
  display: flex;
}

/* ---- 左侧菜单栏 ---- */
.pg-side {
  width: 240px;
  background: #f4f4f5;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pg-side-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px 2px;
}
.pg-side-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.pg-side-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.pg-side-nav {
  padding: 0 8px;
  margin-top: 4px;
}
.pg-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 1px;
  color: var(--ink-900);
  transition: background .12s;
}
.pg-nav-item:hover {
  background: #e9e9eb;
}
.pg-nav-item.active {
  background: #e2e2e6;
  font-weight: 600;
}
.pg-nav-plus {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background: var(--ink-900);
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
}
.pg-nav-ico {
  width: 18px;
  height: 18px;
  color: var(--ink-500);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.pg-nav-ico svg {
  width: 16px;
  height: 16px;
}
.pg-side-ws {
  flex: 1;
  overflow-y: auto;
  padding-top: 8px;
}
.pg-side-label {
  font-size: 11px;
  color: var(--ink-400);
  padding: 14px 18px 5px;
}
.pg-ws-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5.5px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 8px 2px;
}
.pg-ws-head:hover {
  background: #e9e9eb;
}
.pg-ws-items {
  padding-left: 24px;
}
.pg-ws-sess {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5.5px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-500);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg-ws-sess:hover {
  background: #e9e9eb;
}
.pg-ws-sess.active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  border: 1px solid var(--line);
}

/* ---- 主内容区 ---- */
.pg-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---- Home 视图 ---- */
.pg-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 124px 48px 64px;
}
.pg-greeting {
  text-align: center;
  margin-bottom: 20px;
}
.pg-greeting h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
}
.pg-greeting p {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 6px;
}
.pg-feat-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.pg-feat {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: var(--ink-500);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.pg-feat:hover {
  border-color: #b8b8c0;
  color: var(--ink-900);
}
.pg-feat.sel {
  border-color: var(--ink-900);
  color: var(--ink-900);
  font-weight: 600;
}

/* 输入框 */
.pg-ask-box {
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(20,20,40,.06);
  padding: 14px 16px 8px;
  transition: border-color .15s;
}
.pg-ask-box.has-prompt {
  border-color: var(--ink-900);
}
.pg-ph {
  color: var(--ink-400);
  font-size: 14px;
  min-height: 42px;
  line-height: 1.6;
}
.pg-ph b { color: var(--ink-500); }
.pg-prompt-text {
  display: none;
  color: var(--ink-900);
  font-size: 14px;
  min-height: 42px;
  line-height: 1.6;
}
.pg-ask-box.has-prompt .pg-ph { display: none; }
.pg-ask-box.has-prompt .pg-prompt-text { display: block; }
.pg-ask-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pg-tool-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-500);
}
.pg-tool-ico:hover { background: var(--surface); }
.pg-tool-ico svg { width: 15px; height: 15px; }
.pg-ask-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-model-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-500);
  cursor: pointer;
}
.pg-send {
  width: 32px;
  height: 32px;
  background: var(--ink-900);
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.pg-send:hover { background: #2c2c31; }
.pg-send svg { width: 15px; height: 15px; }
.pg-send.sm {
  width: 28px;
  height: 28px;
}
.pg-send.sm svg { width: 13px; height: 13px; }

/* ---- Session 视图 ---- */
.pg-session {
  display: none;
  flex-direction: column;
  height: 540px;
}
.pg-session.show {
  display: flex;
}
.pg-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 0 8px;
}
.pg-chat-scroll::-webkit-scrollbar { width: 6px; }
.pg-chat-scroll::-webkit-scrollbar-thumb { background: #dcdce0; border-radius: 4px; }
.pg-chat-scroll::-webkit-scrollbar-track { background: transparent; }
.pg-chat-inner {
  max-width: 92%;
  margin: 0 auto;
  padding: 0 20px;
}

/* 消息 */
.pg-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  animation: pgMsgIn .3s ease;
}
@keyframes pgMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pg-msg.user { align-items: flex-end; }
.pg-msg.agent { align-items: flex-start; gap: 6px; }
.pg-agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-900);
}
.pg-agent-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.pg-bubble {
  border-radius: 14px;
  padding: 10px 14px;
  line-height: 1.7;
  font-size: 13px;
  max-width: 100%;
}
.pg-msg.user .pg-bubble {
  background: #e8e8ed;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink-900);
}
.pg-msg.agent .pg-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
}
.pg-bubble b { font-weight: 600; }
.pg-bubble code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: #e8e8ed;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}

/* 阶段分割线 */
.pg-phase-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 500;
}
.pg-phase-divider::before,
.pg-phase-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 工具卡片 */
.pg-tool-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: 8px 0;
  overflow: hidden;
  animation: pgMsgIn .25s ease;
}
.pg-tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.pg-tool-head .tn {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-900);
}
.pg-tool-head .fn {
  color: var(--ink-400);
  font-weight: 400;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  margin-left: 4px;
}
.pg-tool-head .st { margin-left: auto; }
.pg-spill {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 7px;
  font-weight: 600;
}
.pg-spill.run { background: #e8e8ed; color: var(--ink-900); }
.pg-spill.done { background: #e9f5ee; color: #2ea36b; }
.pg-tool-body {
  border-top: 1px solid var(--line);
  padding: 10px 13px;
  background: #fbfbfc;
}
.pg-log {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-500);
  white-space: pre-wrap;
}
.pg-log .ok { color: #2ea36b; }
.pg-log .warn { color: #e0781c; }
.pg-log .dim { color: var(--ink-400); }

/* 打字动画 */
.pg-typing {
  display: inline-flex;
  gap: 4px;
  padding: 3px 1px;
}
.pg-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9b9c0;
  animation: pgBounce 1s infinite;
}
.pg-typing i:nth-child(2) { animation-delay: .15s; }
.pg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pgBounce {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* Session 底部输入 */
.pg-session-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.pg-s-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: var(--ink-900);
  background: var(--surface);
}
.pg-s-input:focus { border-color: var(--ink-900); }
.pg-s-input::placeholder { color: var(--ink-400); }

/* 响应式 */
@media (max-width: 680px) {
  .playground { padding: 48px 16px 0; }
  .pg-title { font-size: 26px; }
  .pg-panel { border-radius: 12px; flex-direction: column; }
  .pg-side { display: none; }
  .pg-home { padding: 56px 24px 32px; }
  .pg-feat-row { gap: 6px; }
  .pg-feat { font-size: 11.5px; padding: 5px 12px; }
  .pg-session { height: 380px; }
}

/* ===== BitFun 首页品牌架构 ===== */
.obf-hero {
  --home-accent: #6657d9;
  --home-accent-strong: #5142c4;
  --home-accent-soft: #f5f3ff;
  --home-accent-line: #ddd8ff;
}
.obf-hero .ob-sec-eyebrow,
.obf-hero .pg-eyebrow,
.obf-hero .download-eyebrow { color: var(--home-accent); }
.obf-hero .btn-primary { background: linear-gradient(135deg, #171923, var(--home-accent-strong)); }
.obf-hero .btn-primary:hover { box-shadow: 0 10px 28px rgba(81,66,196,.24); }
.hero-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--ink-500); font-size: 13px; font-weight: 600; }
.hero-proof span::before { content: "✓"; color: var(--brand-green); margin-right: 6px; }
.home-capabilities { padding-top: 112px; }
.home-capabilities .ob-card-ico { background: var(--home-accent-soft) !important; color: var(--home-accent) !important; }
.home-capabilities .ob-card-tag { color: var(--home-accent) !important; }
.home-capabilities .ob-card:hover { border-color: var(--home-accent-line); box-shadow: 0 16px 36px rgba(81,66,196,.09); }
.home-capability-cards { grid-template-columns: repeat(3, 1fr); }
.home-card-mark { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 800; }
.home-miniapp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: center; max-width: 1232px; background: linear-gradient(135deg, #f8f7ff 0%, #f3f5ff 100%); border: 1px solid var(--home-accent-line); }
.home-split-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.home-split-copy .ob-sec-sub { max-width: 520px; }
.home-points { display: flex; flex-direction: column; gap: 10px; color: var(--ink-900); font-size: 14px; font-weight: 600; }
.home-points span::before { content: "→"; color: var(--home-accent); margin-right: 9px; }
.home-miniapp-mock { min-height: 360px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 22px 60px rgba(23,32,51,.12); }
.mini-window-head { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f5f5f7; border-bottom: 1px solid var(--line); }
.mini-window-head span { width: 9px; height: 9px; border-radius: 50%; background: #d5d5da; }
.mini-window-head b { margin-left: 8px; color: var(--ink-500); font-size: 12px; }
.mini-window-body { min-height: 312px; padding: 36px; display: grid; grid-template-columns: 2.2fr 1fr; gap: 28px; align-items: stretch; }
.mini-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; padding: 24px; border-radius: 14px; background: linear-gradient(180deg,#f9f7ff,#f3f7ff); }
.mini-chart i { width: 15%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg,var(--brand-blue),#8a77ef); }
.mini-chart i:nth-child(1) { height: 38%; }.mini-chart i:nth-child(2) { height: 62%; }.mini-chart i:nth-child(3) { height: 48%; }.mini-chart i:nth-child(4) { height: 78%; }.mini-chart i:nth-child(5) { height: 92%; }
.mini-stats { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 20px; border-radius: 14px; background: #111827; color: #fff; }
.mini-stats strong { font-size: 24px; margin-top: 12px; }.mini-stats small { color: #aeb6c5; }
.home-layer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.home-layer { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; position: relative; }
.home-layer b { font-family: "JetBrains Mono", monospace; color: var(--home-accent); font-size: 13px; }
.home-layer h3 { margin-top: 46px; color: var(--ink-900); font-size: 18px; }.home-layer p { margin-top: 12px; color: var(--ink-500); font-size: 14px; line-height: 1.65; }
.home-layer::after { content: ""; position: absolute; left: 28px; top: 62px; width: 38px; height: 2px; background: var(--home-accent); }
.home-layer:hover { border-color: var(--home-accent-line); box-shadow: 0 14px 32px rgba(81,66,196,.08); }
.home-built { max-width: 1320px; padding-left: 48px; padding-right: 48px; border-radius: 30px; background: #f7f8fb; }.home-built .product-cards { max-width: 1040px; margin: 0 auto; }.home-built .product-card { width: calc(50% - 12px); max-width: none; min-height: 340px; cursor: pointer; }
.home-open-summary { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }.home-open-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.home-open-summary-head h3 { color: var(--ink-900); font-size: 22px; font-weight: 800; }.home-open-summary-head .ob-sec-eyebrow { color: var(--brand-blue); }
.home-open-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }.home-open-grid > div { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }.home-open-grid b { color: var(--ink-900); font-size: 17px; }.home-open-grid span { color: var(--ink-500); font-size: 14px; line-height: 1.65; }.home-cta { justify-content: center; margin-top: 36px; }
.mini-flow-body { min-height: 312px; padding: 32px; display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 18px; align-items: center; }
.mini-flow-step { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fafafd; }.mini-flow-step.agent { background: var(--home-accent-soft); border-color: var(--home-accent-line); }.mini-flow-step small { color: var(--home-accent); font: 700 11px "JetBrains Mono", monospace; }.mini-flow-step b { display: block; margin-top: 16px; color: var(--ink-900); font-size: 15px; line-height: 1.45; }.mini-flow-step p { margin-top: 9px; color: var(--ink-500); font-size: 12px; line-height: 1.5; }.mini-flow-arrow { color: var(--home-accent); font-size: 24px; font-weight: 700; }.mini-app-result { padding: 18px; border-radius: 14px; background: #111827; color: #fff; }.mini-result-bars { height: 100px; display: flex; align-items: flex-end; gap: 9px; padding: 16px; border-radius: 9px; background: #202b45; }.mini-result-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: #9b8cff; }.mini-result-bars i:nth-child(1) { height: 38%; }.mini-result-bars i:nth-child(2) { height: 62%; }.mini-result-bars i:nth-child(3) { height: 50%; }.mini-result-bars i:nth-child(4) { height: 82%; }.mini-app-result b { display: block; margin-top: 14px; font-size: 14px; }.mini-app-result span { display: block; margin-top: 6px; color: #b8c0d2; font-size: 11px; }
.home-builder { max-width: 1320px; }.home-builder .ob-sec-eyebrow { color: var(--home-accent); }.home-builder-cta { display: flex; justify-content: center; gap: 12px; }
.home-calendar { padding-top: 24px; }.home-calendar .dev-calendar { margin-top: 0; padding-top: 0; }
.home-voices { max-width: 1320px; }.home-voice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }.home-voice-card { min-height: 280px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; display: flex; flex-direction: column; }.home-voice-mark { color: var(--brand-fire); font-family: Georgia, serif; font-size: 52px; line-height: .7; }.home-voice-text { flex: 1; margin-top: 22px; color: var(--ink-900); font-size: 16px; line-height: 1.8; }.home-voice-card div { display: flex; flex-direction: column; gap: 5px; padding-top: 20px; border-top: 1px solid var(--line-soft); }.home-voice-card b { color: var(--ink-900); font-size: 14px; }.home-voice-card span { color: var(--ink-400); font-size: 12px; }
.home-community-hub { max-width: 1232px; margin: 24px auto; padding: 88px 48px; border: 1px solid var(--home-accent-line); border-radius: 30px; background: linear-gradient(145deg, #f8f7ff, #f4f6fb); }.home-community-hub .dev-calendar { margin: 0 auto 64px; padding: 0; }.home-community-hub .dc-month, .home-community-hub .dc-tab.active, .home-community-hub .dc-more-link, .home-community-hub .home-hub-card strong { color: var(--home-accent); }.home-community-hub .dc-month { background: var(--home-accent-soft); }.home-community-hub .dc-tab.active { border-bottom-color: var(--home-accent); }.home-community-hub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }.home-hub-card { min-height: 210px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; }.home-hub-card:hover { border-color: var(--home-accent-line); box-shadow: 0 14px 30px rgba(81,66,196,.08); transform: translateY(-3px); }.home-hub-card b { color: var(--ink-900); font-size: 18px; }.home-hub-card span { flex: 1; margin-top: 16px; color: var(--ink-500); font-size: 14px; line-height: 1.7; }.home-hub-card strong { margin-top: 20px; color: var(--home-accent); font-size: 13px; }
/* 首页下载中心 */
.home-download {
  width: min(1320px, calc(100% - 64px));
  margin: 72px auto 96px;
  padding: 64px;
  align-items: stretch;
  gap: 32px;
  border: 1px solid var(--home-accent-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 0%, rgba(102, 87, 217, .16), transparent 34%),
    linear-gradient(145deg, #fbfaff 0%, #f4f6fb 100%);
}
.home-download-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.home-download-head > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.home-download .download-title { text-align: left; font-size: 42px; color: var(--ink-900); letter-spacing: -.8px; }
.home-download .download-sub { max-width: 680px; text-align: left; font-size: 16px; line-height: 1.7; }
.release-meta { min-width: 220px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.release-meta strong { color: var(--ink-900); font: 800 28px "JetBrains Mono", monospace; }
.release-meta a { color: var(--home-accent); font-size: 13px; font-weight: 700; }
.release-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-500); font-size: 12px; font-weight: 600; }
.release-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px rgba(5,150,105,.1); }
.download-primary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download-platform { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.9); transition: transform .2s, border-color .2s, box-shadow .2s; }
.download-platform:hover { transform: translateY(-3px); border-color: var(--home-accent-line); box-shadow: 0 18px 42px rgba(81,66,196,.1); }
.download-platform.featured { border-color: var(--home-accent-line); box-shadow: inset 0 3px 0 var(--home-accent); }
.download-platform-top { min-height: 58px; display: flex; align-items: center; gap: 13px; }
.download-platform-top h3 { color: var(--ink-900); font-size: 21px; }
.download-platform-top p { margin-top: 4px; color: var(--ink-400); font-size: 12px; }
.platform-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; font: 800 10px "JetBrains Mono", monospace; letter-spacing: .4px; }
.platform-icon.windows { color: #0a59f7; background: #e8f0fe; }
.platform-icon.apple { color: #262a35; background: #eceef2; }
.platform-icon.linux { color: #a65b00; background: #fff3df; }
.platform-badge { margin-left: auto; padding: 4px 9px; border-radius: 999px; color: var(--home-accent); background: var(--home-accent-soft); font-size: 10px; font-weight: 800; }
.download-package-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.download-package { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border: 1px solid #1c2030; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #171923, var(--home-accent-strong)); }
.download-package.secondary { border-color: var(--line); color: var(--ink-900); background: #f8f9fc; }
.download-package span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.download-package b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.download-package small { color: #c4c8d4; font-size: 10px; }
.download-package.secondary small { color: var(--ink-400); }
.download-package strong { flex-shrink: 0; font-size: 11px; }
.download-package:hover strong { transform: translateY(2px); }
.download-package-list.compact { gap: 6px; }
.download-package-list.compact .download-package { min-height: 45px; padding-top: 8px; padding-bottom: 8px; }
.download-tools { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.download-tools-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.download-tools-copy h3 { color: var(--ink-900); font-size: 20px; }
.download-tools-copy > span { color: var(--ink-500); font-size: 13px; line-height: 1.6; }
.download-tool-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.download-tool-links a { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfe; }
.download-tool-links b { color: var(--ink-900); font-size: 14px; }
.download-tool-links span { color: var(--ink-400); font-size: 11px; }
.download-tool-links strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--home-accent); font-size: 11px; }
.download-tool-links a:hover { border-color: var(--home-accent-line); background: var(--home-accent-soft); }
.download-footnote { display: flex; justify-content: center; gap: 8px; color: var(--ink-500); font-size: 13px; }
.download-footnote a { color: var(--home-accent); font-weight: 700; }
@media (max-width: 1080px) {
  .download-primary-grid { grid-template-columns: 1fr 1fr; }
  .download-platform:last-child { grid-column: 1 / -1; }
  .download-tools { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-download { width: calc(100% - 32px); margin: 48px 16px 64px; padding: 36px 20px; border-radius: 24px; }
  .home-download-head { align-items: flex-start; flex-direction: column; gap: 22px; }
  .release-meta { min-width: 0; align-items: flex-start; }
  .home-download .download-title { font-size: 30px; }
  .download-primary-grid, .download-tool-links { grid-template-columns: 1fr; }
  .download-platform:last-child { grid-column: auto; }
  .download-footnote { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 900px) { .mini-flow-body { grid-template-columns: 1fr; }.mini-flow-arrow { text-align: center; transform: rotate(90deg); }.home-voice-grid, .home-community-hub-grid { grid-template-columns: 1fr; }.home-final-cta-inner { flex-direction: column; align-items: flex-start; }.home-community-hub { margin-left: 16px; margin-right: 16px; padding: 64px 24px; } }
@media (max-width: 1080px) { .home-miniapp { grid-template-columns: 1fr; }.home-layer-grid { grid-template-columns: repeat(2,1fr); }.home-open-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .hero-proof { gap: 8px 14px; }.home-capability-cards, .home-layer-grid { grid-template-columns: 1fr; }.home-miniapp { margin-left: 12px; margin-right: 12px; }.mini-window-body { padding: 18px; grid-template-columns: 1fr; }.mini-chart { min-height: 190px; }.home-built .product-card { width: 100%; } }

/* ===== OpenBitFun 首页统一渐变底色 ===== */
.obf-hero {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 107, 53, .10), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(137, 100, 255, .16), transparent 34%),
    radial-gradient(circle at 76% 28%, rgba(47, 205, 255, .14), transparent 36%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f3f9ff 100%);
  background-attachment: fixed;
}
.obf-hero .hero,
.obf-hero .home-capabilities,
.obf-hero .home-extend,
.obf-hero .home-builder {
  background: transparent;
}
.obf-hero .home-miniapp,
.obf-hero .home-built,
.obf-hero .home-community-hub,
.obf-hero .home-download {
  background: rgba(255, 255, 255, .68);
  border-color: rgba(230, 237, 245, .9);
  box-shadow: 0 20px 56px rgba(23, 32, 51, .045);
}
