:root {
  --bg: #f4f7f5;
  --panel: #ffffff;
  --ink: #15231c;
  --muted: #6d7b73;
  --line: #dfe8e2;
  --blue: #7bd9a5;
  --teal: #62c894;
  --violet: #a6e6bd;
  --orange: #d8a75d;
  --green: #69d39c;
  --deep-green: #1f7b50;
  --soft-green: #e8f8ef;
  --shadow: 0 18px 48px rgba(35, 79, 56, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 232px;
  height: 100vh;
  padding: 24px 18px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--deep-green), var(--green));
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  text-decoration: none;
  color: #2d3a50;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 650;
}

.nav-item.active,
.nav-item:hover {
  color: #123321;
  background: linear-gradient(90deg, #ccf5dc, #effaf3);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.sidebar-note span,
.eyebrow {
  color: var(--deep-green);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.sidebar-note strong {
  display: block;
  margin: 8px 0;
}

.sidebar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.hero-panel,
.panel,
.metric-card,
.content-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 79, 56, 0.08);
}

.hero-panel {
  min-height: 360px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 10px 0 16px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 750;
}

.primary-btn {
  color: #0f2d1d;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(85, 195, 132, 0.24);
}

.ghost-btn {
  color: var(--ink);
  background: var(--soft-green);
  border: 1px solid #ccebd7;
}

.small {
  min-height: 38px;
}

.as-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ai-map {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(36, 107, 254, 0.18), transparent 34%),
    linear-gradient(145deg, #f6fbff, #eef5ff 46%, #f9fbff);
}

.infinity {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(36, 107, 254, 0.18);
  font-size: 210px;
  line-height: 1;
  animation: breathe 4.8s ease-in-out infinite;
}

.ai-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 9px 13px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 30px rgba(36, 107, 254, 0.2);
  font-weight: 760;
  animation: float 5s ease-in-out infinite;
}

.ai-map span:nth-child(2n) {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  animation-delay: -1.6s;
}

.ai-map span:nth-child(3n) {
  background: linear-gradient(135deg, var(--teal), var(--green));
  animation-delay: -2.4s;
}

@keyframes breathe {
  50% {
    transform: scale(1.06);
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

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

.metric-card {
  padding: 22px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 10px 0;
  font-size: 34px;
}

.content-band {
  padding: 28px;
}

.section-heading h2,
.panel-title h2 {
  margin: 6px 0 0;
}

.workflow {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.workflow article {
  min-height: 170px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.workflow b {
  display: block;
  margin-bottom: 12px;
}

.workflow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

.keyword-builder {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.keyword-col {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.keyword-col h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--soft-green);
}

.keyword-col ul {
  margin: 0;
  padding: 12px 22px;
  color: #24362d;
  line-height: 2;
}

.entity-card {
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fbfdfb, #edf8f1);
  border: 1px solid #cfebd8;
}

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

.entity-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.entity-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.entity-card div {
  display: grid;
  gap: 4px;
}

.entity-card dt {
  color: var(--muted);
  font-size: 13px;
}

.entity-card dd {
  margin: 0;
  font-weight: 680;
}

.source-tabs,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab,
.filter {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #284235;
  background: #ffffff;
}

.tab.active,
.filter.active {
  border-color: var(--blue);
  color: #0f2d1d;
  background: var(--blue);
}

.source-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.source-card {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdfb;
  text-align: center;
  font-weight: 760;
  color: #254233;
}

.content-plan {
  display: grid;
  gap: 12px;
}

.content-plan div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdfb;
}

.content-plan span {
  color: var(--muted);
  text-align: right;
}

.monitor-panel {
  overflow: hidden;
}

.monitor-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
}

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

.chart-card h3 {
  margin: 0 0 16px;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 98px 1fr 60px;
  align-items: center;
  gap: 12px;
  color: #2d4538;
}

.track {
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: #e6eee9;
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

canvas {
  width: 100%;
  height: 260px;
}

.report-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.report-tools input {
  width: min(420px, 100%);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f1f7f3;
  color: #334b3d;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 99px;
  background: #e9f8f1;
  color: #158453;
  font-weight: 720;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border-radius: 8px;
  color: white;
  background: #183829;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

/* Public website */
.site-body {
  background:
    radial-gradient(circle at 18% 4%, rgba(123, 217, 165, 0.28), transparent 28%),
    linear-gradient(180deg, #f8faf8, #eef4f0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(248, 250, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-brand,
.site-nav {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
}

.site-nav {
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: #33463b;
  font-weight: 680;
}

.site-nav .admin-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #c9ead6;
  border-radius: 8px;
  background: var(--soft-green);
}

.site-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 88px) clamp(18px, 5vw, 72px);
}

.site-hero-copy h1 {
  max-width: 880px;
  margin: 12px 0 20px;
  font-size: clamp(36px, 5.8vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.site-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.answer-preview {
  padding: 22px;
  border: 1px solid #cfead8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.answer-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.answer-card.featured {
  background: linear-gradient(145deg, #ffffff, #e9f8ef);
  border-color: #bfe8cf;
}

.answer-card strong {
  font-size: 24px;
}

.answer-card p {
  color: #435448;
  line-height: 1.8;
}

.answer-card small {
  color: var(--deep-green);
  font-weight: 760;
}

.answer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.answer-metrics span {
  padding: 14px;
  border-radius: 8px;
  background: #f2f8f4;
  color: var(--muted);
}

.answer-metrics b {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.site-section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.centered {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

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

.service-grid article,
.contact-card,
.timeline,
.industry-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(35, 79, 56, 0.06);
}

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

.plan-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(35, 79, 56, 0.06);
}

.plan-grid .featured-plan {
  border-color: #9cdeb8;
  background: linear-gradient(145deg, #ffffff, #eaf9f0);
}

.plan-grid span,
.plan-grid strong {
  display: block;
}

.plan-grid span {
  color: var(--deep-green);
  font-weight: 850;
}

.plan-grid strong {
  margin: 12px 0;
  font-size: 30px;
}

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

.service-grid article {
  padding: 24px;
}

.service-grid article span {
  color: var(--deep-green);
  font-weight: 850;
}

.service-grid h3 {
  margin: 12px 0 8px;
}

.service-grid p,
.split-section p,
.contact-section p {
  color: var(--muted);
  line-height: 1.75;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 36px;
  align-items: start;
}

.split-section h2,
.contact-section h2,
.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.timeline {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.timeline div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7fbf8;
}

.timeline b {
  color: var(--deep-green);
}

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

.industry-grid span {
  min-height: 82px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}

.contact-card {
  padding: 26px;
}

.contact-card ul {
  margin: 14px 0 22px;
  padding-left: 20px;
  color: #405246;
  line-height: 1.9;
}

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

.partner-policy article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.partner-policy b,
.partner-policy span {
  display: block;
}

.partner-policy b {
  margin-bottom: 8px;
}

.partner-policy span {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Admin MVP */
.admin-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

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

.ops-panel div {
  min-height: 128px;
  padding: 18px;
  border: 1px solid #cfead8;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #eff9f3);
}

.ops-panel span,
.ops-panel strong {
  display: block;
}

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

.ops-panel strong {
  margin-top: 12px;
  font-size: 36px;
}

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

.form-grid label,
.matrix-editor label {
  display: grid;
  gap: 8px;
  color: #31483b;
  font-weight: 700;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.matrix-editor {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.matrix-editor textarea {
  min-height: 210px;
  line-height: 1.8;
}

.question-list {
  max-height: 365px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.question-list div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.question-list b {
  color: var(--deep-green);
}

.inline-form,
.monitor-form,
.lead-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.inline-form {
  grid-template-columns: 1fr 150px auto;
}

.monitor-form {
  grid-template-columns: 1.5fr 150px 120px 1fr 120px auto;
}

.lead-form {
  grid-template-columns: 1.2fr 120px 120px 120px 120px 120px auto;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  overflow: auto;
}

.pipeline-col {
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.pipeline-col h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 15px;
}

.pipeline-col h3 span {
  color: var(--deep-green);
}

.lead-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #dbe9df;
  border-radius: 8px;
  background: #ffffff;
}

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

.lead-card b {
  color: var(--deep-green);
}

.lead-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-card button {
  min-height: 28px;
  border: 1px solid #d8e8de;
  border-radius: 8px;
  background: #ffffff;
  color: #47735b;
}

.agent-form {
  display: grid;
  grid-template-columns: 1.2fr 150px 130px 180px;
  gap: 10px;
}

.agent-form .full {
  grid-column: 1 / -1;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: 1fr 72px auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.task-row label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.task-row em,
.source-card span {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.task-row button,
.source-card button,
.text-btn {
  min-height: 30px;
  border: 1px solid #d8e8de;
  border-radius: 8px;
  background: #ffffff;
  color: #47735b;
}

.source-grid.compact .source-card {
  place-items: stretch;
  text-align: left;
  gap: 8px;
  padding: 14px;
}

.job-board,
.partner-list {
  display: grid;
  gap: 12px;
}

.job-card,
.partner-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.job-card span,
.partner-card span,
.partner-card small {
  color: var(--muted);
}

.job-card strong,
.partner-card strong {
  display: block;
  margin: 6px 0;
}

.job-card p,
.partner-card p {
  color: #405246;
  line-height: 1.7;
}

.job-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.job-card dt,
.job-card dd {
  margin: 0;
}

.job-card dt {
  color: var(--muted);
  font-size: 12px;
}

.job-card dd {
  font-weight: 760;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions button,
.partner-card button {
  min-height: 30px;
  border: 1px solid #d8e8de;
  border-radius: 8px;
  background: #ffffff;
  color: #47735b;
}

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

.commission-box label {
  display: grid;
  gap: 8px;
  font-weight: 720;
}

.commission-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.commission-result div {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft-green);
}

.commission-result span,
.commission-result strong {
  display: block;
}

.commission-result strong {
  margin-top: 8px;
  font-size: 24px;
}

.commission-result p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-观察中 {
  background: #fff6dd;
  color: #8a6416;
}

.status-待优化 {
  background: #fdecec;
  color: #b64242;
}

.brief-output {
  width: 100%;
  min-height: 320px;
  line-height: 1.8;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .hero-panel,
  .monitor-layout,
  .site-hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .span-7,
  .span-6,
  .span-5 {
    grid-column: 1 / -1;
  }

  .monitor-form,
  .matrix-editor,
  .agent-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-nav,
  .site-footer {
    display: grid;
  }

  .site-header {
    gap: 14px;
    padding: 16px;
  }

  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .site-hero,
  .site-section {
    padding: 32px 16px;
  }

  .answer-metrics,
  .service-grid,
  .industry-grid,
  .plan-grid,
  .ops-panel,
  .partner-policy,
  .job-card dl,
  .commission-box,
  .commission-result {
    grid-template-columns: 1fr;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: auto;
    height: auto;
  }

  .main {
    padding: 14px;
  }

  .hero-panel,
  .panel,
  .content-band {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .metric-grid,
  .workflow,
  .keyword-builder,
  .source-grid,
  .form-grid,
  .matrix-editor,
  .inline-form,
  .lead-form,
  .monitor-form,
  .agent-form {
    grid-template-columns: 1fr;
  }

  .panel-title,
  .report-tools,
  .content-plan div,
  .task-row {
    display: grid;
  }

  .ai-map {
    height: 250px;
  }

  .infinity {
    font-size: 140px;
  }
}

/* Productized visual refresh inspired by ai.traceclaw.cn */
:root {
  --page-gray: #f2f2f4;
  --nav-dark: #282827;
  --nav-ink: #f3f4ef;
  --atlas-green: #8ecf68;
  --atlas-green-2: #a8df82;
  --atlas-ink: #1a1a2e;
  --atlas-muted: #737373;
  --card-line: #dedede;
}

body {
  background: var(--page-gray);
}

.brand-mark {
  border-radius: 8px;
  color: #172112;
  background: linear-gradient(135deg, var(--atlas-green), var(--atlas-green-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.primary-btn,
.ghost-btn,
.admin-link {
  border-radius: 8px;
  min-height: 46px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.admin-link:hover {
  transform: translateY(-1px);
}

.primary-btn {
  color: #172112;
  background: var(--atlas-green);
  box-shadow: 0 12px 24px rgba(142, 207, 104, 0.26);
}

.ghost-btn {
  color: #18181f;
  background: #ffffff;
  border: 1px solid #d5d5d5;
}

.site-body {
  background:
    radial-gradient(circle at 50% 18%, rgba(142, 207, 104, 0.12), transparent 28%),
    var(--page-gray);
  color: var(--atlas-ink);
}

.site-header {
  min-height: 76px;
  padding: 0 clamp(24px, 6vw, 42px);
  color: var(--nav-ink);
  background: var(--nav-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}

.site-brand {
  color: var(--nav-ink);
  font-size: 18px;
}

.site-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav .admin-link {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.site-hero {
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 36px;
  padding: 92px clamp(18px, 5vw, 72px) 70px;
  text-align: center;
}

.site-hero-copy {
  display: grid;
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 16px;
  border: 1px solid #d1d1d1;
  border-radius: 99px;
  color: #727272;
  background: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 680;
}

.site-hero-copy h1 {
  max-width: 760px;
  margin: 26px 0 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  font-weight: 850;
}

.site-hero-copy h1::first-line {
  color: var(--atlas-ink);
}

.hero-highlight {
  color: var(--atlas-green);
}

.site-hero-copy p {
  max-width: 780px;
  color: #747474;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.site-hero .primary-btn,
.site-hero .ghost-btn {
  min-width: 162px;
  justify-content: center;
  font-size: 16px;
}

.answer-preview {
  width: min(880px, 100%);
  padding: 0;
  text-align: left;
  overflow: hidden;
  border: 1px solid #dadada;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.answer-top {
  margin: 0;
  padding: 15px 18px;
  color: #ececec;
  background: #222222;
}

.answer-card {
  margin: 18px;
  border-color: #e5e5e5;
  background: #f8f8f8;
}

.answer-card.featured {
  background: linear-gradient(145deg, #ffffff, #f3faef);
  border-color: #c9e5b9;
}

.answer-card strong {
  color: var(--atlas-ink);
}

.answer-card small {
  color: #4d8b30;
}

.answer-metrics {
  margin: 0;
  padding: 0 18px 18px;
}

.answer-metrics span {
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
}

.answer-metrics b {
  color: var(--atlas-ink);
}

.site-section {
  padding: 76px clamp(18px, 5vw, 72px);
}

.section-heading h2,
.split-section h2,
.contact-section h2 {
  color: var(--atlas-ink);
  font-weight: 840;
}

.service-grid article,
.timeline,
.partner-policy article,
.plan-grid article,
.contact-card,
.industry-grid span {
  border-color: var(--card-line);
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.045);
}

.service-grid article span,
.plan-grid span,
.timeline b,
.partner-policy b {
  color: #5da533;
}

.service-grid h3 {
  font-size: 21px;
}

.split-section {
  align-items: center;
}

.timeline div {
  background: #f7f7f7;
}

.featured-plan {
  transform: translateY(-8px);
}

.plan-grid strong {
  color: var(--atlas-ink);
}

.contact-section {
  margin: 0 clamp(18px, 5vw, 72px) 76px;
  padding: 48px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.site-footer {
  color: rgba(255, 255, 255, 0.62);
  background: var(--nav-dark);
  border-top: 0;
}

/* Admin console refresh */
.app-shell {
  background: var(--page-gray);
}

.sidebar {
  width: 248px;
  padding: 22px 16px;
  color: rgba(255, 255, 255, 0.78);
  background: #242423;
  border-right: 0;
}

.brand strong {
  color: #ffffff;
}

.brand span,
.sidebar-note p {
  color: rgba(255, 255, 255, 0.52);
}

.nav-item {
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid transparent;
}

.nav-item.active,
.nav-item:hover {
  color: #172112;
  background: var(--atlas-green);
}

.sidebar-note {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-note span {
  padding: 0;
  border: 0;
  color: var(--atlas-green);
  background: transparent;
}

.sidebar-note strong {
  color: #ffffff;
}

.main {
  padding: 28px;
  gap: 20px;
}

.hero-panel,
.panel,
.metric-card,
.content-band {
  border-color: var(--card-line);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.045);
}

.admin-hero {
  min-height: 300px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(142, 207, 104, 0.18), transparent 44%),
    #ffffff;
}

.admin-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 26px;
}

.admin-hero .primary-btn,
.admin-hero .ghost-btn {
  min-width: 104px;
  justify-content: center;
}

.hero-copy h1 {
  color: var(--atlas-ink);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 850;
}

.hero-copy p {
  color: #707070;
}

.ops-panel div,
.metric-card {
  border: 1px solid var(--card-line);
  background: #fbfbfb;
}

.ops-panel strong,
.metric-card strong {
  color: var(--atlas-ink);
}

.panel-title h2 {
  color: var(--atlas-ink);
  font-size: 22px;
  font-weight: 820;
}

.panel-title .eyebrow {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #6aaa42;
  background: transparent;
}

input,
select,
textarea {
  border-color: #d8d8d8;
  background: #fbfbfb;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(142, 207, 104, 0.34);
  border-color: #95cd72;
  background: #ffffff;
}

.pipeline-col,
.job-card,
.partner-card,
.lead-card,
.task-row,
.source-grid.compact .source-card,
.question-list div,
.chart-card,
.entity-card {
  border-color: #e0e0e0;
  background: #fafafa;
}

.lead-card,
.job-card,
.partner-card {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.035);
}

.lead-card b,
.job-card dd,
.commission-result strong {
  color: #4f912f;
}

.filter.active,
.tab.active {
  color: #172112;
  background: var(--atlas-green);
  border-color: var(--atlas-green);
}

.fill {
  background: linear-gradient(90deg, #8ecf68, #5fbf82);
}

th {
  color: #494949;
  background: #f4f4f4;
}

td {
  color: #333333;
}

.status {
  color: #366d22;
  background: #eef9e8;
}

.toast {
  color: #eff7e8;
  background: #242423;
}

@media (max-width: 760px) {
  .site-header {
    background: var(--nav-dark);
  }

  .site-hero {
    padding-top: 54px;
  }

  .site-hero-copy h1 {
    font-size: 40px;
  }

  .contact-section {
    margin: 0 16px 42px;
    padding: 24px;
  }

  .sidebar {
    width: auto;
    height: auto;
  }
}
