/* ============================================================
   page-index.css — 首页 · Apple 极简 Bento 布局
   ============================================================ */

html.theme-apple-minimal {
  color-scheme: light;
  scroll-behavior: auto !important;
  overflow-anchor: auto;
}

html.theme-apple-minimal body {
  background-color: #f5f5f7;
  background-image: none !important;
  background-attachment: scroll !important;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.theme-apple-minimal body::after {
  display: none;
}

html.theme-apple-minimal #site-footer,
html.theme-apple-minimal #global-footer {
  display: none !important;
}

/* 首页使用独立 #home-nav，隐藏 common.css 遗留的 #site-nav 占位，避免黑色顶栏叠层 */
html.theme-apple-minimal #site-nav {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html.theme-apple-minimal #site-nav::before {
  display: none !important;
}

html.theme-apple-minimal #home-nav {
  z-index: 900;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* 导航栏：纯色背景，滚动时不再切换 class */
html.theme-apple-minimal .nav-glass {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 关闭滚动入场动画 */
html.theme-apple-minimal .reveal-up,
html.theme-apple-minimal .reveal-up.active {
  opacity: 1;
  transform: none;
  transition: none;
}

html.theme-apple-minimal .delay-100 {
  transition-delay: 100ms;
}

html.theme-apple-minimal .delay-200 {
  transition-delay: 200ms;
}

html.theme-apple-minimal .delay-300 {
  transition-delay: 300ms;
}

html.theme-apple-minimal .text-balance {
  text-wrap: balance;
}

/* Mobile nav */
html.theme-apple-minimal .home-mobile-panel {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  z-index: 40;
  background: #fff;
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

html.theme-apple-minimal .home-mobile-panel.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html.theme-apple-minimal .home-mobile-panel a,
html.theme-apple-minimal .home-mobile-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

html.theme-apple-minimal .home-mobile-panel a:hover,
html.theme-apple-minimal .home-mobile-panel button:hover {
  background: #f5f5f7;
}

html.theme-apple-minimal .idx-testimonial-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Selection */
html.theme-apple-minimal ::selection {
  background: #1d1d1f;
  color: #fff;
}

/* 首页控制台示意（内联 mock，不暴露连接格式） */
html.theme-apple-minimal .idx-console-mock {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(160deg, #f8f8fa 0%, #f1f1f4 100%);
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

html.theme-apple-minimal .idx-console-card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

html.theme-apple-minimal .idx-console-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

html.theme-apple-minimal .idx-console-card__icon {
  width: 16px;
  height: 16px;
  color: #1d1d1f;
}

html.theme-apple-minimal .idx-console-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
}

html.theme-apple-minimal .idx-console-badge svg {
  width: 12px;
  height: 12px;
}

html.theme-apple-minimal .idx-console-power-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

html.theme-apple-minimal .idx-console-power-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  min-width: 0;
}

html.theme-apple-minimal .idx-console-power-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

html.theme-apple-minimal .idx-console-power-btn--on {
  background: #f8fbff;
  border-color: #dbeafe;
  color: #2563eb;
}

html.theme-apple-minimal .idx-console-power-btn--off {
  background: #fff7f7;
  border-color: #fecaca;
  color: #dc2626;
}

html.theme-apple-minimal .idx-console-power-btn--vnc {
  background: #faf7ff;
  border-color: #e9d5ff;
  color: #7c3aed;
}

html.theme-apple-minimal .idx-console-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.theme-apple-minimal .idx-console-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #f0f0f2;
}

html.theme-apple-minimal .idx-console-row--active {
  background: #f7faff;
  border-color: #dbeafe;
}

html.theme-apple-minimal .idx-console-row__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  white-space: nowrap;
}

html.theme-apple-minimal .idx-console-row__label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

html.theme-apple-minimal .idx-console-row--active .idx-console-row__label {
  color: #1d1d1f;
}

html.theme-apple-minimal .idx-console-row__skel {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8e8ed 0%, #f0f0f4 50%, #e8e8ed 100%);
  filter: blur(0.4px);
  opacity: 0.9;
}

html.theme-apple-minimal .idx-console-row__skel--short {
  max-width: 72%;
}

html.theme-apple-minimal .idx-console-row__skel--tiny {
  max-width: 28%;
}

html.theme-apple-minimal .idx-console-row__dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

html.theme-apple-minimal .idx-console-row__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d1d6;
}

html.theme-apple-minimal .idx-console-row__action {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e5e5ea;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  white-space: nowrap;
}

html.theme-apple-minimal .idx-console-row__action--primary {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff;
}

html.theme-apple-minimal .idx-console-row__action--icon {
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.theme-apple-minimal .idx-console-row__action--icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 640px) {
  html.theme-apple-minimal .idx-console-mock {
    padding: 10px;
    gap: 8px;
  }

  html.theme-apple-minimal .idx-console-power-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.theme-apple-minimal .idx-console-row {
    grid-template-columns: 72px 1fr auto;
  }

  html.theme-apple-minimal .idx-console-row__action:not(.idx-console-row__action--primary):not(.idx-console-row__action--icon) {
    display: none;
  }
}

/* 首页 Hero CTA：长文案语种允许换行，避免圆角按钮溢出 */
html.theme-apple-minimal #page-home section[aria-labelledby="hero-title"] .flex-col.sm\:flex-row > button,
html.theme-apple-minimal #page-home section[aria-labelledby="hero-title"] .flex-col.sm\:flex-row > a.rounded-full {
  white-space: normal;
  text-wrap: balance;
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
}

@media (max-width: 639px) {
  html.theme-apple-minimal #page-home section[aria-labelledby="hero-title"] .flex-col.sm\:flex-row > button,
  html.theme-apple-minimal #page-home section[aria-labelledby="hero-title"] .flex-col.sm\:flex-row > a.rounded-full {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
