:root {
  --color-brand: #7057ff;
  --color-blue: #1f9ee7;
  --color-console: #1d2550;
  --color-success: #74edc4;
  --color-text: #17203b;
  --color-muted: #66708b;
  --color-surface: #ffffff;
  --color-line: #dfe5f4;
  --shadow-card: 0 16px 38px rgba(32, 47, 93, .1);
  --radius-lg: 24px;
  --page-width: 1160px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: var(--color-text);
  background: #f8faff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(145deg, #f8faff 0%, #edf2ff 58%, #f8faff 100%);
  color: var(--color-text);
  font: 400 16px/1.7 Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; }

a, button { min-height: 44px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.site-header {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark { width: 30px; height: 30px; }

.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.nav-links a { display: inline-flex; align-items: center; color: var(--color-muted); font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: var(--color-brand); }

main {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 28px 0 48px;
}

main > section { grid-column: 1 / -1; min-width: 0; }

.hero-grid {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 410px;
  padding: 56px;
  padding-right: calc(50% + 30px);
  overflow: hidden;
  border: 1px solid rgba(112, 87, 255, .13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-card);
}

.hero-grid::after {
  content: "模拟任务 · 已处理完成\A\A来源识别  ✓\A内容查重  ✓\A结构化整理  ✓\A来源复核  ✓";
  white-space: pre-line;
  position: absolute;
  top: 50%;
  right: 56px;
  width: calc(50% - 82px);
  transform: translateY(-50%);
  z-index: 0;
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(116, 237, 196, .32);
  border-radius: 18px;
  background: linear-gradient(145deg, #273063, var(--color-console));
  box-shadow: 0 18px 38px rgba(29, 37, 80, .24);
  color: var(--color-success);
  font: 700 14px/2.15 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hero-grid > * { position: relative; z-index: 1; }
.hero-copy { max-width: 11ch; margin-bottom: 20px; font-size: clamp(40px, 5vw, 66px); letter-spacing: -.065em; }
.eyebrow { margin-bottom: 12px; color: var(--color-brand); font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.hero-grid > p:not(.eyebrow):not(.hero-actions) { max-width: 52ch; color: var(--color-muted); font-size: 18px; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 0 0; padding: 10px 16px; border-radius: 10px; background: var(--color-brand); color: #fff; font-weight: 750; }
.hero-cta:hover { background: #5c45e5; }
.hero-actions { display: inline-flex; align-items: center; margin: 8px 0 0; }
.badge { padding: 7px 12px; border-radius: 999px; background: rgba(112, 87, 255, .1); color: var(--color-brand); font-size: 14px; font-weight: 750; }

section > h2 { margin-bottom: 6px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
section > h2 + p { color: var(--color-muted); }

.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.platform-card, .preview-card, .quality-card, .boundary-card {
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(32, 47, 93, .06);
}
.platform-card { min-height: 174px; padding: 24px; background: rgba(255,255,255,.82); }
.platform-card h3 { margin-bottom: 8px; }
.platform-card p { margin: 0; color: var(--color-muted); font-size: 14px; }

.demo-layout { padding: 40px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.case-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.case-button {
  padding: 8px 15px;
  border: 1px solid #d7dffa;
  border-radius: 10px;
  background: #f6f7ff;
  color: var(--color-brand);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.case-button[aria-pressed="true"] { border-color: var(--color-brand); background: var(--color-brand); color: #fff; }
#demo-live-status { color: var(--color-muted); font-size: 14px; }
.demo-console { margin-top: 24px; padding: 30px; border-radius: 18px; background: var(--color-console); color: #edf2ff; box-shadow: 0 15px 28px rgba(29,37,80,.2); }
.demo-console h3 { color: #fff; }
.demo-console p { color: #c3cce8; }
.timeline { gap: 12px; padding: 0; list-style: none; counter-reset: workflow; }
.timeline li { min-width: 0; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #dce4fb; font-size: 14px; }
.timeline strong { color: var(--color-success); }

.workflow-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.workflow-panel { padding: 34px 40px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: rgba(255,255,255,.64); }
.workflow-panel > p { max-width: 70ch; margin-bottom: 0; }

.output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.output-grid > h2 { grid-column: 1 / -1; margin-bottom: -12px; }
.preview-card { min-height: 196px; padding: 30px; background: rgba(255,255,255,.86); }
.preview-card h3 { margin-bottom: 10px; color: var(--color-brand); }
.preview-card p { margin: 0; color: var(--color-muted); }

.trust-grid { padding: 34px 40px; }
main > section.quality-card { grid-column: 1 / span 6; padding: 36px; background: #fff; }
.quality-list { margin: 18px 0; padding-left: 1.2em; color: var(--color-muted); }
.quality-list li + li { margin-top: 7px; }
.quality-card > p:last-child { margin-bottom: 0; color: var(--color-muted); }
main > section.boundary-card { grid-column: 7 / -1; padding: 36px; background: var(--color-console); color: #fff; }
.boundary-card h2 { color: #fff; }
.boundary-card ul { margin-bottom: 0; padding-left: 1.2em; color: #d2daf1; }
.boundary-card li + li { margin-top: 7px; }

.security-banner.site-footer { padding: 27px max(20px, calc((100% - var(--page-width)) / 2)); background: #121935; color: #c9d2ed; }
.site-footer p { max-width: var(--page-width); margin: 0 auto 6px; font-size: 14px; }
.site-footer p:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.not-found-page { min-height: 100vh; display: flex; flex-direction: column; }
.not-found-main { flex: 1; display: grid; place-items: center; padding: 48px 20px; }
.not-found-card { width: min(100%, 620px); padding: 48px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .88); box-shadow: var(--shadow-card); }
.not-found-card h1 { margin-bottom: 16px; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.055em; }
.not-found-card > p:not(.eyebrow) { max-width: 38ch; margin-bottom: 28px; color: var(--color-muted); }
.not-found-link { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 10px; background: var(--color-brand); color: #fff; font-weight: 750; }
.not-found-link:hover { background: #5c45e5; }

@media (max-width: 1023px) {
  .hero-grid { padding: 42px; padding-right: calc(50% + 21px); }
  .hero-grid::after { right: 42px; width: calc(50% - 63px); }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .site-header { width: min(calc(100% - 32px), var(--page-width)); align-items: flex-start; flex-direction: column; padding: 17px 0; gap: 8px; }
  .nav-links { justify-content: flex-start; gap: 0 16px; }
  main { width: min(calc(100% - 32px), var(--page-width)); gap: 20px; padding-top: 14px; }
  .hero-grid { min-height: 0; padding: 32px 24px; }
  .hero-grid::after { display: block; position: static; width: auto; min-height: 194px; margin-top: 28px; transform: none; }
  .hero-copy { font-size: clamp(37px, 12vw, 54px); }
  .hero-grid > p:not(.eyebrow):not(.hero-actions) { font-size: 16px; }
  .hero-cta { width: 100%; }
  .platform-grid, .output-grid, .workflow-grid { grid-template-columns: 1fr; }
  .demo-layout, .workflow-panel, .trust-grid { padding: 28px 22px; }
  .demo-console { padding: 24px 18px; }
  .not-found-card { padding: 32px 24px; }
  main > section.quality-card, main > section.boundary-card { grid-column: 1 / -1; padding: 28px 22px; }
  .case-list { display: grid; grid-template-columns: 1fr; }
  .case-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
