:root {
  --bg: #171d33;
  --bg-2: #1c2240;
  --bg-3: #20284a;
  --panel: rgba(41, 49, 87, 0.9);
  --panel-soft: rgba(48, 56, 97, 0.82);
  --panel-border: rgba(132, 149, 219, 0.18);
  --text: #eef2ff;
  --text-soft: #aeb8da;
  --text-dim: #818cb3;
  --accent-blue: #56b9ff;
  --accent-cyan: #2fd0f3;
  --accent-violet: #6f61ff;
  --accent-pink: #bf5cff;
  --accent-green: #2aa97b;
  --accent-red: #b54a61;
  --shadow: 0 20px 50px rgba(5, 10, 25, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1280px;
  --nav-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Bahnschrift", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 20% 20%, rgba(60, 92, 206, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 80%, rgba(130, 77, 211, 0.12), transparent 28rem),
    linear-gradient(180deg, #1a2038 0%, #171c31 38%, #171b2d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  pointer-events: none;
}

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

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

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 900px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(18, 24, 44, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(132, 149, 219, 0.12);
}

.site-header .shell {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, #d19b45 0%, #975c13 56%, #57300a 100%);
  box-shadow: 0 14px 28px rgba(83, 48, 10, 0.34);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 1.14rem;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ffffff;
  background: rgba(86, 185, 255, 0.12);
  transform: translateY(-1px);
}

.page-main {
  padding-top: 1.5rem;
}

.section {
  padding: 2.3rem 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(20, 26, 47, 0.65), rgba(20, 25, 44, 0.15));
  border-top: 1px solid rgba(132, 149, 219, 0.08);
  border-bottom: 1px solid rgba(132, 149, 219, 0.08);
}

.app-hero {
  padding: 1.5rem 0 2rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 860px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(86, 185, 255, 0.05), transparent 28rem),
    linear-gradient(180deg, rgba(26, 32, 56, 0.98), rgba(21, 25, 44, 0.98));
  border: 1px solid rgba(132, 149, 219, 0.14);
  box-shadow: var(--shadow);
}

.app-shell-showcase {
  position: relative;
}

.app-topbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  background: rgba(34, 30, 27, 0.92);
  border-bottom: 1px solid rgba(132, 149, 219, 0.14);
}

.app-menu-item {
  flex: 0 0 auto;
  padding: 0.85rem 1.15rem;
  color: #f3f4fa;
  font-size: 0.95rem;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.app-menu-item.is-active,
.app-menu-item.is-active-2 {
  background: rgba(255, 255, 255, 0.06);
}

.app-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 806px;
}

.app-sidebar {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(31, 38, 69, 0.96), rgba(27, 33, 60, 0.96));
  border-right: 1px solid rgba(132, 149, 219, 0.12);
}

.app-panel {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(46, 54, 93, 0.7);
  border: 1px solid rgba(132, 149, 219, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.app-panel + .app-panel {
  margin-top: 1rem;
}

.app-panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.app-panel-title strong {
  font-size: 1rem;
}

.app-panel-title span {
  color: var(--text-dim);
  font-size: 0.88rem;
}

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

.app-button-grid-export {
  margin-top: 0.9rem;
}

.app-action,
.app-toggle,
.app-chip,
.app-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  color: #f3f6ff;
  background: rgba(97, 112, 165, 0.16);
  border: 1px solid rgba(132, 149, 219, 0.18);
}

.app-action-blue {
  background: linear-gradient(135deg, #43b9ff, #3274f1);
}

.app-action-violet {
  background: linear-gradient(135deg, #7a6cff, #5d4cff);
}

.app-action-pink {
  background: linear-gradient(135deg, #d464ff, #9657ff);
}

.app-action-teal {
  background: linear-gradient(135deg, #2d7789, #316973);
}

.app-action-cyan {
  background: linear-gradient(135deg, #25c9e7, #1da0d2);
}

.app-action-gray {
  background: linear-gradient(135deg, #7f8bad, #677392);
}

.app-action-red {
  background: linear-gradient(135deg, #8e3850, #aa3f55);
}

.app-action-wide {
  grid-column: 1 / -1;
}

.is-disabled {
  opacity: 0.5;
}

.app-row,
.app-mini-row,
.app-field-row {
  display: grid;
  gap: 0.65rem;
}

.app-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.app-mini-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

.app-field-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.app-toggle-green,
.app-chip.is-active {
  background: rgba(42, 169, 123, 0.22);
  border-color: rgba(57, 210, 151, 0.32);
}

.app-field {
  justify-content: flex-start;
  color: var(--text-dim);
  font-weight: 700;
}

.app-field-short {
  justify-content: center;
}

.app-divider {
  height: 14px;
  margin: 1rem 0;
  border-radius: 999px;
  background: rgba(14, 18, 34, 0.52);
  border: 1px solid rgba(132, 149, 219, 0.1);
}

.app-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(86, 185, 255, 0.06), transparent 22rem),
    linear-gradient(180deg, rgba(27, 33, 59, 0.95), rgba(22, 26, 46, 0.98));
}

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

.showcase-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.showcase-card-wide {
  grid-column: 1 / -1;
}

.showcase-card .showcase-menu,
.showcase-card .showcase-panel,
.showcase-card .showcase-panel.large {
  width: 100%;
}

.showcase-menu,
.showcase-panel {
  border-radius: 14px;
  border: 1px solid rgba(132, 149, 219, 0.18);
  background: rgba(44, 41, 41, 0.96);
  box-shadow: none;
}

.showcase-menu {
  width: 360px;
  padding: 0.5rem 0;
}

.showcase-menu.compact {
  width: 270px;
}

.showcase-menu-item {
  position: relative;
  padding: 0.72rem 1.4rem;
  color: #f1f4ff;
  font-size: 0.98rem;
}

.showcase-menu-item.is-arrow::after {
  position: absolute;
  right: 1.2rem;
  color: #e6e9f8;
  content: "›";
}

.showcase-menu-divider {
  height: 1px;
  margin: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-panel {
  width: 390px;
  padding: 1rem;
  background: rgba(30, 37, 65, 0.98);
}

.showcase-panel.large {
  width: 560px;
}

.showcase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.showcase-panel-head strong {
  font-size: 1.08rem;
}

.showcase-close {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #f4f6ff;
  font-size: 1.6rem;
  background: rgba(73, 82, 119, 0.48);
  border: 1px solid rgba(132, 149, 219, 0.18);
}

.showcase-slider {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(34, 41, 72, 0.96);
  border: 1px solid rgba(132, 149, 219, 0.1);
}

.showcase-slider label,
.showcase-select-box label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.showcase-slider em {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #56b9ff;
  font-style: normal;
  font-weight: 800;
  background: rgba(20, 31, 53, 0.96);
  border: 1px solid rgba(71, 140, 219, 0.42);
}

.showcase-slider-track {
  height: 16px;
  position: relative;
  overflow: visible;
  border-radius: 999px;
  background: rgba(76, 92, 140, 0.36);
}

.showcase-slider-track span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #4abaff, #2f79f5);
}

.showcase-slider-track span::after {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4aaeff;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(74, 174, 255, 0.15);
  transform: translateY(-50%);
  content: "";
}

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

.showcase-select-box {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(34, 41, 72, 0.96);
  border: 1px solid rgba(132, 149, 219, 0.1);
}

.showcase-select-value {
  position: relative;
  min-height: 82px;
  margin-top: 0.7rem;
  padding: 0 1.2rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  color: #f1f5ff;
  font-size: 1.08rem;
  font-weight: 800;
  background: rgba(20, 28, 52, 0.98);
  border: 1px solid rgba(54, 116, 200, 0.56);
}

.showcase-select-value::after {
  position: absolute;
  right: 1.2rem;
  color: #cfd7f6;
  font-size: 1.9rem;
  line-height: 1;
  content: "⌄";
}

.app-empty {
  text-align: center;
  max-width: 420px;
}

.app-empty-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.4rem;
  border-radius: 26px;
  border: 1px solid rgba(132, 149, 219, 0.18);
  background:
    linear-gradient(180deg, rgba(74, 86, 133, 0.45), rgba(47, 57, 94, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-empty h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
}

.app-empty p {
  margin: 0;
  color: var(--text-soft);
}

.page-hero {
  padding: 1rem 0 0.7rem;
}

.page-hero .shell {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.page-hero-dark .shell {
  background:
    radial-gradient(circle at top left, rgba(86, 185, 255, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(38, 45, 79, 0.94), rgba(29, 35, 61, 0.94));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #59beff 0%, #3476ef 100%);
  box-shadow: 0 14px 24px rgba(52, 118, 239, 0.24);
}

.button-ghost {
  color: #f0f4ff;
  background: rgba(80, 92, 140, 0.24);
  border: 1px solid rgba(132, 149, 219, 0.2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.compact-heading {
  margin-bottom: 1.05rem;
}

.feature-grid,
.role-grid,
.module-grid,
.two-column {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

.feature-card,
.role-card,
.module-card,
.essay-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.feature-card::after,
.role-card::after,
.module-card::after,
.essay-card::after,
.page-hero .shell::after {
  position: absolute;
  inset: auto auto -36% -6%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 185, 255, 0.14), transparent 72%);
  content: "";
  pointer-events: none;
}

.eyebrow,
.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  color: #80cfff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.feature-kicker::before {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: radial-gradient(circle, #59beff 0%, rgba(89, 190, 255, 0.26) 72%);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
}

h3 {
  font-size: 1.18rem;
}

p,
li {
  color: var(--text-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(49, 58, 96, 0.76);
  border: 1px solid rgba(132, 149, 219, 0.16);
}

.metric-card strong {
  display: block;
  font-size: 1rem;
}

.metric-card span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list li + li {
  margin-top: 0.72rem;
}

.site-footer {
  padding: 1.8rem 0 2.3rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(22, 27, 48, 0.92);
  color: var(--text);
  border: 1px solid rgba(132, 149, 219, 0.12);
  box-shadow: var(--shadow);
}

.footer-layout p,
.footer-layout a {
  color: var(--text-soft);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0.22rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1160px) {
  .feature-grid,
  .compact-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-grid,
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(132, 149, 219, 0.12);
  }

  .app-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header .shell,
  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .feature-grid,
  .compact-grid,
  .module-grid,
  .role-grid,
  .two-column,
  .showcase-grid,
  .hero-metrics,
  .app-button-grid,
  .app-row {
    grid-template-columns: 1fr;
  }

  .app-field-row,
  .app-mini-row {
    grid-template-columns: 1fr;
  }

  .page-hero .shell,
  .feature-card,
  .module-card,
  .role-card,
  .essay-card,
  .app-sidebar,
  .app-main {
    padding: 1.2rem;
  }

  .app-shell {
    min-height: auto;
  }

  .showcase-menu,
  .showcase-panel,
  .showcase-panel.large {
    width: 100%;
  }

  .showcase-select-grid {
    grid-template-columns: 1fr;
  }

  .showcase-slider {
    grid-template-columns: 1fr;
  }
}
