:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --paper: #ffffff;
  --violet: #5b54c8;
  --violet-dark: #3c3489;
  --teal: #0f9f9a;
  --amber: #e79a37;
  --green: #19a66a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

img {
  display: block;
  max-width: 100%;
}

.view-section:not(.active) {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-en {
  margin-left: 6px;
  color: var(--violet);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  color: #475569;
  font-size: 15px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--violet-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.header-action,
.button.primary {
  color: #fff;
  background: var(--violet-dark);
}

.button.ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 86px 6vw 64px;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(0deg, transparent 0, transparent 23px, rgba(91, 84, 200, 0.06) 24px),
    repeating-linear-gradient(90deg, transparent 0, transparent 23px, rgba(15, 159, 154, 0.05) 24px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 10px;
  color: #334155;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
}

.platform-copy {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.dashboard {
  padding: 24px;
  color: #e5eefc;
  background: #080b12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.dash-top,
.score-row,
.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dash-top p,
.score-main p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.dash-top strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.dash-top span {
  padding: 4px 10px;
  color: #07130f;
  background: #58e6a4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score-row {
  margin: 28px 0;
  padding: 22px;
  background: #101826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.score {
  color: #fff;
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
}

.score-unit {
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
}

.rank-box {
  min-width: 118px;
  padding: 14px;
  text-align: center;
  background: rgba(91, 84, 200, 0.24);
  border-radius: 8px;
}

.rank-box span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
}

.rank-box strong {
  color: #fff;
  font-size: 24px;
}

.signal-list {
  display: grid;
  gap: 20px;
}

.signal-list div {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.signal-list i {
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  border-radius: 999px;
}

.signal-list b {
  color: #fff;
}

.dash-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-footer strong {
  color: #58e6a4;
  font-size: 24px;
}

.section {
  padding: 96px 6vw;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.18;
}

.section-head p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 44px;
  align-items: start;
}

.about-text {
  color: #334155;
  font-size: 18px;
  line-height: 2.05;
}

.about-text strong {
  color: var(--violet-dark);
  font-size: 1.12em;
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.metrics-wide {
  margin-top: 48px;
}

.metrics div,
.service-card,
.case-grid article,
.contact-panel,
.cert-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metrics div {
  padding: 18px;
}

.metrics strong {
  display: block;
  color: var(--violet-dark);
  font-size: 30px;
  line-height: 1.1;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.cert-wrap {
  display: grid;
  gap: 14px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cert-grid figure {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.cert-grid img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.cert-caption {
  margin: 0;
  padding: 12px 14px;
  color: #334155;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.services,
.cases {
  background: var(--soft);
}

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

.service-card {
  padding: 28px;
  min-height: 360px;
}

.service-index {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3,
.case-grid h3 {
  margin: 12px 0;
  font-size: 24px;
}

.service-time {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  color: #fff;
  background: var(--violet-dark);
  border-radius: 999px;
  font-size: 14px;
}

.service-card p,
.case-grid p {
  color: var(--muted);
}

.service-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 8px 0;
  color: #334155;
  border-top: 1px solid #edf2f7;
}

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

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -12px 0 34px;
}

.case-stats div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-stats strong {
  display: block;
  color: var(--teal);
  font-size: 30px;
  line-height: 1.1;
}

.case-stats span {
  color: var(--muted);
  font-size: 14px;
}

.case-grid article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.case-body {
  flex: 1;
  padding: 26px;
}

.case-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
}

.case-grid .case-body > span::before {
  content: attr(data-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f0ff;
  border: 1px solid #ded8ff;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(91, 84, 200, 0.12);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 44px;
  align-items: center;
  padding: 86px 6vw;
  color: #fff;
  background: #111827;
}

.contact-copy p:not(.eyebrow) {
  color: #cbd5e1;
}

.contact-panel {
  display: grid;
  gap: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-panel div {
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-panel div:last-child {
  border-bottom: 0;
}

.contact-panel span {
  display: block;
  color: #9ca3af;
  font-size: 14px;
}

.contact-panel strong {
  color: #fff;
  font-size: 22px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}

.case-metrics div {
  padding: 16px 10px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

.case-metrics div:last-child {
  border-right: 0;
}

.case-metrics strong {
  display: block;
  color: var(--amber);
  font-size: 23px;
  line-height: 1.1;
}

.case-metrics span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 6vw;
  color: #94a3b8;
  background: #080b12;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 0 20px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding: 5px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }

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

  .hero {
    min-height: auto;
    padding: 42px 20px 48px;
  }

  .section,
  .contact {
    padding: 64px 20px;
  }

  .metrics,
  .case-stats,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 14px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-en {
    display: inline;
    margin-left: 4px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .dashboard {
    padding: 16px;
  }

  .signal-list {
    gap: 16px;
  }

  .signal-list div {
    grid-template-columns: 76px minmax(110px, 1fr) 30px;
    gap: 10px;
  }

  .score-row,
  .dash-top,
  .dash-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics,
  .case-stats,
  .service-grid,
  .case-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
