:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #667085;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --line: #dce2eb;
  --blue: #2f80ed;
  --coral: #ff6f61;
  --amber: #f7a928;
  --green: #27ae60;
  --violet: #7b61ff;
  --cyan: #18a7b5;
  --lime: #8bbf24;
  --rose: #d94c7b;
  --shadow: 0 18px 45px rgba(26, 32, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.site-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  background: #101625;
  color: #f7fafc;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--coral) 52%, var(--amber));
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: #aab5c8;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav a {
  border-radius: 8px;
  padding: 10px 11px;
  color: #c8d1e4;
  font-size: 14px;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav .active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  outline: none;
}

.language-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dce6f7;
  font-size: 13px;
}

.language-box a {
  color: #9bc4ff;
}

.main-content {
  min-width: 0;
  padding: 24px;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #dfefff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.96) 0%, rgba(247, 248, 251, 0.78) 34%, rgba(247, 248, 251, 0.18) 66%),
    linear-gradient(180deg, rgba(16, 22, 37, 0.08), rgba(16, 22, 37, 0.18));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: clamp(28px, 6vw, 68px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 520px;
  margin-bottom: 26px;
  color: #34405a;
  font-size: 18px;
}

.search-panel {
  width: min(100%, 540px);
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: #465168;
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.search-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

.search-row button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.search-row button:hover {
  background: #236fd1;
}

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 30px;
}

.notice-bar span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #4a5568;
  font-size: 13px;
}

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

.section-heading.compact {
  margin-bottom: 14px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid currentColor;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(27, 36, 55, 0.06);
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(27, 36, 55, 0.12);
  outline: none;
}

.module-card strong {
  color: var(--ink);
  font-size: 19px;
}

.module-card small {
  color: var(--muted);
}

.module-code {
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 12%, white);
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
}

.accent-blue { color: var(--blue); }
.accent-coral { color: var(--coral); }
.accent-amber { color: var(--amber); }
.accent-green { color: var(--green); }
.accent-violet { color: var(--violet); }
.accent-cyan { color: var(--cyan); }
.accent-lime { color: var(--lime); }
.accent-rose { color: var(--rose); }

.no-results {
  margin: 18px 0 0;
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 28px;
}

.panel,
.roadmap-grid article,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel {
  padding: 22px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.status-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-list dt {
  color: #34405a;
  font-weight: 700;
}

.status-list dd {
  margin: 0;
  color: var(--muted);
}

.roadmap {
  margin-top: 34px;
}

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

.roadmap-grid article {
  padding: 18px;
}

.roadmap-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.roadmap-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.roadmap-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 22px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-left: 14px;
  color: #2563eb;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(47, 128, 237, 0.12), rgba(255, 111, 97, 0.12)),
    #fff;
  border: 1px solid var(--line);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.status-pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #45536d;
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 26px;
  color: var(--muted);
}

.content-page {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.content-page article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-page article.callout {
  border-color: rgba(47, 128, 237, 0.34);
  background: linear-gradient(120deg, rgba(47, 128, 237, 0.1), rgba(24, 167, 181, 0.08)), #fff;
}

.content-page h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.content-page p {
  color: #465168;
}

.content-page p:last-child,
.content-page ul:last-child {
  margin-bottom: 0;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  color: #465168;
}

.plain-list li + li {
  margin-top: 8px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  color: #2563eb;
  font-weight: 700;
}

.data-workspace,
.tool-shell {
  display: grid;
  gap: 16px;
}

.loading-state,
.data-hero,
.data-empty,
.data-section,
.tool-panel,
.tool-card,
.error-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.loading-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.data-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 22px;
}

.data-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.data-hero h2,
.data-empty h2 {
  margin-bottom: 8px;
}

.data-hero p,
.data-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.data-empty {
  min-height: 280px;
  display: grid;
  align-items: center;
  padding: 24px;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.field-list span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: #265caa;
  font-size: 13px;
  font-weight: 700;
}

.data-section {
  padding: 22px;
}

.table-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.table-tools label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 320px);
  color: #45536d;
  font-size: 13px;
  font-weight: 700;
}

.table-tools input,
.form-grid input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #34405a;
  background: #f8fafc;
  font-weight: 800;
}

.task-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.task-card,
.tool-card {
  padding: 18px;
}

.task-card span,
.tool-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.task-card strong,
.tool-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.task-card p,
.tool-card p,
.tool-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-strip a,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #101625;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.tool-panel {
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-top: 18px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #45536d;
  font-size: 13px;
  font-weight: 700;
}

.form-grid button {
  align-self: end;
  min-width: 90px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.map-preview {
  overflow: hidden;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.map-grid span {
  aspect-ratio: 1.7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.2), rgba(139, 191, 36, 0.22)),
    #edf5f1;
  border: 1px solid rgba(47, 128, 237, 0.18);
}

.error-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 20px;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

.error-brand {
  width: fit-content;
}

.error-panel {
  padding: clamp(24px, 6vw, 46px);
  box-shadow: var(--shadow);
}

.error-panel p {
  max-width: 560px;
  color: var(--muted);
}

.empty-state strong {
  color: #34405a;
  font-size: 20px;
}

.placeholder-lines {
  width: min(100%, 760px);
  display: grid;
  gap: 12px;
}

.placeholder-lines span {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf2f7, #f8fafc, #edf2f7);
}

.placeholder-lines span:nth-child(2) {
  width: 82%;
}

.placeholder-lines span:nth-child(3) {
  width: 58%;
}

@media (max-width: 1100px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side-nav a {
    white-space: nowrap;
  }

  .language-box {
    margin-top: 0;
  }

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

@media (max-width: 760px) {
  .main-content {
    padding: 14px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(247, 248, 251, 0.97) 0%, rgba(247, 248, 251, 0.84) 52%, rgba(247, 248, 251, 0.2) 100%);
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .module-grid,
  .dashboard,
  .roadmap-grid,
  .page-header,
  .data-hero,
  .task-grid,
  .tool-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .status-pill {
    justify-self: start;
  }

  .data-meta {
    justify-content: flex-start;
  }

  .site-footer a {
    display: inline-block;
    margin: 8px 14px 0 0;
  }
}
