:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(10, 20, 28, 0.76);
  --panel-strong: rgba(14, 28, 38, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5efe7;
  --muted: #adbbbf;
  --gold: #d6a45b;
  --gold-2: #f1c36d;
  --teal: #5fc7c4;
  --teal-2: #2d8f92;
  --danger: #ff8d6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 164, 91, 0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(95, 199, 196, 0.14), transparent 22%),
    linear-gradient(160deg, #050a0f 0%, #09131b 45%, #05070b 100%);
  color: var(--text);
}

h1, h2, h3, .brand-name, .product-title, .road-title, .panel-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0.02em;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  right: -4rem;
  background: rgba(214, 164, 91, 0.18);
}

.orb-2 {
  width: 18rem;
  height: 18rem;
  bottom: 6rem;
  left: -5rem;
  background: rgba(95, 199, 196, 0.14);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(6, 12, 18, 0.52);
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #081017;
  background: linear-gradient(135deg, var(--gold-2), var(--teal));
  box-shadow: var(--shadow);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-btn,
.side-btn,
.primary,
.secondary,
.text-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-btn,
.side-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.7rem 1rem;
}

.nav-btn.active,
.side-btn.active {
  background: linear-gradient(135deg, rgba(214, 164, 91, 0.28), rgba(95, 199, 196, 0.18));
  border-color: rgba(241, 195, 109, 0.45);
}

.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0d1217;
  font-weight: 700;
  padding: 0.9rem 1.3rem;
}

.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1.3rem;
}

.text-btn {
  background: transparent;
  color: var(--gold-2);
  padding: 0.55rem 0.9rem;
}

.primary:hover,
.secondary:hover,
.nav-btn:hover,
.side-btn:hover,
.text-btn:hover {
  transform: translateY(-1px);
}

main {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.hero,
.metrics-strip,
.content-section,
.page,
.admin-layout,
.arch-block {
  margin-top: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.metric-card,
.product-card,
.solution-card,
.info-card,
.road-item,
.arch-block,
.lead-list,
.lead-detail,
.admin-sidebar,
.admin-main {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy,
.hero-panel {
  padding: 1.6rem;
  border-radius: 1.6rem;
}

.eyebrow {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}

.hero p,
.section-title p,
.product-card p,
.solution-card p,
.road-desc,
.brand-sub,
.metric-detail,
.info-card li,
.solution-meta,
.arch-block pre,
.note-box {
  color: var(--muted);
}

.hero-actions,
.hero-pills,
.tag-row,
.product-footer,
.solution-meta,
.sidebar-actions,
.editor-row,
.metrics-strip,
.panel-grid,
.two-col,
.proposal-grid,
.content-admin,
.settings-grid,
.lead-manager {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-pills {
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
}

.spotlight {
  height: 100%;
}

.panel-label {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.panel-title {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  padding: 1rem;
  border-radius: 1.2rem;
  min-width: 0;
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-2);
}

.metric-label {
  margin-top: 0.2rem;
  font-weight: 600;
}

.metric-detail {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-strip.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-section,
.page {
  padding: 1.6rem;
  border-radius: 1.6rem;
  background: rgba(8, 16, 24, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-section.alt {
  background: linear-gradient(180deg, rgba(11, 18, 27, 0.9), rgba(9, 15, 22, 0.86));
}

.section-title {
  margin-bottom: 1rem;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

.section-title p {
  margin: 0;
  max-width: 68ch;
}

.product-grid,
.solution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-card,
.solution-card {
  border-radius: 1.4rem;
  padding: 1.2rem;
}

.product-top,
.solution-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.product-title,
.solution-card h3,
.info-card h3,
.road-title,
.lead-detail h3,
.lead-list-head {
  margin: 0 0 0.3rem;
}

.product-sub,
.solution-card p,
.road-desc,
.metric-detail {
  font-size: 0.92rem;
}

.product-price,
.solution-price {
  color: var(--gold-2);
  font-weight: 700;
  white-space: nowrap;
}

.product-footer {
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  color: var(--text);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.road-item {
  border-radius: 1.2rem;
  padding: 1rem;
}

.road-step {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  font-weight: 800;
  color: #081017;
  background: linear-gradient(135deg, var(--teal), var(--gold-2));
}

.two-col,
.proposal-grid,
.content-admin,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.lead-list,
.lead-detail,
.admin-sidebar,
.admin-main,
.arch-block {
  border-radius: 1.4rem;
  padding: 1.1rem;
}

.info-card.full {
  grid-column: 1 / -1;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.funnel {
  display: grid;
  gap: 0.7rem;
}

.funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.lead-manager {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.lead-list {
  display: grid;
  gap: 0.6rem;
}

.lead-list-head {
  font-size: 1.05rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.lead-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.lead-item.active {
  background: linear-gradient(135deg, rgba(214, 164, 91, 0.16), rgba(95, 199, 196, 0.12));
  border-color: rgba(241, 195, 109, 0.35);
}

.lead-detail {
  min-height: 22rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.detail-grid label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.note-box {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.editor-row {
  align-items: center;
}

.editor-row input,
.editor-row select,
.lead-form input,
.lead-form select,
.lead-form textarea,
.info-card input {
  min-height: 2.75rem;
}

.editor-row input,
.editor-row select,
.lead-form input,
.lead-form select,
.lead-form textarea,
.info-card input {
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.8rem 0.95rem;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.lead-form textarea {
  grid-column: 1 / -1;
  min-height: 6.5rem;
  resize: vertical;
}

.lead-form .primary {
  grid-column: 1 / -1;
}

.admin-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
}

.admin-sidebar,
.admin-main {
  background: rgba(8, 16, 24, 0.72);
}

.sidebar-actions {
  margin-top: 1rem;
}

.sidebar-actions .block {
  width: 100%;
  justify-content: center;
}

.content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.content-row:last-child {
  border-bottom: 0;
}

.arch-block pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(18px, -18px, 0); }
}

@media (max-width: 1080px) {
  .hero,
  .admin-layout,
  .lead-manager,
  .product-grid,
  .solution-list,
  .roadmap,
  .metrics-strip,
  .metrics-strip.compact,
  .two-col,
  .proposal-grid,
  .content-admin,
  .settings-grid,
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  main {
    width: min(100% - 1rem, 1200px);
  }

  .hero,
  .admin-layout,
  .lead-manager,
  .product-grid,
  .solution-list,
  .roadmap,
  .metrics-strip,
  .metrics-strip.compact,
  .two-col,
  .proposal-grid,
  .content-admin,
  .settings-grid,
  .panel-grid,
  .detail-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .content-section,
  .page,
  .info-card,
  .admin-sidebar,
  .admin-main,
  .arch-block,
  .metric-card,
  .product-card,
  .solution-card {
    padding: 1rem;
  }
}
