:root {
  --bg: #0b1020;
  --bg-soft: #f4f7ff;
  --text: #121826;
  --text-soft: #637083;
  --primary: #5b7cff;
  --primary-2: #55d6ff;
  --line: #e4e8f1;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 28, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #d4dcff;
  text-decoration: none;
  font-size: 14px;
}

.hero {
  background: radial-gradient(circle at 20% 20%, #1a2657 0, transparent 45%),
    radial-gradient(circle at 80% 15%, #0a4f68 0, transparent 35%), var(--bg);
  color: #fff;
  padding: 64px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

h1 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.16;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.desc,
.section-desc {
  color: #ced7f4;
  max-width: 620px;
  line-height: 1.7;
}

.dark-text {
  color: #5a6680;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(74, 111, 255, 0.35);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 20px;
}

.hero-card h3 {
  margin: 4px 0 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kpi {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px;
}

.kpi p {
  margin: 0;
  font-size: 12px;
  color: #d8e0ff;
}

.kpi strong {
  font-size: 24px;
}

.small-note {
  margin: 12px 0 0;
  color: #bfd0ff;
  font-size: 12px;
}

.section {
  padding: 68px 0;
}

.soft {
  background: var(--bg-soft);
}

.cards {
  display: grid;
  gap: 14px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.card h3 {
  margin-top: 6px;
}

.card p {
  color: var(--text-soft);
  line-height: 1.65;
}

.case-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.case-filter-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
}

.case-filter-pill.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #5575ff, #2bc5ff);
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.case-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.case-gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8edff 0%, #f5f7fc 100%);
  overflow: hidden;
}

.case-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-gallery-thumb.is-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ecf7;
}

.case-gallery-thumb.is-error img {
  display: none;
}

.case-gallery-thumb.is-error::after {
  content: "图片未找到或路径错误";
  padding: 12px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.case-gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.case-gallery-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf2ff;
  color: #4960bd;
  font-size: 12px;
  font-weight: 600;
}

.case-gallery-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.case-gallery-empty {
  margin: 1rem 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #eef3ff;
  border: 1px solid #ccdaff;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.case-gallery-empty code {
  font-size: 13px;
  color: #1e293b;
}

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.case-lightbox.hidden {
  display: none;
}

.case-lightbox:not(.hidden) {
  display: block;
}

.case-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: rgba(8, 13, 28, 0.9);
  padding: 0;
}

.case-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 56px 16px 32px;
  pointer-events: none;
}

.case-lightbox-inner img {
  pointer-events: auto;
  max-width: min(96vw, 1400px);
  max-height: min(82vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.case-lightbox-close,
.case-lightbox-prev,
.case-lightbox-next {
  pointer-events: auto;
  position: absolute;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-lightbox-close {
  top: 16px;
  right: 16px;
  z-index: 2;
}

.case-lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.case-lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.case-lightbox-caption {
  pointer-events: none;
  margin: 12px 0 0;
  color: #e2e8f0;
  font-size: 15px;
  text-align: center;
  max-width: min(96vw, 720px);
}

@media (max-width: 640px) {
  .case-lightbox-prev {
    left: 8px;
  }

  .case-lightbox-next {
    right: 8px;
  }
}

.platform-switch {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #5575ff, #2bc5ff);
}

.panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  padding: 16px;
  color: #334155;
  line-height: 1.8;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.quiz-item p {
  margin: 0 0 8px;
}

select,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.result {
  margin-top: 14px;
  border: 1px solid #ccdaff;
  background: #eef3ff;
  border-radius: 12px;
  padding: 14px;
}

.hidden {
  display: none;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sim-grid label {
  display: block;
  margin-bottom: 10px;
  color: #445065;
}

input[type="range"] {
  width: 100%;
}

.sim-output {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  padding: 16px;
}

.sim-output p {
  margin: 0;
  color: #4f5d77;
}

.sim-output strong {
  display: block;
  margin: 8px 0;
  font-size: 36px;
  color: #2d4fff;
}

.sim-output span {
  color: #73819a;
  font-size: 13px;
}

.dark {
  background: #0f162f;
  color: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.step span {
  color: #9fb6ff;
  font-size: 13px;
}

.step p {
  color: #d7def8;
  line-height: 1.65;
}

.cta {
  text-align: center;
}

.lead-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}

.lead-feedback {
  margin-top: 10px;
  font-size: 14px;
}

.lead-feedback.success {
  color: #217d3f;
}

.lead-feedback.error {
  color: #b42318;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .cards.three,
  .quiz-grid,
  .sim-grid,
  .timeline,
  .lead-form {
    grid-template-columns: 1fr;
  }
}
