:root {
  --bg: #eef5ff;
  --bg-strong: #dce9ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --line: rgba(155, 184, 229, 0.34);
  --text: #0f2350;
  --subtext: #56709f;
  --blue: #1f63ff;
  --blue-strong: #1547cf;
  --blue-soft: #eaf1ff;
  --shadow: 0 24px 80px rgba(31, 76, 168, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow: hidden;
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 18%, rgba(72, 132, 255, 0.14), transparent 22%),
    radial-gradient(circle at 94% 14%, rgba(110, 162, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #e5efff 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(540px, 1.28fr);
  gap: 18px;
  align-items: center;
}

.hero-copy {
  padding: 26px 10px 26px 0;
}

.hero-kicker,
.panel-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(118, 157, 222, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 20px 0 18px;
  font-size: clamp(44px, 5.1vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin: 0;
  color: var(--subtext);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-entry-note {
  margin: 2px 0 0;
  color: #335ea8;
  font-size: 13px;
  line-height: 1.6;
}

.hero-button {
  min-width: 180px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.hero-button.primary {
  color: #fff;
  background: linear-gradient(135deg, #2f75ff 0%, #1650e8 100%);
  box-shadow: 0 18px 40px rgba(32, 90, 219, 0.28);
}

.hero-button.secondary {
  color: var(--blue-strong);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(144, 179, 236, 0.32);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-metrics article,
.business-card,
.login-panel,
.business-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  min-height: 118px;
  padding: 18px 20px;
  border-radius: 24px;
}

.hero-metrics strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 12px;
  color: var(--subtext);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.content-section {
  display: block;
  margin-top: 26px;
}

.business-panel,
.login-dialog__surface {
  border-radius: 30px;
  padding: 28px;
}

.business-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.panel-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.15;
}

.panel-heading p {
  margin: 14px 0 0;
  color: var(--subtext);
  font-size: 15px;
  line-height: 1.8;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.business-card {
  min-height: 190px;
  border-radius: 24px;
  padding: 20px;
}

.business-card--wide {
  grid-column: span 2;
}

.business-card--soft {
  min-height: 210px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
}

.business-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #e9f1ff 100%);
  color: var(--blue);
  font-size: 38px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 30px rgba(31, 99, 255, 0.12);
}

.business-card strong,
.backend-entry-card strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.2;
}

.business-card p {
  margin: 12px 0 0;
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.75;
}

.mini-illustration {
  width: 100%;
  height: 86px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(227, 238, 255, 0.92)),
    var(--blue-soft);
  position: relative;
  overflow: hidden;
}

.mini-illustration::before,
.mini-illustration::after {
  content: "";
  position: absolute;
}

.mini-illustration--pin::before {
  left: 50%;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  transform: translateX(-50%) rotate(-45deg);
}

.mini-illustration--pin::after {
  left: 50%;
  top: 29px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.mini-illustration--map::before {
  inset: 16px 20px;
  border: 2px solid rgba(46, 102, 215, 0.38);
  border-radius: 12px;
  transform: perspective(120px) rotateX(24deg);
}

.mini-illustration--map::after {
  left: 50%;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff8c3a;
  box-shadow: -34px 18px 0 #ff8c3a;
}

.mini-illustration--shelf::before {
  inset: 20px 22px;
  border-radius: 10px;
  border: 3px solid rgba(34, 98, 213, 0.56);
}

.mini-illustration--shelf::after {
  left: 22px;
  right: 22px;
  top: 42px;
  height: 3px;
  background: rgba(34, 98, 213, 0.56);
  box-shadow: 0 -18px 0 rgba(34, 98, 213, 0.56), 0 18px 0 rgba(34, 98, 213, 0.56);
}

.mini-illustration--truck::before {
  left: 20px;
  bottom: 24px;
  width: 64px;
  height: 24px;
  border-radius: 8px;
  background: var(--blue);
}

.mini-illustration--truck::after {
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 168, 74, 0.9);
  box-shadow: -12px 8px 0 rgba(255, 168, 74, 0.6), -24px 16px 0 rgba(255, 168, 74, 0.35);
}

.account-switch {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.account-chip {
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(152, 182, 230, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-strong);
  font-weight: 700;
}

.account-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2f75ff 0%, #1650e8 100%);
  box-shadow: 0 14px 28px rgba(31, 99, 255, 0.24);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(151, 180, 226, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
  border-color: rgba(31, 99, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(31, 99, 255, 0.1);
}

.login-button {
  height: 56px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2f75ff 0%, #1650e8 100%);
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(31, 99, 255, 0.24);
}

.login-button:disabled {
  opacity: 0.72;
  cursor: progress;
}

.login-hint,
.login-status,
.backend-entry-card li {
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.7;
}

.login-hint {
  margin: 0;
}

.login-status {
  min-height: 24px;
  margin: 0;
}

.login-status[data-tone="error"] {
  color: #c62828;
}

.login-status[data-tone="loading"] {
  color: var(--blue-strong);
}

.backend-entry-card {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(151, 180, 226, 0.32);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 244, 255, 0.94));
}

.backend-entry-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.backend-entry-card li + li {
  margin-top: 8px;
}

.system-gateway-card {
  width: min(680px, 100%);
  padding: 28px;
  border: 1px solid #dbe6f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.gateway-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #0a63ff;
  font-size: 12px;
  font-weight: 800;
}

.system-gateway-card h2 {
  margin: 14px 0 8px;
  color: #101828;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.gateway-copy {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.gateway-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.gateway-role-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: #f8fbff;
  color: #101828;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gateway-role-card:hover,
.gateway-role-card.is-active {
  border-color: #8db5ff;
  background: #edf4ff;
  transform: translateY(-1px);
}

.gateway-role-card.is-active {
  box-shadow: 0 16px 36px rgba(10, 99, 255, 0.12);
}

.gateway-role-card strong {
  font-size: 18px;
}

.gateway-role-card span {
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.gateway-login-form {
  margin-top: 20px;
}

.login-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  overflow: visible;
  color: var(--text);
}

.floating-login-panel {
  position: fixed;
  top: 50%;
  left: clamp(24px, 8vw, 140px);
  z-index: 20;
  width: min(348px, calc(100vw - 36px));
  margin: 0;
  transform: translateY(-50%);
}

.inline-login-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 25px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: rgba(8, 47, 83, 0.52);
  box-shadow: 0 24px 54px rgba(4, 31, 66, 0.3);
  backdrop-filter: blur(18px);
}

.login-card-illustration {
  position: absolute;
  right: -86px;
  bottom: -150px;
  z-index: 0;
  width: 306px;
  opacity: .19;
  filter: saturate(1.2);
  pointer-events: none;
}

.login-card-illustration img { display: block; width: 100%; height: auto; }
.inline-login-form > :not(.login-card-illustration) { position: relative; z-index: 1; }

.login-welcome { margin-bottom: 4px; color: #fff; }
.login-welcome span { display: block; margin-bottom: 6px; color: #8FF4DF; font-size: 12px; font-weight: 800; }
.login-welcome h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: 0; }
.login-welcome p { margin: 8px 0 1px; color: rgba(230,245,255,.9); font-size: 13px; line-height: 1.55; }

.inline-login-form > input,
.password-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  outline: none;
}

.inline-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.88);
}

.inline-login-form input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.28);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 52px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  transform: translateY(-50%);
}

.password-visibility-toggle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.inline-login-form .login-button {
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 6px;
  background: rgba(18, 67, 91, 0.42);
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.inline-login-form .login-button:hover {
  border-color: #fff;
  background: rgba(18, 67, 91, 0.52);
}

.inline-login-form .login-status {
  min-height: 0;
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.icp-record {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 20;
  color: rgba(14, 54, 75, 0.72);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.icp-record:hover {
  color: rgba(14, 54, 75, 0.96);
  text-decoration: underline;
}

.floating-login-panel .login-dialog__surface {
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(19, 72, 144, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.floating-login-panel .gateway-actions {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.floating-login-panel .gateway-role-card {
  min-height: 74px;
  padding: 12px 14px;
}

.floating-login-panel .gateway-role-card strong {
  font-size: 16px;
}

.floating-login-panel .gateway-role-card span {
  font-size: 12px;
}

.floating-login-panel .system-gateway-card h2 {
  font-size: 26px;
}

.login-dialog::backdrop {
  background: rgba(15, 35, 80, 0.44);
  backdrop-filter: blur(8px);
}

.login-dialog__surface {
  position: relative;
  max-height: inherit;
  overflow: auto;
  border: 1px solid rgba(155, 184, 229, 0.42);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(15, 43, 104, 0.26);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(151, 180, 226, 0.42);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-strong);
  font-size: 28px;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--blue-soft);
}

/* 官网首屏使用正式主视觉图，并保留连续的业务入口页面。 */
.site-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.hero-section {
  position: relative;
  display: block;
  height: 100vh;
  overflow: hidden;
}

.hanging-market-sign {
  position: absolute;
  top: 0;
  left: 62%;
  z-index: 4;
  width: min(48vw, 690px);
  padding-top: clamp(46px, 7vh, 94px);
  filter: drop-shadow(0 18px 16px rgba(3, 22, 49, .35));
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: center top;
  animation: sign-sway 6s ease-in-out infinite;
}

.hanging-market-sign i {
  position: absolute;
  top: 0;
  z-index: -1;
  display: block;
  width: 3px;
  height: clamp(52px, 8vh, 102px);
  border-radius: 4px;
  background: linear-gradient(90deg, #dce7ee, #7f95a8 48%, #f4fbff);
  box-shadow: 1px 0 2px rgba(3, 20, 42, .38);
}
.hanging-market-sign i:first-child { left: 22%; transform: rotate(-2deg); }
.hanging-market-sign i:nth-child(2) { right: 22%; transform: rotate(2deg); }
.hanging-market-sign img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid rgba(238, 247, 255, .88);
  box-shadow: 0 2px 0 rgba(0, 52, 143, .9), 0 15px 20px rgba(3, 24, 54, .32);
}
@keyframes sign-sway { 50% { transform: translateX(-50%) rotate(.65deg); } }

.content-section {
  display: none;
  margin: 0;
  padding: 56px 24px 72px;
  background: #f4f8ff;
}

.hero-copy {
  position: absolute;
  top: 32%;
  left: 8.25%;
  z-index: 2;
  display: none !important;
  padding: 0;
}

.hero-kicker,
.hero-copy h1,
.hero-lead,
.hero-actions,
.hero-entry-note,
.hero-metrics {
  display: none;
}

.image-login-trigger {
  position: absolute;
  top: 50%;
  left: 34px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(12, 42, 58, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(7, 34, 51, 0.18);
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.image-login-trigger:hover {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(12, 42, 58, 0.42);
  box-shadow: 0 14px 34px rgba(7, 34, 51, 0.28);
}

.hero-visual {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

.inline-login-button {
  min-width: 128px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f75ff 0%, #1650e8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(10, 99, 255, 0.26);
}

.inline-login-button:hover {
  background: linear-gradient(135deg, #3c81ff 0%, #205cf0 100%);
  transform: translateY(-1px);
}

@media (max-width: 1220px) {
  .hero-copy {
    top: 32%;
    left: 8.25%;
  }

  .hero-visual {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: 100%;
  }

  .hero-section {
    height: 100vh;
  }

  .hanging-market-sign { left: 55%; width: min(62vw, 520px); padding-top: 48px; }

  .content-section {
    padding: 40px 18px 56px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: 100%;
  }

  .login-dialog__surface {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy {
    top: 31%;
    left: 8.25%;
  }

  .inline-login-button {
    min-width: 110px;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hanging-market-sign { left: 50%; width: min(74vw, 390px); padding-top: 30px; }
  .hanging-market-sign i { height: 46px; }

  .image-login-trigger {
    top: 50%;
    left: 18px;
    min-width: 118px;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

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

  .floating-login-panel {
    left: 50%;
    width: min(280px, calc(100vw - 24px));
    transform: translate(-50%, -50%);
  }

  .login-card-illustration { right: -100px; bottom: -160px; width: 292px; opacity: .17; }

  .icp-record {
    bottom: 12px;
    font-size: 12px;
  }

  .floating-login-panel .login-dialog__surface {
    max-height: min(640px, calc(100dvh - 28px));
    padding: 18px;
  }
}
