:root {
  --ink: #18212b;
  --muted: #5c6775;
  --line: #d7e0ea;
  --brand: #1f6fd8;
  --brand-deep: #1557b0;
  --danger: #d14343;
}

* { box-sizing: border-box; }

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

.home-body {
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #0b1220;
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transform: scale(1.06);
  animation: home-ken 22s ease-in-out alternate infinite;
}

.home-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 22, 0.82) 0%, rgba(7, 13, 22, 0.68) 58%, rgba(7, 13, 22, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 13, 22, 0.28) 0%, rgba(7, 13, 22, 0.5) 58%, rgba(7, 13, 22, 0.9) 100%);
}

.home-page {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  width: min(1000px, calc(100% - 480px));
  margin-left: clamp(64px, 8vw, 120px);
  padding: clamp(36px, 6vh, 64px) 0 clamp(56px, 8vh, 72px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2.4vh, 24px);
  animation: home-rise 0.75s ease both;
}

.home-header {
  max-width: 780px;
}

.home-org {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.home-brand {
  margin: 12px 0 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(58px, 8.5vh, 88px);
  line-height: 1;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  font-weight: 700;
}

.home-tagline {
  margin: 14px 0 0;
  font-size: clamp(16px, 2.2vh, 20px);
  letter-spacing: 0.2em;
  color: #b8d4ff;
  font-weight: 600;
}

.home-lead {
  margin: 16px 0 0;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(14px, 1.9vh, 16px);
  line-height: 1.75;
}

.home-gallery {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.home-card {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #132033;
}

.home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-card:hover img {
  transform: scale(1.05);
}

.home-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 20, 0.9) 58%);
}

.home-card-copy h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.06em;
}

.home-card-copy p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.45;
}

.home-card-a {
  left: 0;
  top: 2%;
  width: 48%;
  height: 92%;
  transform: rotate(-2deg);
  z-index: 2;
}

.home-card-b {
  left: 36%;
  top: 14%;
  width: 46%;
  height: 78%;
  transform: rotate(2.4deg);
  z-index: 3;
}

.home-card-c {
  left: 70%;
  top: -2%;
  width: 36%;
  height: 64%;
  transform: rotate(-1.6deg);
  z-index: 1;
}

.home-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  max-width: 760px;
  opacity: 0.92;
}

.home-flow-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.home-flow-item span {
  color: #9ec5ff;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.home-flow-item strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-foot {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(14px, 2.4vh, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  pointer-events: none;
}

.home-foot a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  pointer-events: auto;
}

.home-foot a:hover {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
}

.home-foot > span {
  pointer-events: none;
}

.home-police-beian {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.home-police-beian img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.home-police-beian span {
  line-height: 16px;
}

.home-login-float {
  position: fixed;
  z-index: 5;
  top: 50%;
  right: clamp(12%, 18vw, 22%);
  transform: translateY(-50%);
  animation: home-float-in 0.75s ease 0.12s both;
}

.home-login-box {
  position: relative;
  width: min(420px, calc(100vw - 48px));
  padding: 42px 36px 34px;
  border-radius: 4px;
  background: rgba(16, 24, 38, 0.55);
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-login-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.home-login-corner-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid rgba(244, 247, 251, 0.88);
  border-left: 2px solid rgba(244, 247, 251, 0.88);
}

.home-login-corner-tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid rgba(244, 247, 251, 0.88);
  border-right: 2px solid rgba(244, 247, 251, 0.88);
}

.home-login-corner-bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid rgba(244, 247, 251, 0.88);
  border-left: 2px solid rgba(244, 247, 251, 0.88);
}

.home-login-corner-br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid rgba(244, 247, 251, 0.88);
  border-right: 2px solid rgba(244, 247, 251, 0.88);
}

.home-login-box h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-weight: 600;
  color: #fff;
}

.home-login-error {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(209, 67, 67, 0.18);
  border: 1px solid rgba(209, 67, 67, 0.35);
  color: #ffb4b4;
  font-size: 13px;
  text-align: center;
}

.home-input {
  position: relative;
  display: block;
  margin-top: 14px;
}

.home-input + .home-input {
  margin-top: 16px;
}

.home-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(244, 247, 251, 0.72);
  display: inline-flex;
  pointer-events: none;
}

.home-input input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.home-input input::placeholder {
  color: rgba(244, 247, 251, 0.42);
}

.home-input input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.home-login-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(244, 247, 251, 0.72);
}

.home-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.home-remember input {
  width: 14px;
  height: 14px;
  accent-color: #cfd8e3;
}

.home-forgot {
  border: 0;
  background: transparent;
  color: rgba(244, 247, 251, 0.72);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.home-forgot:hover {
  color: #fff;
  text-decoration: underline;
}

.home-submit {
  width: 100%;
  margin-top: 22px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-submit:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.45);
}

@keyframes home-ken {
  from { transform: scale(1.03); }
  to { transform: scale(1.09); }
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-float-in {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 18px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (max-width: 1200px) {
  .home-page {
    width: min(860px, calc(100% - 440px));
    margin-left: clamp(40px, 5vw, 72px);
  }

  .home-login-float {
    right: clamp(8%, 12vw, 16%);
  }
}

@media (max-width: 900px) {
  html,
  body.home-body {
    overflow: auto;
  }

  .home-page {
    width: auto;
    height: auto;
    margin: 0 28px;
    padding: 28px 0 20px;
  }

  .home-gallery {
    position: static;
    display: grid;
    gap: 14px;
    height: auto;
  }

  .home-card {
    position: static;
    transform: none !important;
    height: 220px;
  }

  .home-login-float {
    position: static;
    transform: none;
    margin: 8px 28px 28px;
    display: flex;
    justify-content: center;
    animation: home-rise 0.75s ease both;
  }

  .home-foot {
    position: static;
    margin: 0 20px 20px;
    pointer-events: auto;
  }
}

@media (max-height: 780px) {
  .home-lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-card-copy p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-bg img,
  .home-page,
  .home-login-float {
    animation: none !important;
  }

  .home-login-float {
    transform: translateY(-50%);
  }
}

.home-center-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.home-center-dialog {
  width: min(320px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.home-center-msg {
  font-size: 17px;
  font-weight: 600;
  color: #1f2329;
  line-height: 1.5;
  margin-bottom: 16px;
}
.home-center-ok {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #267ef0;
  cursor: pointer;
}
