:root {
  --blue: #1b4f9c;
  --blue-deep: #14377a;
  --blue-soft: #edf5ff;
  --red: #d91f2d;
  --ink: #1c2638;
  --muted: #657184;
  --line: #e6ebf2;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --shadow: 0 18px 48px rgba(18, 49, 102, 0.12);
  --radius: 6px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #fff;
}

body.auth-modal-open,
body.payment-qr-modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin: 0 auto;
}

.shell-wide {
  width: min(100% - 28px, 1320px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(90deg, rgba(27, 79, 156, 0.08), rgba(217, 31, 45, 0.06)),
    rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(27, 79, 156, 0.12);
  box-shadow: 0 14px 36px rgba(17, 42, 87, 0.09);
  backdrop-filter: blur(14px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #0b78cb 48%, var(--red));
}

.site-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 26px;
}

.site-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 172px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 0;
  background: transparent;
}

.brand-mark svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 10px 18px rgba(18, 49, 102, 0.16));
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 16px;
  color: var(--blue-deep);
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  color: #26364f;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.user-pill:hover {
  transform: translateY(-1px);
}

.button-accent {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 31, 45, 0.18);
}

.button-ghost {
  border-color: var(--line);
  color: var(--blue);
  background: #fff;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button-text {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
}

.user-pill {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 34, 76, 0.86) 0%, rgba(12, 34, 76, 0.56) 40%, rgba(12, 34, 76, 0.08) 78%),
    var(--hero-image) center / cover no-repeat;
}

.hero-content {
  display: grid;
  align-content: center;
  min-height: 640px;
  max-width: 720px;
  margin-left: max(16px, calc((100vw - var(--shell)) / 2));
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.9;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-visual .eyebrow {
  color: #fff;
}

.hero-actions,
.card-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-strip {
  position: relative;
  z-index: 5;
  margin-top: -72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 156px;
  padding: 28px 28px 24px;
  border-right: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.service-card:last-child {
  border-right: 0;
}

.service-card span {
  width: 42px;
  height: 4px;
  background: var(--red);
}

.service-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-card:hover {
  color: #fff;
  background: var(--blue);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--bg);
}

.section-blue {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1c66b2 100%);
}

.section-blue .eyebrow,
.section-blue .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.15;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(18, 49, 102, 0.08);
}

.panel img {
  object-fit: cover;
}

.panel-copy {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.panel-copy h3,
.contact-panel h3,
.payment-action h3,
.record-panel h3,
.detail-aside h3 {
  margin: 0;
}

.panel-copy p,
.payment-action p,
.full-section p,
.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.product-link {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 100%;
}

.product-card.is-compact .product-link {
  grid-template-columns: 130px minmax(0, 1fr);
}

.product-cover {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 12px;
  background: #f7faff;
}

.product-cover img {
  height: 100%;
  min-height: 180px;
  object-fit: contain;
}

.product-card h3 {
  color: var(--blue-deep);
}

.chip-row,
.chip-column {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span,
.chip-column span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
}

.about-split img {
  min-height: 360px;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

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

.stat-grid article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.stat-grid span {
  color: rgba(255, 255, 255, 0.82);
}

.solution-grid,
.download-grid,
.case-grid,
.contact-cards,
.about-layout,
.payment-layout,
.profile-layout,
.detail-layout {
  display: grid;
  gap: 24px;
}

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

.solution-card img {
  aspect-ratio: 555 / 218;
}

.solution-card strong {
  color: var(--red);
}

.download-grid,
.case-grid,
.about-layout,
.payment-layout,
.profile-layout,
.detail-layout,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card img,
.case-card img,
.payment-preview img {
  aspect-ratio: 16 / 9;
}

.page-hero {
  padding: 92px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 45, 99, 0.94), rgba(28, 102, 178, 0.72)),
    url("../images/reference/hero-03.jpg") center / cover no-repeat;
}

.page-hero .eyebrow,
.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.detail-hero {
  background:
    linear-gradient(90deg, rgba(16, 45, 99, 0.96), rgba(28, 102, 178, 0.76)),
    url("../images/reference/hero-02.jpg") center / cover no-repeat;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
}

.detail-hero-grid img {
  max-height: 420px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.detail-sections {
  display: grid;
  gap: 18px;
}

.detail-aside,
.payment-action,
.record-panel,
.capability-panel {
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 28px;
}

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

.detail-gallery img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(18, 49, 102, 0.08);
}

.full-section {
  padding: 28px;
}

.full-section h3 {
  margin: 0 0 14px;
  color: var(--blue-deep);
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.contact-layout {
  display: grid;
  gap: 24px;
}

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

.contact-panel,
.contact-form,
.auth-form,
.profile-form {
  padding: 28px;
}

.contact-form,
.auth-form,
.profile-form {
  display: grid;
  gap: 14px;
}

.contact-form label,
.auth-form label,
.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.auth-form input,
.profile-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.auth-form input:focus,
.profile-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 79, 156, 0.1);
}

.realname-hint {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.agree-line {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  line-height: 1.7;
}

.agree-line input {
  width: auto;
  margin-top: 5px;
}

.agree-line a {
  color: var(--blue);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.is-locked {
  position: relative;
}

.is-locked::after {
  content: "付费核验后查看完整公司方案";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(20, 55, 122, 0.82);
  font-size: 1.4rem;
  font-weight: 800;
}

.record-list,
.text-stack,
.policy-layout {
  display: grid;
  gap: 16px;
}

.record-list article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
}

.record-list span,
.record-list small {
  color: var(--muted);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
}

.auth-modal.open {
  display: block;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, 0.62);
}

.auth-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  padding: 30px;
}

.auth-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  color: var(--ink);
  background: #eef3fb;
  font-size: 24px;
}

.auth-modal-head {
  padding-right: 42px;
}

.auth-modal-head h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.auth-modal-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  background: #eef3fb;
}

.auth-switch button {
  min-width: 92px;
  min-height: 38px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.auth-switch .is-active {
  color: #fff;
  background: var(--blue);
}

.footer-main {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 86% 20%, rgba(11, 120, 203, 0.36), transparent 28%),
    linear-gradient(135deg, #06111f 0%, #101b2d 46%, #071a36 100%);
}

.footer-main::before {
  content: "";
  position: absolute;
  inset: -20% -8% auto auto;
  width: 52%;
  height: 140%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px);
  transform: skewX(-18deg);
  opacity: 0.65;
}

.footer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  padding: 72px 0 34px;
}

.footer-lead {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-kicker {
  margin: 0;
  color: #5ec5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.footer-lead h2,
.footer-lead p,
.terminal-row span,
.terminal-row strong,
.footer-bottom span {
  margin: 0;
}

.footer-lead h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.footer-lead p {
  max-width: 560px;
  line-height: 1.9;
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.footer-legal-line a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-terminal {
  display: grid;
  gap: 1px;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.terminal-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  background: rgba(3, 12, 25, 0.42);
}

.terminal-row span {
  color: #5ec5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.terminal-row strong {
  color: #fff;
  line-height: 1.7;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .site-bar,
  .about-split,
  .detail-hero-grid,
  .detail-layout,
  .download-grid,
  .case-grid,
  .about-layout,
  .payment-layout,
  .profile-layout,
  .contact-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .service-grid,
  .product-matrix,
  .solution-grid,
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-visual,
  .hero-content {
    min-height: 560px;
  }

  .service-grid,
  .product-matrix,
  .solution-grid,
  .contact-cards,
  .detail-gallery,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .product-link,
  .product-card.is-compact .product-link {
    grid-template-columns: 1fr;
  }

  .button,
  .user-pill {
    width: 100%;
  }

  .site-actions,
  .hero-actions,
  .card-actions,
  .section-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-bottom,
  .terminal-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
