:root {
  --ink: #122033;
  --ink-2: #20324d;
  --muted: #617187;
  --line: #dce6f2;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --blue: #2467e8;
  --blue-2: #0f4fc9;
  --cyan: #12aaa8;
  --green: #147a3d;
  --orange: #d96432;
  --shadow: 0 24px 70px rgba(18, 32, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 52px;
  color: #fff;
  transition: background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, border 0.22s ease;
}

.topbar[data-elevated="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 230, 242, 0.9);
  box-shadow: 0 10px 36px rgba(18, 32, 51, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  opacity: 0.86;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.top-action {
  min-width: 96px;
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.top-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar[data-elevated="true"] .top-action:hover {
  background: #eef5ff;
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  color: #fff;
  background: url("./assets/invoice-demo.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 23, 42, 0.9), rgba(9, 23, 42, 0.64) 48%, rgba(9, 23, 42, 0.24)),
    linear-gradient(0deg, rgba(9, 23, 42, 0.82), rgba(9, 23, 42, 0.12) 54%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 128px 56px 28px;
}

.hero-content {
  width: min(860px, 100%);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 78px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  width: min(710px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(36, 103, 232, 0.32);
}

.btn.primary:hover {
  background: var(--blue-2);
}

.btn.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(820px, 100%);
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 16px;
}

.hero-metrics span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.hero-panel {
  width: min(1120px, 100%);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fafd;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.window-bar span:nth-child(2) {
  background: #f59e0b;
}

.window-bar span:nth-child(3) {
  background: #22c55e;
}

.window-bar strong {
  margin-left: 8px;
  color: #123d76;
  font-size: 14px;
}

.result-table {
  padding: 14px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 108px 76px;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 0 12px 8px;
  color: #53667f;
  font-size: 13px;
  font-weight: 900;
}

.table-row {
  min-height: 58px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fff;
}

.table-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row b {
  color: var(--green);
}

.table-row.is-active {
  border-color: #98bbff;
  background: #edf5ff;
}

.table-row.muted {
  opacity: 0.72;
}

.section {
  padding: 92px 56px;
}

.section-head {
  width: min(780px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section h2 {
  margin: 0;
  color: #10203c;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: 0;
}

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

.workflow-section {
  padding-top: 76px;
  background: linear-gradient(180deg, #fff, #f7fafd);
}

.workflow {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 32, 51, 0.05);
  transition: border 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.step:hover {
  transform: translateY(-1px);
}

.step span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: #e9f2ff;
  font-size: 13px;
}

.step.is-selected {
  color: #123d76;
  border-color: #8fb5ff;
  background: #eef5ff;
}

.workflow-detail {
  width: min(1080px, 100%);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 32, 51, 0.08);
}

.workflow-detail h3 {
  margin: 0 0 10px;
  font-size: 25px;
  color: #10203c;
}

.workflow-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.workflow-visual {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 103, 232, 0.08), rgba(18, 170, 168, 0.08)),
    #f6f9fd;
}

.file-stack {
  width: min(272px, 100%);
}

.file-stack span {
  display: block;
  margin: 10px 0;
  padding: 12px 14px;
  color: #1d3556;
  background: #fff;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 32, 51, 0.06);
}

.feature-section {
  background: #f4f8fc;
}

.feature-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #dde7f4;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card::before {
  content: attr(data-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 18px;
  color: #0f4fc9;
  background: #edf5ff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #b9cff5;
  box-shadow: 0 18px 42px rgba(18, 32, 51, 0.12);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #10203c;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  gap: 44px;
  align-items: center;
  background: #fff;
}

.quality-copy h2,
.contact-section h2 {
  margin: 0;
  color: #10203c;
  font-size: 40px;
  line-height: 1.18;
}

.checks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
  color: #22334d;
  font-weight: 800;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(18, 170, 168, 0.12);
}

.audit-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(18, 32, 51, 0.14);
}

.audit-header {
  padding: 15px 18px;
  color: #123d76;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.audit-body {
  min-height: 448px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.audit-list {
  padding: 14px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}

.audit-item {
  width: 100%;
  min-height: 68px;
  margin-bottom: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.audit-item:hover {
  transform: translateX(2px);
}

.audit-item span {
  display: block;
  color: var(--blue);
  font-weight: 900;
}

.audit-item.is-selected {
  border-color: #8fb5ff;
  background: #ecf4ff;
}

.doc-preview {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.mark {
  position: absolute;
  display: none;
  border: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.16);
  box-shadow: 0 0 0 999px rgba(18, 32, 51, 0.1);
}

.mark.is-visible {
  display: block;
}

.mark.company-a {
  left: 23%;
  top: 30%;
  width: 22%;
  height: 4.5%;
}

.mark.company-b {
  left: 21%;
  top: 73%;
  width: 22%;
  height: 5.5%;
}

.mark.total {
  left: 73%;
  top: 67%;
  width: 17%;
  height: 5%;
}

.compare-section {
  background: #fbfcfe;
}

.use-cases {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.use-cases div {
  min-height: 142px;
  padding: 22px;
  border: 1px solid #f1d8c8;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff7f2;
}

.use-cases strong,
.use-cases span {
  display: block;
}

.use-cases strong {
  margin-bottom: 8px;
  color: #402315;
  font-size: 18px;
}

.use-cases span {
  color: #70503e;
}

.pricing-section {
  background: #ffffff;
}

.pricing-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  position: relative;
  min-height: 174px;
  padding: 24px 18px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 32, 51, 0.06);
}

.price-card.is-featured {
  border-color: #8fb5ff;
  background: #edf5ff;
  box-shadow: 0 18px 42px rgba(36, 103, 232, 0.14);
}

.plan-name {
  display: block;
  color: #123d76;
  font-weight: 900;
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-top: 16px;
  color: #10203c;
  font-size: 30px;
  line-height: 1.1;
}

.price-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(18, 170, 168, 0.16), rgba(36, 103, 232, 0.12)),
    #f2fbfa;
}

.install-file {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 16px;
  color: #10203c;
  background: #ffffff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(18, 32, 51, 0.16);
}

.contact-card {
  justify-self: end;
  width: 232px;
  padding: 16px;
  border: 1px solid #d4e5e3;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(18, 32, 51, 0.1);
}

.contact-card img {
  width: 100%;
  border-radius: 6px;
}

.contact-card span {
  display: block;
  margin-top: 10px;
  font-weight: 900;
}

.footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  color: #52637a;
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 22px;
  }

  .nav {
    display: none;
  }

  .hero-inner {
    padding: 112px 22px 28px;
  }

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

  .hero-metrics,
  .workflow,
  .feature-grid,
  .pricing-grid,
  .use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 68px 22px;
  }

  .workflow-detail,
  .quality-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-card {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 64px;
  }

  .top-action {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 100px;
  }

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

  .hero-copy {
    font-size: 17px;
  }

  .hero-metrics,
  .workflow,
  .feature-grid,
  .pricing-grid,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .table-head,
  .table-row {
    grid-template-columns: 1fr;
  }

  .workflow-detail {
    padding: 20px;
  }

  .audit-body {
    grid-template-columns: 1fr;
  }

  .audit-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .doc-preview {
    min-height: 340px;
  }

  .section h2,
  .quality-copy h2,
  .contact-section h2 {
    font-size: 31px;
  }

  .footer {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px;
  }
}
