:root {
  --home-primary: #5b5bf7;
  --home-primary-dark: #4545d7;
  --home-accent: #22c7a9;
  --home-ink: #172033;
  --home-muted: #667085;
  --home-line: #e7eaf2;
  --home-soft: #f5f7fb;
  --home-card: #ffffff;
  --home-radius-lg: 28px;
  --home-radius-md: 20px;
  --home-shadow: 0 24px 70px rgba(39, 49, 85, 0.11);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--home-ink);
  background: #f7f8fc;
}

.home-page,
.home-page * {
  box-sizing: border-box;
}

.home-page {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.home-page::before,
.home-page::after {
  position: absolute;
  z-index: -1;
  width: min(420px, 100%);
  height: 420px;
  border-radius: 50%;
  filter: blur(12px);
  content: "";
  pointer-events: none;
}

.home-page::before {
  top: -170px;
  left: 0;
  background: rgba(91, 91, 247, 0.09);
}

.home-page::after {
  top: 440px;
  right: 0;
  background: rgba(34, 199, 169, 0.08);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 54px;
  min-height: 510px;
  padding: 64px 68px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(112, 238, 211, 0.22), transparent 27%),
    radial-gradient(circle at 22% 110%, rgba(129, 140, 248, 0.28), transparent 34%),
    linear-gradient(135deg, #20244c 0%, #30366f 48%, #4143a5 100%);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 30px 80px rgba(31, 37, 85, 0.23);
}

.home-hero::before {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.02);
  content: "";
}

.home-hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
}

.home-kicker,
.home-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9fff1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-kicker {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.home-hero h1 {
  max-width: 650px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-hero-lead {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 17px;
  line-height: 1.9;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-actions .btn:hover,
.home-hero-actions .btn:focus {
  transform: translateY(-2px);
}

.home-primary-action,
.home-primary-action:hover,
.home-primary-action:focus {
  color: #24304a;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.home-secondary-action,
.home-secondary-action:hover,
.home-secondary-action:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.home-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
}

.home-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-trust-list i {
  color: #70eed3;
}

.home-hero-visual {
  position: relative;
  z-index: 2;
  min-height: 370px;
}

.home-visual-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 310px;
  height: 310px;
  background: rgba(112, 238, 211, 0.19);
  border-radius: 50%;
  filter: blur(42px);
  transform: translate(-50%, -50%);
}

.home-upload-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 90%);
  padding: 44px 30px 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(14, 19, 60, 0.28);
  transform: translate(-50%, -50%) rotate(1.5deg);
}

.home-illustration-icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, var(--home-primary), #8585ff);
  border-radius: 22px;
  box-shadow: 0 15px 30px rgba(91, 91, 247, 0.32);
  place-items: center;
}

.home-upload-illustration strong {
  color: var(--home-ink);
  font-size: 20px;
}

.home-upload-illustration > span {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 13px;
}

.home-illustration-progress {
  width: 100%;
  height: 7px;
  margin-top: 30px;
  overflow: hidden;
  background: #eceefa;
  border-radius: 99px;
}

.home-illustration-progress i {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--home-primary), var(--home-accent));
  border-radius: inherit;
}

.home-float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 36px auto;
  column-gap: 10px;
  min-width: 150px;
  padding: 13px 15px;
  color: var(--home-ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(17, 24, 70, 0.2);
}

.home-float-card i {
  grid-row: 1 / 3;
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--home-primary);
  background: #eeeeff;
  border-radius: 10px;
  place-items: center;
}

.home-float-card span {
  color: var(--home-muted);
  font-size: 11px;
}

.home-float-card strong {
  font-size: 15px;
}

.home-float-card-size {
  top: 12px;
  right: -4px;
}

.home-float-card-count {
  bottom: 16px;
  left: -12px;
}

.home-stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: calc(100% - 80px);
  margin: -32px auto 0;
  overflow: hidden;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: 18px;
  box-shadow: var(--home-shadow);
}

.home-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 22px 24px;
  background: #fff;
}

.home-stat-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--home-primary);
  font-size: 18px;
  background: #f0f0ff;
  border-radius: 12px;
  place-items: center;
}

.home-stat-item div {
  min-width: 0;
}

.home-stat-item strong,
.home-stat-item span {
  display: block;
}

.home-stat-item strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.home-stat-item div span {
  overflow: hidden;
  color: var(--home-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-workspace {
  width: 100%;
  margin-top: 52px;
}

.home-notice {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin: 0 0 18px;
  padding: 0 16px;
  overflow: hidden;
  background: #fff8e8;
  border: 1px solid #f5e6bd;
  border-radius: 14px;
}

.home-notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  color: #b77a00;
  background: #ffedbd;
  border-radius: 9px;
  place-items: center;
}

.home-notice .wrap {
  min-width: 0;
  padding: 0;
  color: #7a5a16;
}

.home-notice li {
  color: inherit;
}

.home-upload-card,
.home-result-panel {
  overflow: hidden;
  background: var(--home-card);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-md);
  box-shadow: 0 18px 55px rgba(43, 52, 89, 0.08);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 30px 20px;
}

.home-section-eyebrow {
  color: var(--home-primary);
}

.home-section-head h2,
.home-benefit-intro h2 {
  margin: 5px 0 6px;
  color: var(--home-ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.home-section-head p,
.home-benefit-intro p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.7;
}

.home-qr-button,
.home-qr-button:hover,
.home-qr-button:focus {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: var(--home-primary);
  font-weight: 700;
  background: #f1f1ff;
  border-color: #dedfff;
  border-radius: 10px;
}

.home-uploader {
  float: none;
  width: auto;
  margin: 0 22px 22px;
  overflow: hidden;
  background: #fafbff;
  border: 1px solid #e1e4f0;
  border-radius: 16px;
}

.home-uploader .uploader-files {
  position: relative;
  min-height: 260px !important;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(91, 91, 247, 0.09), transparent 30%),
    radial-gradient(circle at 86% 90%, rgba(34, 199, 169, 0.09), transparent 28%),
    #fafbff;
  border: 1px dashed #b7bde0 !important;
  border-radius: 16px 16px 0 0;
}

.home-uploader .uploader-files::before {
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(480px, calc(100% - 44px));
  padding-top: 83px;
  color: var(--home-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
  transform: translate(-50%, -50%);
  content: "拖拽图片到这里\A 或点击下方选择文件";
}

.home-uploader .uploader-files::after {
  position: absolute;
  top: calc(45% - 48px);
  left: 50%;
  display: grid;
  width: 70px;
  height: 70px;
  color: #fff;
  font-family: ZenIcon;
  font-size: 30px;
  font-style: normal;
  line-height: 70px;
  text-align: center;
  background: linear-gradient(135deg, var(--home-primary), #7979ff);
  border-radius: 20px;
  box-shadow: 0 15px 28px rgba(91, 91, 247, 0.27);
  transform: translate(-50%, -50%);
  content: "\e62f";
}

.home-uploader .uploader-files:has(.file)::before,
.home-uploader .uploader-files:has(.file)::after,
.home-uploader .uploader-files.has-upload-file::before,
.home-uploader .uploader-files.has-upload-file::after {
  display: none;
}

.home-uploader .uploader-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 70px;
  padding: 13px 15px;
  background: #fff;
  border-top: 0;
}

.home-uploader .uploader-actions .btn {
  min-height: 41px;
  padding: 9px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 10px;
}

.home-uploader .uploader-btn-browse,
.home-uploader .uploader-btn-browse:hover,
.home-uploader .uploader-btn-browse:focus {
  color: #fff;
  background: var(--home-primary);
  border-color: var(--home-primary);
}

.home-uploader .uploader-btn-start,
.home-uploader .uploader-btn-start:hover,
.home-uploader .uploader-btn-start:focus {
  color: #087f6c;
  background: #e8fbf7;
  border-color: #c6f0e8;
}

.home-uploader .uploader-btn-stop,
.home-uploader .uploader-btn-stop:hover,
.home-uploader .uploader-btn-stop:focus {
  color: #a65b12;
  background: #fff6e7;
  border-color: #f7dfb7;
}

.home-uploader .uploader-status {
  margin-left: auto;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}

.home-steps > div {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 16px;
}

.home-steps > div > span {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #dfe1ee;
  font-size: 22px;
  font-weight: 900;
}

.home-steps i {
  grid-row: 1 / 3;
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--home-primary);
  font-size: 18px;
  background: #f0f0ff;
  border-radius: 12px;
  place-items: center;
}

.home-steps strong {
  align-self: end;
  font-size: 14px;
}

.home-steps p {
  margin: 3px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-result-panel {
  float: none;
  width: 100%;
  padding: 0 24px 24px;
}

.home-result-head {
  padding-right: 0;
  padding-left: 0;
}

.home-result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  border: 0;
}

.home-result-tabs > li {
  float: none;
  margin: 0;
}

.home-result-tabs > li > a,
.home-result-tabs > li.active > a,
.home-result-tabs > li.active > a:hover,
.home-result-tabs > li.active > a:focus {
  margin: 0;
  padding: 9px 13px;
  color: var(--home-muted);
  background: var(--home-soft);
  border: 1px solid transparent;
  border-radius: 9px;
}

.home-result-tabs > li.active > a,
.home-result-tabs > li.active > a:hover,
.home-result-tabs > li.active > a:focus {
  color: var(--home-primary);
  background: #ededff;
  border-color: #dadaff;
}

.home-result-tabs .icon {
  margin-right: 5px;
}

.home-result-panel textarea.form-control {
  min-height: 124px;
  padding: 14px;
  color: #344054;
  background: #f9fafc;
  border-color: #e2e5ee;
  border-radius: 12px;
  box-shadow: none;
  resize: vertical;
}

.home-result-panel .tab-pane > .btn {
  min-width: 42px;
  min-height: 38px;
  color: var(--home-primary);
  background: #eeeeff;
  border-color: #dedfff;
  border-radius: 9px;
}

.home-benefits {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 50px;
  margin-top: 58px;
  padding: 45px 48px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
}

.home-benefit-intro {
  align-self: center;
}

.home-benefit-intro h2 {
  margin-top: 10px;
  font-size: 31px;
  line-height: 1.3;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.home-benefit-grid article {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--home-soft);
  border: 1px solid #edf0f5;
  border-radius: 16px;
}

.home-benefit-grid article > i {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--home-primary);
  font-size: 18px;
  background: #e9e9ff;
  border-radius: 12px;
  place-items: center;
}

.home-benefit-grid strong {
  display: block;
  margin: 2px 0 5px;
  font-size: 14px;
}

.home-benefit-grid p {
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .home-page {
    width: min(100% - 30px, 920px);
    padding-top: 24px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 52px 48px 34px;
  }

  .home-hero-content {
    text-align: center;
  }

  .home-hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero-actions,
  .home-trust-list {
    justify-content: center;
  }

  .home-hero-visual {
    min-height: 330px;
  }

  .home-stats {
    width: calc(100% - 40px);
  }

  .home-stat-item {
    padding: 18px;
  }

  .home-benefits {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-benefit-intro {
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  .home-page {
    width: min(100% - 24px, 680px);
    padding: 16px 0 44px;
  }

  .home-hero {
    min-height: 0;
    padding: 38px 24px 26px;
    border-radius: 22px;
  }

  .home-hero h1 {
    margin-top: 17px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .home-hero-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .home-trust-list {
    gap: 10px 16px;
    margin-top: 20px;
  }

  .home-hero-visual {
    min-height: 285px;
  }

  .home-upload-illustration {
    width: min(310px, 88%);
    padding: 32px 22px 26px;
  }

  .home-illustration-icon {
    width: 62px;
    height: 62px;
    font-size: 26px;
    border-radius: 18px;
  }

  .home-float-card {
    min-width: 130px;
    padding: 10px;
  }

  .home-float-card-size {
    right: -4px;
  }

  .home-float-card-count {
    bottom: 6px;
    left: -2px;
  }

  .home-stats {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin-top: -18px;
  }

  .home-stat-item {
    padding: 15px 17px;
  }

  .home-workspace {
    margin-top: 36px;
  }

  .home-section-head {
    align-items: flex-start;
    padding: 22px 20px 17px;
  }

  .home-section-head h2 {
    font-size: 22px;
  }

  .home-section-head p {
    font-size: 13px;
  }

  .home-uploader {
    margin: 0 14px 14px;
  }

  .home-uploader .uploader-files {
    min-height: 230px !important;
  }

  .home-steps {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .home-result-panel {
    padding: 0 16px 18px;
  }

  .home-benefits {
    margin-top: 38px;
    padding: 30px 24px;
    border-radius: 22px;
  }

  .home-benefit-intro h2 {
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .home-hero::before {
    top: -90px;
    right: -120px;
    width: 250px;
    height: 250px;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.025), 0 0 0 62px rgba(255, 255, 255, 0.02);
  }
  .home-page {
    width: calc(100% - 16px);
  }

  .home-hero {
    padding: 32px 18px 22px;
  }

  .home-kicker {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

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

  .home-hero-actions .btn {
    width: 100%;
  }

  .home-trust-list {
    font-size: 12px;
  }

  .home-hero-visual {
    min-height: 250px;
  }

  .home-upload-illustration {
    width: 92%;
    padding: 26px 16px 22px;
  }

  .home-upload-illustration strong {
    font-size: 17px;
  }

  .home-illustration-progress {
    margin-top: 22px;
  }

  .home-float-card {
    display: none;
  }

  .home-stats {
    width: calc(100% - 16px);
  }

  .home-notice {
    min-height: 46px;
    padding: 0 10px;
  }

  .home-notice-icon {
    width: 29px;
    height: 29px;
  }

  .home-section-head {
    display: block;
    padding: 20px 16px 15px;
  }

  .home-qr-button {
    width: 100%;
    margin-top: 14px;
  }

  .home-uploader {
    margin: 0 9px 10px;
  }

  .home-uploader .uploader-files {
    min-height: 210px !important;
  }

  .home-uploader .uploader-files::before {
    width: calc(100% - 24px);
    padding-top: 70px;
    font-size: 15px;
  }

  .home-uploader .uploader-files::after {
    top: calc(45% - 42px);
    width: 58px;
    height: 58px;
    font-size: 25px;
    line-height: 58px;
    border-radius: 16px;
  }

  .home-uploader .uploader-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .home-uploader .uploader-actions .btn {
    width: 100%;
    margin: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .home-uploader .uploader-status {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .home-steps > div {
    padding: 16px;
  }

  .home-result-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .home-result-tabs > li > a,
  .home-result-tabs > li.active > a,
  .home-result-tabs > li.active > a:hover,
  .home-result-tabs > li.active > a:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 5px;
  }

  .home-result-tabs .home-tab-label {
    display: none !important;
  }

  .home-result-tabs .icon {
    margin: 0;
    font-size: 17px;
  }

  .home-benefits {
    padding: 26px 17px;
  }

  .home-benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-hero-actions .btn {
    transition: none;
  }
}