:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #607080;
  --line: #d8e0e7;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --blue: #2563eb;
  --green: #0f766e;
  --gold: #a16207;
  --red: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.input-panel {
  padding: 24px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.25;
}

.brand p {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.file-box {
  padding: 14px;
  border: 1px dashed #a7b5c4;
  border-radius: 8px;
  background: #fbfdff;
}

small {
  color: var(--muted);
  font-weight: 400;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: var(--blue);
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  background: #8aa6de;
}

.pricing {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pricing div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

.result-panel {
  padding: 22px;
  overflow: auto;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

h2 {
  font-size: 22px;
}

.badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  background: #e7f6f3;
  font-weight: 800;
  font-size: 13px;
}

.status {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 6px;
  color: #4b5563;
  background: #f1f5f9;
}

.status.error {
  color: var(--red);
  background: #fff1f2;
}

.hidden {
  display: none !important;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.report {
  display: grid;
  gap: 16px;
}

.report.empty {
  color: var(--muted);
  line-height: 1.7;
}

.summary,
.info-grid,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.summary {
  border-left: 4px solid var(--blue);
  line-height: 1.7;
}

.decision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.decision-card span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.decision-card.blocked {
  border-color: #fecdd3;
  background: #fff1f2;
}

.decision-card.blocked span {
  background: var(--red);
}

.decision-card.caution {
  border-color: #f4d78e;
  background: #fffbeb;
}

.decision-card.caution span {
  background: var(--gold);
}

.decision-card.go {
  border-color: rgba(15, 118, 110, 0.22);
  background: #e7f6f3;
}

.decision-card.go span {
  background: var(--green);
}

.decision-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

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

.decision-columns strong {
  display: block;
  margin-bottom: 6px;
}

.decision-columns ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}

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

.signal-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.signal-grid span,
.signal-grid em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.signal-grid strong {
  display: inline-block;
  margin: 0 4px 0 0;
  font-size: 28px;
  color: var(--blue);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-grid div {
  min-width: 0;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.info-grid strong {
  word-break: break-word;
}

.section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.section ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}

.next-step {
  color: var(--gold);
  background: #fffbeb;
  border-color: #f4d78e;
}

.lead-panel {
  margin-top: 18px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: #f7fbfa;
}

.lead-panel h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.lead-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.wide-field,
.lead-form button {
  grid-column: 1 / -1;
}

.landing {
  background: #f5f7f8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  background: rgba(247, 249, 251, 0.94);
  backdrop-filter: blur(12px);
}

.logo,
.site-header nav,
.hero-actions,
.trust-row {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.site-header nav {
  gap: 18px;
}

.site-header a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.site-header nav a:not(.nav-cta) {
  color: var(--muted);
}

.nav-cta {
  padding: 9px 13px;
  border-radius: 6px;
  color: #fff !important;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 64px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(245, 247, 248, 0.98) 0%, rgba(245, 247, 248, 0.86) 48%, rgba(245, 247, 248, 0.22) 100%),
    #f5f7f8;
}

.hero-copy {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 640px;
  margin-top: 12px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 600px;
  margin-top: 20px;
  color: #405060;
  font-size: 18px;
  line-height: 1.75;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  color: #fff;
  background: var(--blue);
}

.secondary-link {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(231, 246, 243, 0.85);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: absolute;
  z-index: -1;
  top: 64px;
  right: clamp(-220px, -8vw, -80px);
  width: min(760px, 58vw);
  min-height: 560px;
  transform: rotate(-2deg);
  border: 1px solid rgba(96, 112, 128, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(23, 32, 42, 0.16);
}

.visual-toolbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.visual-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ef4444;
}

.visual-toolbar span:nth-child(2) {
  background: #f59e0b;
}

.visual-toolbar span:nth-child(3) {
  background: #10b981;
}

.visual-report {
  display: grid;
  gap: 18px;
  padding: 28px;
  color: var(--ink);
}

.visual-report small {
  display: block;
  margin-bottom: 6px;
}

.visual-report strong {
  font-size: 24px;
}

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

.score-strip span,
.visual-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  font-weight: 800;
}

.visual-report ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.visual-footer {
  display: flex;
  justify-content: space-between;
  color: var(--green);
  background: #e7f6f3;
}

.content-band {
  padding: 70px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(23, 32, 42, 0.08);
  background: #fff;
}

.pricing-band {
  background: #f7f9fb;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

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

.feature-grid article,
.offer-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.feature-grid h3,
.offer-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-grid p,
.offer-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.offer-grid article span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.featured-offer {
  border-color: rgba(37, 99, 235, 0.45) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.center-action {
  margin-top: 24px;
  text-align: center;
}

.sample-page {
  background: #f7f9fb;
}

.sample-shell {
  padding: 42px clamp(18px, 5vw, 64px) 72px;
}

.sample-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.sample-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.sample-hero p {
  max-width: 700px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.sample-report-card {
  display: grid;
  gap: 18px;
  max-width: 1060px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 32, 42, 0.08);
}

.sample-report-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sample-report-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sample-report-head strong {
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--green);
  background: #e7f6f3;
  line-height: 1.6;
}

.sample-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.sample-cta h3 {
  margin: 0 0 8px;
}

.sample-cta p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .site-header {
    position: static;
    align-items: flex-start;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

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

  .hero::before {
    background: rgba(245, 247, 248, 0.9);
  }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: auto;
    margin-top: 34px;
    transform: none;
  }

  .score-strip,
  .feature-grid,
  .offer-grid,
  .signal-grid,
  .decision-columns,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .sample-report-head,
  .sample-cta {
    display: grid;
  }
}

.admin-page {
  background: #f5f7f8;
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(16px, 4vw, 44px);
}

.admin-login {
  max-width: 480px;
  margin: 8vh auto 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions button {
  min-height: 46px;
}

.settings-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-bar span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.settings-bar span.enabled {
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--green);
  background: #e7f6f3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card,
.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 30px;
}

.admin-section {
  margin-bottom: 18px;
  padding: 20px;
  overflow: auto;
}

.compact-title {
  margin-bottom: 18px;
}

.compact-title h2 {
  font-size: 24px;
}

.admin-table table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
}

.admin-table small {
  display: block;
  margin-top: 5px;
}

.admin-table a {
  color: var(--blue);
  font-weight: 800;
}

.followup-cell {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.followup-cell button {
  padding: 10px 12px;
}

.empty-admin {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
}

.login-page {
  background: #f5f7f8;
}

.login-shell {
  min-height: 100vh;
  padding: clamp(16px, 4vw, 44px);
}

.login-panel {
  max-width: 980px;
  margin: 4vh auto;
  padding: 24px;
}

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

.auth-grid form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.auth-grid h2 {
  font-size: 20px;
}

.user-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  color: var(--green);
  background: #e7f6f3;
}

.user-box span {
  color: #36655f;
}

.my-reports {
  margin-top: 18px;
}

.report-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.report-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.report-list strong,
.report-list span {
  display: block;
}

.report-list span,
.report-signals {
  color: var(--muted);
  font-size: 13px;
}

.report-signals {
  display: flex;
  gap: 8px;
}

@media (max-width: 860px) {
  .admin-topbar {
    display: grid;
  }

  .admin-actions {
    justify-content: flex-start;
  }

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

  .auth-grid,
  .report-list article {
    grid-template-columns: 1fr;
  }
}
