:root {
  --page: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef3f4;
  --ink: #18212c;
  --muted: #657282;
  --line: #d9e0e6;
  --brand: #12646b;
  --brand-dark: #0d4349;
  --accent: #b8832e;
  --danger: #9f2f2f;
  --shadow: 0 18px 40px rgba(21, 35, 48, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 100, 107, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 100, 107, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfd 0%, var(--page) 100%);
  background-size: 34px 34px, 34px 34px, auto;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

main {
  flex: 1;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-strip {
  position: relative;
  overflow: hidden;
  color: #e8f3f4;
  background: var(--brand-dark);
  font-size: 13px;
}

.top-strip::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(120deg, transparent 0 22px, rgba(255, 255, 255, 0.06) 22px 23px);
  pointer-events: none;
}

.top-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip nav,
.site-nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.top-strip a {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 280px;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1.35;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: #324353;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover {
  border-color: var(--accent);
  color: var(--brand-dark);
}

.hero-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(18, 100, 107, 0.12), transparent 42%),
    repeating-linear-gradient(135deg, rgba(18, 100, 107, 0.09) 0 1px, transparent 1px 22px),
    #e7edf0;
}

.hero-band::before,
.hero-band::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-band::before {
  right: 8%;
  top: 72px;
  width: 360px;
  height: 220px;
  border-top: 1px solid rgba(18, 100, 107, 0.22);
  border-right: 1px solid rgba(18, 100, 107, 0.22);
  transform: skewX(-18deg);
}

.hero-band::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 38%, var(--accent) 38%, var(--accent) 52%, var(--line) 52%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: center;
  min-height: 520px;
  padding: 54px 0;
}

.section-label {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.32;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy > p {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.button-primary,
.button-secondary,
.login-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 800;
}

.button-primary,
.login-form button {
  border: 1px solid var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.button-primary:hover,
.login-form button:hover {
  background: var(--brand-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--brand);
}

.full-width {
  width: 100%;
}

.login-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-box::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 136px;
  height: 136px;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(18, 100, 107, 0.08) 48% 52%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(18, 100, 107, 0.08) 0 1px, transparent 1px 12px);
  opacity: 0.75;
}

.login-heading,
.login-form,
.signed-state,
.login-error,
.login-box .button-primary {
  position: relative;
  z-index: 1;
}

.login-heading {
  margin-bottom: 18px;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #425060;
  font-size: 14px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.login-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 100, 107, 0.12);
}

.login-form button {
  width: 100%;
  margin-top: 2px;
  cursor: pointer;
}

.signed-state {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--surface-alt);
}

.signed-state span {
  color: var(--muted);
}

.login-error {
  margin-bottom: 14px;
  border: 1px solid rgba(159, 47, 47, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--danger);
  background: rgba(159, 47, 47, 0.07);
  font-size: 14px;
  font-weight: 700;
}

.trap-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.challenge-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.challenge-question {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: var(--surface-alt);
  cursor: pointer;
  overflow: hidden;
}

.challenge-question:hover,
.challenge-question:focus {
  border-color: var(--brand);
  background: #ffffff;
}

.challenge-question[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.65;
}

.challenge-question img {
  display: block;
  width: 150px;
  height: 44px;
  object-fit: cover;
}

.challenge-question.is-loading {
  position: relative;
}

.challenge-question.is-loading::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "刷新中";
  color: var(--brand-dark);
  background: rgba(238, 243, 244, 0.88);
  font-size: 13px;
  font-weight: 900;
}

.challenge-message {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.service-section {
  padding: 58px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 24px;
}

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

.service-grid article {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
}

.service-grid article::after {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.85;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
}

.site-footer {
  margin-top: auto;
  background: #17212c;
  color: #dbe5ea;
}

.footer-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner span {
  margin-top: 6px;
  color: #aebbc5;
  font-size: 13px;
}

.footer-inner a {
  color: #ffffff;
  font-size: 14px;
}

.footer-filing span {
  margin-top: 0;
  text-align: right;
}

.footer-filing .filing-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.6;
}

.footer-filing .filing-line > span {
  display: inline;
  margin-top: 0;
}

.police-filing-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 26px;
  white-space: nowrap;
  line-height: 1;
}

.police-filing-link img {
  display: inline-block;
  width: 1em;
  height: 1.08em;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 940px) {
  .header-inner,
  .top-strip-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .top-strip nav,
  .site-nav,
  .footer-inner nav {
    gap: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .hero-layout {
    min-height: 0;
    padding: 34px 0;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .challenge-row {
    grid-template-columns: 1fr;
  }
}
