:root {
  --bg-color: #000000;
  --surface-color: #0a0a0a;
  --surface-hover: #141414;
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.4);
  --brand-primary: #8b5cf6; /* 紫色 */
  --brand-secondary: #3b82f6; /* 蓝色 */
  --brand-glow: rgba(139, 92, 246, 0.3);
  --success: #10b981;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  position: relative;
  overflow-x: hidden;
}

/* 全局环境光晕 */
body::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  background: radial-gradient(circle at top, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

/* 网格背景 */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-left: 32px;
}

nav a:hover {
  color: var(--text-primary);
}

/* Typography */
h1 {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 9999px;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.full {
  width: 100%;
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.section-soft {
  background: linear-gradient(180deg, var(--bg-color) 0%, #050505 50%, var(--bg-color) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin-bottom: 40px;
}

.hero-showcase {
  width: min(1080px, 100%);
  margin: 0 auto 48px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(59, 130, 246, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(18, 48, 118, 0.22);
}

.hero-panel {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  min-height: 280px;
  display: flex;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-panel-flow {
  background: #f6f9ff;
}

.hero-panel-product {
  background: #0f172a;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

/* Trust Metrics */
.trust-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.trust-metrics div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-metrics strong {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.trust-metrics span {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cards & Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 24px;
}

.bento-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Bento Sizing */
.bento-item:nth-child(1) { grid-column: span 2; }
.bento-item:nth-child(4) { grid-column: span 2; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

/* Segment Cards (Alternating Layout) */
.segment-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.segment-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}


.segment-content {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.segment-visual {
  flex: 1;
  background: #050505;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.segment-card:nth-child(even) .segment-visual {
  border-left: none;
  border-right: 1px solid var(--border-color);
}

.segment-content ul {
  margin-top: 24px;
}

.segment-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.segment-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: bold;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.hot {
  background: linear-gradient(180deg, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.price-card.hot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-color);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price span {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.price-card ul {
  margin: 32px 0;
  flex-grow: 1;
}

.price-card li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.price-card li::before {
  content: "✓";
  color: var(--text-primary);
  font-weight: bold;
}

/* Demo/Table Area */
.table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-color);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* Register */
.register-container {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

input, select {
  width: 100%;
  height: 48px;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-showcase {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .segment-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item:nth-child(1), .bento-item:nth-child(4) {
    grid-column: span 1;
  }
  .segment-card {
    flex-direction: column !important;
  }
  .segment-visual {
    min-height: 300px;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--border-color);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .price-card.hot {
    transform: scale(1);
  }
  .register-container {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  .hero-showcase {
    margin-bottom: 32px;
    border-radius: 18px;
    padding: 10px;
  }
  .hero-panel {
    min-height: 220px;
  }
  .segment-container {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .trust-metrics {
    flex-direction: column;
    gap: 32px;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero-cta {
    flex-direction: column;
  }
  nav {
    display: none;
  }
}

/* Abstract Visuals for Segment Cards */
.abstract-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glow-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--brand-glow);
  filter: blur(60px);
}

/* Data Chart Mock */
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 1;
}
.mock-bar {
  width: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
}
.mock-bar:nth-child(1) { height: 60px; }
.mock-bar:nth-child(2) { height: 100px; }
.mock-bar:nth-child(3) { height: 160px; background: rgba(255, 255, 255, 0.9); }

/* Lines Mock */
.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 60%;
  z-index: 1;
}
.mock-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.mock-line:nth-child(1) { width: 100%; }
.mock-line:nth-child(2) { width: 80%; background: rgba(255, 255, 255, 0.9); }
.mock-line:nth-child(3) { width: 90%; }
.mock-line:nth-child(4) { width: 40%; }

/* Grid Mock */
.mock-grid-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 60%;
  z-index: 1;
}
.mock-box {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mock-box:nth-child(2) {
  background: rgba(255, 255, 255, 0.9);
}

/* Kanban Mock */
.mock-kanban {
  display: flex;
  gap: 16px;
  width: 70%;
  z-index: 1;
}
.mock-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-kcard {
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.mock-col:nth-child(2) .mock-kcard:first-child {
  background: rgba(255, 255, 255, 0.9);
}

.floating-tools {
  position: fixed;
  right: 24px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.tool-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tool-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Case Carousel */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  max-width: 900px;
  margin: 48px auto 0;
}

.carousel-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.case-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: all 0.5s ease;
}

.case-card h3 {
  margin-bottom: 16px;
  color: var(--brand-primary);
}

.case-card p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.case-card small {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Download Page */
.download-hero {
  padding-top: 160px;
  min-height: calc(100vh - 180px);
}

.download-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.download-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.download-card p {
  font-size: 16px;
  margin-bottom: 16px;
}

.download-card ul {
  margin-bottom: 24px;
}

.download-card li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.download-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.download-tip {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.download-tip p {
  margin: 0;
  font-size: 14px;
}

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

  .download-tip {
    flex-direction: column;
    align-items: stretch;
  }
}
