:root {
  --bg: #0a0c11;
  --bg-soft: #0f1117;
  --panel: #13141a;
  --border: #232633;
  --text: #e6e6e7;
  --muted: #a3a7b3;
  --primary: #7c5cff;
  --primary-2: #3dd6ff;
  --accent: #33ffa8;
}

* {
  box-sizing: border-box
}

/* Ensure all buttons have pointer cursor */
button,
.btn,
input[type="button"],
input[type="submit"] {
  cursor: pointer !important;
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--text)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
}

.btn-ghost {
  background: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 0;
  color: #0a0a0b;
}

.btn-primary:hover {
  filter: brightness(1.05)
}

.hero {
  position: relative;
  overflow: clip;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: -20vh 0 0 0;
  z-index: -1;
  background: url("../../../ui/boltweb/images/bg.png"), var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 120%;
  transform: translateZ(0);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  background: linear-gradient(135deg, #3dd6ff, #33ffa8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #3dd6ff;
  /* Fallback */
  position: relative;
  display: inline-block;
  /* Ensure block for cursor */
  white-space: pre-line;
  min-height: 3.15em;
  /* Fixed height for 3 lines */
  max-height: 3.15em;
  overflow: hidden;
}

.hero-title::after {
  content: '|';
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  color: var(--text);
  /* Or use current gradient color if possible, but var(--text) is safer for visibility */
  -webkit-text-fill-color: var(--text);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-title.variant-1 {
  background: linear-gradient(135deg, #7c5cff, #ff5f56);
  -webkit-background-clip: text;
  background-clip: text;
  color: #7c5cff;
}

.hero-title.variant-2 {
  background: linear-gradient(135deg, #ff5f56, #ffbd2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: #ff5f56;
}

.hero-title.variant-3 {
  background: linear-gradient(135deg, #3dd6ff, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: #3dd6ff;
}

.hero-title.variant-4 {
  background: linear-gradient(to right, #33ffa8, #3dd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: #33ffa8;
}

.hero-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.prompt-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  max-width: 680px;
}

.prompt-bar input {
  appearance: none;
  border: 0;
  outline: none;
  padding: 12px 12px;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.link {
  color: var(--primary-2);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  margin-left: 8px;
  transition: transform .2s ease;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.window {
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(61, 214, 255, .12), 0 10px 40px rgba(124, 92, 255, .08);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot.red {
  background: #ff5f56
}

.dot.yellow {
  background: #ffbd2e
}

.dot.green {
  background: #27c93f
}

.window-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.window-body {
  padding: 16px;
  height: 360px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.window-body::-webkit-scrollbar {
  width: 8px;
}

.window-body::-webkit-scrollbar-track {
  background: transparent;
}

.window-body::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

.window-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}

.code {
  margin: 0;
  color: #e1e1e3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.features {
  padding: 40px 0 20px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.section-header p {
  margin: 0 0 20px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.templates {
  padding: 40px 0 80px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.template-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: end start;
  aspect-ratio: 16/10;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 16px;
  color: var(--text);
  background: var(--bg-soft);
}

.template-thumb {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(180px 60px at 20% 20%, rgba(124, 92, 255, .25), transparent 60%),
    radial-gradient(180px 60px at 80% 20%, rgba(61, 214, 255, .25), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent),
    var(--template-thumb-url, none) center/cover no-repeat,
    url("../../../ui/boltweb/images/bg.png") center/cover no-repeat;
}

.template-card:hover {
  filter: brightness(1.06)
}

.template-name {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

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

.footer-brand {
  font-weight: 700
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-media {
    order: -1
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex
  }

  .nav-list {
    display: none
  }

  .nav.open .nav-list {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border)
  }

  .cards {
    grid-template-columns: 1fr
  }

  .template-grid {
    grid-template-columns: 1fr
  }

  .footer-inner {
    flex-direction: column;
    height: auto;
    padding: 18px 0
  }
}


/* =========================================
   全局禁止选中图标样式
   ========================================= */
svg, img, button svg, button img, a svg, a img, .icon, [class*="icon"] {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}
