/**
 * [INPUT]: 依赖 base.css 的设计令牌与 index.html 的页面区块结构
 * [OUTPUT]: 提供流程图、验证报告、能力边界、FAQ、CTA 与页脚组件样式
 * [POS]: css 模块的内容区块层，承接首屏之后的完整落地页叙事
 * [PROTOCOL]: 变更时更新此头部，然后检查 AGENTS.md
 */

.process-section {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-bright);
}

.process-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 70px;
}

.process-header h2 {
  max-width: 700px;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 68px;
}

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-steps li > span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
}

.process-steps .process-step-title {
  margin: 0 0 7px;
  color: var(--paper-bright);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.process-steps p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.local-diagram {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1b1f19;
}

.diagram-top {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.diagram-canvas {
  display: grid;
  min-height: 260px;
  grid-template-columns: 1fr 0.7fr 82px 0.7fr 1fr;
  align-items: center;
  padding: 28px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
}

.diagram-node {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #20251e;
}

.diagram-node svg {
  width: 29px;
  height: 29px;
  margin-bottom: 12px;
}

.diagram-node span {
  font-family: var(--mono);
  font-size: 10px;
}

.diagram-node small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--mono);
  font-size: 8px;
}

.diagram-node.clean {
  border-color: rgba(185, 255, 102, 0.55);
  color: var(--signal);
}

.diagram-line {
  position: relative;
  display: flex;
  justify-content: space-around;
}

.diagram-line::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.23);
  content: "";
}

.diagram-line i {
  z-index: 1;
  width: 4px;
  height: 4px;
  background: var(--signal);
}

.diagram-line span {
  position: absolute;
  top: 14px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--mono);
  font-size: 7px;
}

.diagram-processor {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(185, 255, 102, 0.44);
  color: var(--signal);
}

.diagram-processor svg {
  width: 30px;
  height: 30px;
}

.diagram-processor small {
  position: absolute;
  bottom: 7px;
  font-family: var(--mono);
  font-size: 7px;
}

.processor-ring {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(185, 255, 102, 0.34);
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.diagram-log {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: #141712;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--mono);
  font-size: 8px;
}

.diagram-log .success {
  color: var(--signal);
}

.report-section {
  background: var(--paper-bright);
}

.report-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.report-bar {
  display: grid;
  min-height: 46px;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
}

.report-bar > span:last-child {
  justify-self: end;
}

.report-bar > div {
  display: flex;
  gap: 6px;
}

.report-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.report-dot.red {
  background: var(--warning);
}

.report-dot.amber {
  background: var(--amber);
}

.report-dot.green {
  background: var(--signal-deep);
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
}

.report-column {
  padding: 36px;
}

.report-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.report-title span {
  padding: 4px 8px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 8px;
}

.report-title strong {
  font-size: 13px;
}

.report-column.before .report-title span {
  color: var(--warning);
}

.report-column.after {
  background: rgba(185, 255, 102, 0.13);
}

.report-column.after .report-title span {
  color: #4b820f;
}

.report-column dl {
  margin: 0;
}

.report-column dl div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
}

.report-column dt {
  color: var(--muted);
}

.report-column dd {
  margin: 0;
  text-align: right;
}

.report-column.after dd {
  color: #3d7308;
  font-weight: 600;
}

.report-divider {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.report-divider span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--signal);
}

.report-divider svg {
  width: 16px;
  height: 16px;
}

.report-foot {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid var(--ink);
  font-size: 10px;
}

.report-foot span {
  color: var(--muted);
  font-family: var(--mono);
}

.report-foot a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
}

.report-foot svg {
  width: 16px;
  height: 16px;
}

.boundary-section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.boundary-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.boundary-copy h2 {
  margin-top: 28px;
}

.boundary-copy > p:last-child {
  max-width: 480px;
  margin-top: 24px;
  color: var(--muted);
}

.boundary-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.boundary-lists > div {
  padding: 28px;
}

.boundary-lists > div + div {
  border-left: 1px solid var(--ink);
}

.boundary-lists .boundary-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boundary-lists .boundary-title svg {
  width: 19px;
  height: 19px;
}

.can-list .boundary-title {
  color: #4a7d16;
}

.cannot-list .boundary-title {
  color: #b13b23;
}

.boundary-lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-lists li {
  position: relative;
  padding: 13px 0 13px 17px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.boundary-lists li::before {
  position: absolute;
  top: 19px;
  left: 0;
  width: 5px;
  height: 5px;
  background: currentColor;
  content: "";
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-intro h2 {
  margin-top: 28px;
}

.faq-intro > p:last-child {
  max-width: 420px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--ink);
}

.faq-list summary {
  display: grid;
  min-height: 84px;
  cursor: pointer;
  grid-template-columns: 42px 1fr 24px;
  gap: 16px;
  align-items: center;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.faq-list summary h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.faq-list summary i {
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-list summary i::before,
.faq-list summary i::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform var(--transition);
}

.faq-list summary i::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary i::after {
  transform: rotate(0);
}

.faq-list details > div {
  padding: 0 42px 28px 58px;
}

.faq-list details p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--signal);
  text-align: center;
}

.cta-grid {
  mask-image: none;
  opacity: 0.65;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-inner > p {
  margin: 0 0 30px;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.cta-inner h2 span {
  font-family: var(--display);
  font-weight: 500;
}

.button-dark {
  min-width: 230px;
  margin-top: 42px;
  background: var(--ink);
  color: var(--paper-bright);
  box-shadow: 5px 5px 0 rgba(22, 25, 20, 0.28);
}

.button-dark:hover {
  background: var(--paper-bright);
  color: var(--ink);
  transform: translateY(-3px);
}

.cta-inner small {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.site-footer {
  padding: 70px 0 24px;
  background: var(--ink);
  color: var(--paper-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 70px;
}

.footer-brand {
  color: var(--paper-bright);
}

.footer-grid > div:first-child p {
  max-width: 340px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.footer-grid .footer-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
}

.footer-grid > div:not(:first-child) a,
.footer-grid > div:not(:first-child) span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid > div:not(:first-child) a:hover {
  color: var(--signal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 68px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.prototype-toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: 330px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  background: var(--signal);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.prototype-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
