:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #17202b;
  --muted: #647084;
  --line: #e4e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #12805c;
  --accent-soft: #effaf4;
  --soft: #eef4ff;
  --warn-soft: #fff7e8;
  --shadow: 0 16px 40px rgba(20, 32, 48, 0.08);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

body[data-industry="zhuangxiu"],
body[data-industry="jianzhu"] {
  --brand: #b45309;
  --brand-dark: #92400e;
  --accent: #0f766e;
  --soft: #fff7ed;
  --accent-soft: #ecfdf5;
}

body[data-industry="kuaiji"],
body[data-industry="falv"] {
  --brand: #1e40af;
  --brand-dark: #1e3a8a;
  --accent: #475569;
  --soft: #eff6ff;
  --accent-soft: #f8fafc;
}

body[data-industry="kuaiji"] {
  background:
    radial-gradient(circle at 18% 10%, rgba(30, 64, 175, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(71, 85, 105, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #eef2f7 100%);
}

body[data-industry="canyin"],
body[data-industry="meiye"] {
  --brand: #be123c;
  --brand-dark: #9f1239;
  --accent: #7c3aed;
  --soft: #fff1f2;
  --accent-soft: #faf5ff;
}

body[data-industry="nongye"],
body[data-industry="yiliaozhensuo"] {
  --brand: #15803d;
  --brand-dark: #166534;
  --accent: #0e7490;
  --soft: #f0fdf4;
  --accent-soft: #ecfeff;
}

body[data-industry="fangchan"],
body[data-industry="qiche"],
body[data-industry="wuliu"] {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #2563eb;
  --soft: #ecfdf5;
  --accent-soft: #eff6ff;
}

body[data-industry="it"],
body[data-industry="dianshang"],
body[data-industry="jiaoyu"] {
  --brand: #4338ca;
  --brand-dark: #3730a3;
  --accent: #0f766e;
  --soft: #eef2ff;
  --accent-soft: #ecfdf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
}

.skip-link:focus {
  left: 12px;
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav a:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(18, 128, 92, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 36%, #eef3f8 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(23, 32, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 43, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #384456;
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover {
  background: var(--soft);
  color: var(--brand-dark);
}

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

.hero {
  padding: 54px 0 34px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(18, 128, 92, 0.10), transparent 76%),
    rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -96px;
  width: 286px;
  height: 286px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.22) 0 10px, rgba(37,99,235,0.045) 10px 20px);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #cbd9ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 4.7vw, 56px);
  line-height: 1.13;
}

.lead {
  max-width: 790px;
  margin: 0;
  color: #344054;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #263244;
  font-weight: 750;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
}

.btn:hover {
  border-color: #c7d0dd;
}

.btn.danger {
  border-color: #fecaca;
  background: #fff;
  color: #b42318;
}

.btn.danger:hover {
  border-color: #fda29b;
  background: #fff5f5;
}

.side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.side-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
}

.side-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

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

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

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(20, 32, 48, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 18px 38px rgba(20, 32, 48, 0.10);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #435066;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.tag-ok {
  background: #e8f7ef;
  color: #11613f;
}

.tag-warn {
  background: #fff1d6;
  color: #8a5200;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

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

.field label {
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfd7e3;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.result {
  min-height: 100%;
  padding: 20px;
  border: 1px solid #d9e3f6;
  border-radius: var(--radius);
  background: #f8fbff;
}

.result h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.result-empty {
  color: var(--muted);
}

.result-block {
  margin: 14px 0;
}

.result-block strong {
  display: block;
  margin-bottom: 5px;
  color: #1f2a3d;
}

.result ul {
  margin: 6px 0 0;
  padding-left: 1.25em;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.result-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dce6f8;
  border-radius: var(--radius);
  background: #fff;
}

.result-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.result-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: #243248;
  line-height: 1.72;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  background: #f8fbff;
  color: #334155;
  font-weight: 800;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.tech-card {
  border-color: #cbd9ff;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.tech-card h3 {
  color: var(--brand-dark);
}

.ai-section {
  padding-top: 10px;
}

.ai-panel {
  border-color: #b7d8c9;
  background: #fbfefd;
}

.ai-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 0;
  color: #2f4a3d;
}

.contact-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d8eee3;
  border-radius: 999px;
  background: #fff;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #ccebdc;
  border-radius: var(--radius);
  background: #fff;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 100%;
  min-height: 86px;
  align-self: stretch;
  margin-top: 0;
  border: 1px dashed #9db7aa;
  border-radius: var(--radius);
  background: #f7fbf9;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  overflow: visible;
}

.qr-box img {
  display: block;
  max-width: 94px;
  max-height: 94px;
  object-fit: contain;
}

.lead-form {
  display: none !important;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #ccebdc;
  border-radius: var(--radius);
  background: #fff;
}

#industryTechShowcase {
  display: none !important;
}

.lead-form-title {
  margin: 0;
  font-size: 18px;
}

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

.lead-output {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dce6f8;
  border-radius: var(--radius);
  background: #f8fbff;
  white-space: pre-wrap;
}

.lead-output.is-visible {
  display: block;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.history-item pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: #344054;
}

.cta {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid #ccebdc;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.cta p {
  margin: 0;
  color: #2f4a3d;
}

.cta .hero-actions {
  margin-top: 12px;
}

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

.footer {
  margin-top: 36px;
  padding: 24px 0 38px;
  color: var(--muted);
  font-size: 14px;
}

/* 对外总览：可收录入口，与行业页同一套视觉语言 */
body.public-hub {
  background:
    radial-gradient(circle at 12% 6%, rgba(37, 99, 235, 0.10), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(18, 128, 92, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef3f8 100%);
}

.hub-topbar .topbar-inner {
  width: min(1180px, calc(100% - 32px));
}

.hub-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hub-hero {
  padding-top: 28px;
}

.hub-hero-panel {
  border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
}

.hub-side h2 {
  font-size: 18px;
}

.hub-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.hub-focus-card {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), var(--soft));
}

.hub-focus-grid {
  align-items: stretch;
}

.hub-foot-cta .cta {
  margin-top: 0;
}

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

.private-home {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.private-panel {
  width: min(760px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.private-panel h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.private-panel-wide {
  width: min(1180px, 100%);
}

.private-panel .lead a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.private-section-head {
  margin-top: 28px;
}

.dashboard-page {
  padding: 34px 0 54px;
}

.dashboard-hero {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dashboard-hero h1 {
  font-size: clamp(30px, 4.2vw, 52px);
}

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

.dashboard-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.dashboard-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.compact-stats {
  margin: 18px 0 8px;
}

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

.priority-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.priority-card h3 {
  margin: 0 0 8px;
}

.priority-card p {
  margin: 0 0 12px;
  color: #243248;
  font-weight: 750;
}

.priority-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.priority-card.high {
  border-color: #b7d8c9;
  background: #f6fbf8;
}

.priority-card.mid {
  border-color: #cbd9ff;
  background: #f8fbff;
}

.priority-card.low {
  border-color: #f0dfb8;
  background: #fffaf0;
}

.progress-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.progress-row {
  display: grid;
  grid-template-columns: 130px 74px minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.progress-row:first-child {
  border-top: 0;
}

.progress-head {
  background: #f8fbff;
  color: #334155;
  font-weight: 800;
}

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

.admin-toolbar {
  display: grid;
  grid-template-columns: 210px 180px minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-auth-panel {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-auth-actions {
  margin-top: 0;
}

.lead-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lead-card-head h3 {
  margin-bottom: 2px;
}

.lead-card .field {
  margin-top: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1.1;
}

@media (max-width: 920px) {
  .hero-panel,
  .tool-panel,
  .lead-form-grid,
  .contact-card,
  .grid-3,
  .grid-2,
  .dashboard-stats,
  .priority-board,
  .admin-toolbar,
  .admin-auth-panel {
    grid-template-columns: 1fr;
  }

  .progress-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qr-box {
    width: 96px;
    min-height: 86px;
  }

  .section-head {
    display: block;
  }

  /* 移动端保留锚点导航：横向滑动，避免整块消失 */
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav {
    display: flex;
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    gap: 6px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    flex-wrap: nowrap;
    mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 7px 9px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .wrap,
  .topbar-inner {
    width: calc(100% - 22px);
  }

  .hero {
    padding-top: 24px;
  }

  .hero-panel,
  .tool-panel,
  .card,
  .side-card,
  .cta,
  .private-panel {
    padding: 18px;
  }

  .lead {
    font-size: 17px;
  }

  .section h2 {
    font-size: 25px;
  }
}

@media print {
  .topbar,
  .hero-actions,
  .cta,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero,
  .section {
    padding: 14px 0;
  }

  .hero-panel,
  .tool-panel,
  .card,
  .result {
    box-shadow: none;
  }
}
