:root {
  color-scheme: light;

  --bg: #f6f5f2;
  --bg-2: #fbfaf8;
  --text: #1e1f22;
  --text-mid: rgba(30, 31, 34, 0.68);
  --text-soft: rgba(30, 31, 34, 0.48);

  --accent: #fc5d1e;
  --accent-2: #ff7a3d;

  --card-wrap: rgba(30, 31, 34, 0.06);
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(30, 31, 34, 0.10);

  --button: #1e1f22;
  --shadow-sm: 0 10px 24px rgba(15, 15, 15, 0.08);
  --shadow-md: 0 18px 60px rgba(15, 15, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(252, 93, 30, 0.10), transparent 65%),
    radial-gradient(900px 480px at 85% 10%, rgba(255, 122, 61, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  font-family: Manrope, PingFang SC, Microsoft YaHei, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 146px), 1296px);
  margin: 0 auto;
  padding: 32px 0 30px;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 260px;
  width: min(1275px, 100vw);
  height: 920px;
  transform: translate(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(252, 93, 30, 0.22), rgba(252, 93, 30, 0.10), transparent 70%),
    radial-gradient(circle at 60% 50%, rgba(255, 122, 61, 0.14), transparent 72%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
}

.topbar,
.hero,
.flow-section {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.brand-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-copy strong {
  font-family: Outfit, Manrope, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 12px;
  background: rgba(30, 31, 34, 0.18);
}

.brand-copy small {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  font-size: 14px;
  color: rgba(30, 31, 34, 0.72);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.topbar-link:hover {
  color: rgba(30, 31, 34, 0.92);
}

.community-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  font: inherit;
}

.community-button:hover {
  background: rgba(30, 31, 34, 0.06);
}

.community-entry {
  position: relative;
}

.community-popover {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 180px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.community-popover img {
  width: 100%;
  border-radius: 10px;
}

.community-entry:hover .community-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 96px;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  user-select: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    opacity 0.18s ease;
  will-change: transform;
}

.button-dark {
  background: linear-gradient(180deg, rgba(30, 31, 34, 0.98), rgba(30, 31, 34, 0.92));
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.button-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.apply-button:active {
  transform: scale(0.97);
}

.button:focus-visible,
.community-button:focus-visible,
.topbar-link:focus-visible {
  outline: 3px solid rgba(252, 93, 30, 0.35);
  outline-offset: 3px;
  border-radius: 14px;
}

.hero {
  padding-top: 146px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  width: 660px;
  max-width: 100%;
  font-family: Outfit, Manrope, system-ui, sans-serif;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.hero-desc {
  width: 640px;
  max-width: 100%;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: rgba(30, 31, 34, 0.74);
}

.hero-cta {
  width: 288px;
  height: 56px;
  border-radius: 18px;
  margin-top: 30px;
  font-size: 16px;
}

.hero-note {
  margin-top: 18px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-mid);
}

.workspace-shot {
  width: min(100%, 1136px);
  margin: 92px auto 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(30, 31, 34, 0.08);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.6);
}

.workspace-shot img {
  width: 100%;
  height: auto;
}

.flow-section {
  margin-top: 72px;
}

.flow-head {
  max-width: 860px;
}

.flow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(252, 93, 30, 0.10);
  border: 1px solid rgba(252, 93, 30, 0.18);
  color: rgba(30, 31, 34, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flow-section h2 {
  margin: 14px 0 0;
  font-family: Outfit, Manrope, system-ui, sans-serif;
  font-size: 46px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.flow-intro {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-mid);
}

.flow-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-card {
  min-height: 430px;
  border-radius: 46px;
  background: var(--card-wrap);
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(30, 31, 34, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-card-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 31, 34, 0.08);
  border: 1px solid rgba(30, 31, 34, 0.10);
  color: rgba(30, 31, 34, 0.70);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(15, 15, 15, 0.10);
}

.flow-preview {
  margin-top: auto;
  min-height: 252px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  border: 1px solid rgba(30, 31, 34, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.flow-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-preview-image-1 {
  width: 320px;
  height: 187px;
  margin-left: 32px;
  margin-top: 33px;
}

.flow-preview-image-2 {
  width: 255px;
  height: 186px;
  margin-left: 32px;
  margin-top: 33px;
}

.flow-preview-image-3 {
  width: 293px;
  height: 180px;
  margin-left: 59px;
  margin-top: 33px;
}

.flow-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.flow-card p {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-mid);
}

.flow-bubble {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: 20px;
  background: rgba(30, 31, 34, 0.10);
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
}

.flow-bubble.user {
  background: rgba(30, 31, 34, 0.06);
}

footer {
  text-align: center;
  margin: 32px auto 0;
  font-size: 14px;
  color: var(--text-mid);
}

footer a {
  text-decoration: underline;
  text-decoration-color: rgba(30, 31, 34, 0.28);
  text-underline-offset: 3px;
}

footer a:hover {
  text-decoration-color: rgba(252, 93, 30, 0.55);
}

/* 兼容：下方这部分看起来是用于“流程预览”的聊天/表单细节（可能由 JS 动态注入） */
.task-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.avatar {
  border-radius: 999px;
  object-fit: cover;
}

.avatar-sm {
  width: 20px;
  height: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
}

.flow-composer {
  margin-top: 43px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(30, 31, 34, 0.10);
  padding: 16px 16px 10px;
}

.flow-composer > span {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 24px;
}

.flow-composer-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(30, 31, 34, 0.62);
  font-size: 14px;
  line-height: 22px;
}

.flow-composer-row i {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--button);
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-tags span {
  border-radius: 10px;
  background: rgba(30, 31, 34, 0.06);
  color: var(--text-mid);
  font-size: 13px;
  line-height: 22px;
  padding: 6px 12px;
}

.flow-preview ul {
  margin: 24px 0 0 18px;
  padding: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 26px;
}

.flow-chat-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.flow-bubble.sync-user {
  background: rgba(30, 31, 34, 0.10);
}

.tail-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(30, 31, 34, 0.22);
}

.flow-chat-result-head {
  display: flex;
  margin-bottom: 8px;
}

.avatar-agent {
  background: var(--accent);
}

.flow-chat-result {
  margin-top: 24px;
  border-radius: 20px;
  background: rgba(30, 31, 34, 0.06);
  padding: 12px 16px;
}

@media (max-width: 1360px) {
  .page-shell {
    width: min(calc(100% - 48px), 1296px);
  }
}

@media (max-width: 1120px) {
  .hero {
    padding-top: 92px;
  }

  .workspace-shot {
    margin-top: 64px;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 740px) {
  .page-shell {
    width: min(calc(100% - 28px), 1296px);
    padding-top: 20px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-cta {
    width: min(100%, 320px);
  }

  .flow-section h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .flow-head {
    max-width: 100%;
  }

  .flow-card {
    border-radius: 34px;
    padding: 16px;
    min-height: 0;
  }

  .flow-preview {
    border-radius: 28px;
  }

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

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
