:root {
  --zh-accent: #f5b700;
  --zh-bg-page: #0a0a0a;
  --zh-bg-card: #1a1a1a;
  --zh-bg-footer: #111111;
  --zh-bg-nav: rgba(10, 10, 10, 0.85);
  --zh-text-white: #ffffff;
  --zh-text-gray: #8a8a8a;
  --zh-border-card: rgba(255, 255, 255, 0.08);
  --zh-font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --zh-font-en: Inter, system-ui, sans-serif;
  --zh-max-width: 1200px;
  --zh-page-px: 24px;
  --zh-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zh-bg-page);
  color: var(--zh-text-white);
  font-family: var(--zh-font-zh);
}

body.page-company {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(245, 183, 0, 0.12), transparent 34%),
    linear-gradient(180deg, #090d08 0%, #060806 52%, #050505 100%);
}

body.page-company::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(245, 183, 0, 0.06), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(255, 214, 10, 0.08), transparent 26%),
    radial-gradient(circle at 80% 12%, rgba(153, 255, 102, 0.06), transparent 22%);
}

body.page-company .navbar,
body.page-company main,
body.page-company .footer {
  position: relative;
  z-index: 1;
}

.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.44;
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  max-width: var(--zh-max-width);
  margin: 0 auto;
  padding-left: var(--zh-page-px);
  padding-right: var(--zh-page-px);
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: 64px;
  z-index: 100;
  background: var(--zh-bg-nav);
  border-bottom: 1px solid rgba(245, 183, 0, 0.1);
  backdrop-filter: blur(8px);
}

.nav-inner {
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
}

.brand {
  justify-self: start;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  color: var(--zh-text-gray);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.nav-link.active,
.nav-link:hover {
  color: var(--zh-text-white);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--zh-accent);
}

.primary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  border-radius: var(--zh-radius);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.primary-btn {
  border: 0;
  background: var(--zh-accent);
  color: #0a0a0a;
  font-weight: 600;
}

.outline-btn {
  border: 1px solid var(--zh-accent);
  background: transparent;
  color: var(--zh-text-white);
  font-weight: 500;
}

.outline-btn.small {
  width: 120px;
  height: 40px;
  border-radius: 6px;
  color: var(--zh-accent);
  font-size: 16px;
}

.nav-cta {
  justify-self: end;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.lang-switcher {
  position: relative;
}

.lang-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(245, 183, 0, 0.24);
  border-radius: 6px;
  color: var(--zh-text-white);
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-switcher summary i {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--zh-accent);
  border-bottom: 1.5px solid var(--zh-accent);
  transform: rotate(45deg) translateY(-1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 120px;
  padding: 8px;
  border: 1px solid rgba(245, 183, 0, 0.18);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.lang-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--zh-text-gray);
  font-size: 14px;
}

.lang-menu a:hover,
.lang-menu a.active {
  background: rgba(245, 183, 0, 0.12);
  color: var(--zh-accent);
}

.hero {
  position: relative;
  padding-top: 144px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.25;
  font-weight: 700;
}

.accent-rule {
  display: block;
  width: 60px;
  height: 2px;
  margin: 16px 0 24px;
  border-radius: 1px;
  background: var(--zh-accent);
}

.hero p {
  max-width: 440px;
  margin: 0 0 40px;
  color: var(--zh-text-gray);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.grid-stage {
  position: relative;
  height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 0, 0.15);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 217, 0, 0.12), transparent 40%),
    rgba(5, 10, 5, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 217, 0, 0.08) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
}

.grid-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 217, 0, 0.08), transparent 24%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 6px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.grid-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

#gridCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stats-section {
  padding-bottom: 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--zh-border-card);
  border-radius: var(--zh-radius);
  background: var(--zh-bg-card);
}

.stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 1px;
  height: 40px;
  transform: translateY(-50%);
  background: var(--zh-accent);
  opacity: 0.6;
}

.stat-card strong {
  color: var(--zh-accent);
  font-family: var(--zh-font-en);
  font-size: 32px;
  line-height: 1;
}

.stat-card span {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.features-section {
  padding-bottom: 80px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 20px;
  border: 1px solid var(--zh-border-card);
  border-radius: var(--zh-radius);
  background: var(--zh-bg-card);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--zh-accent);
}

.feature-icon,
.footer-links span {
  color: var(--zh-accent);
}

.feature-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--zh-text-gray);
  font-size: 13px;
  line-height: 1.7;
}

.proof-section {
  padding-bottom: 80px;
}

.proof-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.stars,
.proof-panel strong,
.proof-panel span {
  color: var(--zh-accent);
}

.stars {
  letter-spacing: 6px;
  font-size: 20px;
}

.proof-panel p {
  max-width: 680px;
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
}

.contact-section {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.contact-grid p {
  margin: 0;
  color: var(--zh-text-gray);
  line-height: 1.7;
}

.demo-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--zh-border-card);
  border-radius: var(--zh-radius);
  background: var(--zh-bg-card);
}

.demo-form label {
  display: grid;
  gap: 8px;
  color: var(--zh-text-gray);
  font-size: 14px;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--zh-radius);
  background: #0f0f0f;
  color: var(--zh-text-white);
  outline: none;
}

.demo-form input {
  height: 44px;
}

.demo-form textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--zh-accent);
}

.form-submit {
  width: 100%;
}

.form-message {
  color: var(--zh-accent) !important;
  font-size: 14px;
}

.form-error {
  color: #ff7f7f !important;
  font-size: 14px;
}

.form-message a {
  text-decoration: underline;
}

.slider-captcha {
  margin-top: 4px;
}

.slider-captcha-track {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--zh-radius);
  background: #101010;
  user-select: none;
}

.slider-captcha-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52px;
  border-radius: var(--zh-radius);
  background: linear-gradient(90deg, rgba(245, 183, 0, 0.16), rgba(245, 183, 0, 0.28));
  transition: width 0.12s ease;
}

.slider-captcha-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 72px;
  color: var(--zh-text-gray);
  font-size: 14px;
  text-align: center;
}

.slider-captcha-handle {
  position: absolute;
  left: 0;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--zh-radius);
  background:
    linear-gradient(135deg, rgba(245, 183, 0, 0.95), rgba(255, 214, 10, 0.72));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: grab;
}

.slider-captcha-handle::before,
.slider-captcha-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  transform: translateY(-50%);
}

.slider-captcha-handle::before {
  left: 21px;
}

.slider-captcha-handle::after {
  left: 28px;
}

.slider-captcha-track.is-verified {
  border-color: rgba(245, 183, 0, 0.42);
}

.slider-captcha-track.is-verified .slider-captcha-text {
  color: var(--zh-accent);
}

.slider-captcha-track.is-verified .slider-captcha-handle {
  cursor: default;
}

.footer {
  padding: 48px 0 32px;
  background: var(--zh-bg-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.footer-brand span,
.footer-links a,
.copyright {
  color: var(--zh-text-gray);
}

.footer-brand span {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.footer-contact span,
.footer-contact a {
  color: var(--zh-text-gray);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: normal;
}

.mail-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: var(--zh-bg-card);
  color: var(--zh-text-gray);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-policy-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zh-text-gray);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.footer-policy-trigger:hover {
  color: var(--zh-accent);
}

.footer-links span {
  width: 14px;
  height: 14px;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.copyright span:last-child {
  color: rgba(138, 138, 138, 0.5);
  font-family: var(--zh-font-en);
}

.policy-dialog {
  width: min(680px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(245, 183, 0, 0.2);
  border-radius: 16px;
  background: #121212;
  color: var(--zh-text-white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.policy-detail-dialog {
  width: min(860px, calc(100vw - 32px));
}

.policy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.policy-dialog-card {
  position: relative;
  padding: 32px;
}

.policy-detail-card {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.policy-dialog-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.policy-dialog-card p {
  margin: 0 0 14px;
  color: var(--zh-text-gray);
  line-height: 1.8;
}

.policy-dialog-card strong {
  color: var(--zh-text-white);
}

.policy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--zh-text-white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.policy-link-btn,
.policy-primary-btn {
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.policy-link-btn {
  border: 1px solid rgba(245, 183, 0, 0.32);
  background: transparent;
  color: var(--zh-accent);
}

.policy-primary-btn {
  border: 0;
  background: var(--zh-accent);
  color: #0a0a0a;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-links {
    gap: 16px;
  }

  .nav-link:nth-child(2),
  .nav-link:nth-child(3),
  .nav-link:nth-child(5) {
    display: none;
  }

  .hero {
    padding-top: 128px;
  }

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

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

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

  .stat-card::after {
    display: none;
  }

  .copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  :root {
    --zh-page-px: 18px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-cta {
    display: none;
  }

  .nav-inner {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    justify-self: end;
  }

  .nav-actions {
    gap: 0;
  }

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

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

  .primary-btn,
  .outline-btn {
    width: 100%;
  }
}
