:root {
  --page: #f5f5f1;
  --surface: #fff;
  --surface-muted: #f7f7f3;
  --ink: #192335;
  --muted: #556173;
  --line: #dddfde;
  --line-strong: #bfc6d2;
  --green: #244bb5;
  --green-dark: #1d3c94;
  --green-light: #edf1fc;
  --rail: #f2f3f4;
  --rail-ink: #192335;
  --rail-muted: #556173;
  --rail-line: #dddfde;
  --panel-radius: 6px;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-title: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --nav-height: 70px;
  --content-width: 1280px;
  --page-gutter: clamp(20px, 5vw, 70px);
}

:is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline-color: var(--green); }
::selection { color: #17243e; background: #dce5fc; }
body:has(.product-main) { background: var(--page); }

.product-header {
  position: relative;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.product-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--content-width));
  min-height: var(--nav-height);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.product-mark {
  display: grid;
  width: 34px;
  height: 34px;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding-left: 8px;
  background: var(--green);
}
.product-mark i {
  width: 17px;
  height: 2px;
  background: #fff;
  transform: skewX(-26deg);
}
.product-mark i:nth-child(2) { width: 14px; }
.product-mark i:nth-child(3) { width: 10px; }
.product-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(15px, 3.1vw, 40px);
  min-width: 0;
}
.product-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-height);
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.product-nav a[aria-current="page"], .product-nav a:hover { color: var(--green-dark); }
.product-nav a[aria-current="page"] { font-weight: 750; }
.product-nav a[aria-current="page"]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--green);
  content: "";
}
.product-nav a:focus-visible { outline-offset: 3px; }
.product-main {
  width: min(100%, var(--content-width));
  min-height: 80vh;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 70px) var(--page-gutter) 65px;
}
.product-main :is(.field-input, .panel) { min-width: 0; }
.product-main :is(h1, h2, h3, p, dd, strong) { overflow-wrap: anywhere; }
.product-main .page-heading {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
}
.product-main .page-heading h1 {
  color: var(--ink);
  font-size: clamp(36px, 4.25vw, 62px);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.product-main .page-heading .page-description { max-width: 65ch; margin-top: 12px; }
.product-main .notice { margin: 0 0 16px; }
.product-main .button { min-height: 42px; padding-inline: 16px; border-radius: 4px; }
.product-main .source-link { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.product-main .eyebrow { margin-bottom: 11px; color: var(--muted); letter-spacing: 0; }
.product-missing { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  min-height: clamp(345px, 40vw, 520px);
  background: #182b53;
  color: #fff;
}
.product-hero-copy {
  align-self: center;
  padding: clamp(24px, 4.8vw, 68px);
}
.product-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(38px, 4.1vw, 62px);
  font-weight: 750;
  line-height: 1.19;
  letter-spacing: -.04em;
}
.product-hero-copy > p { margin-block: 18px 27px; color: #e1e9fc; font-size: 16px; }
.product-hero .button-primary { border-color: #fff; background: #fff; color: #1a315e; }
.product-hero .button-primary:hover { border-color: #dce7ff; background: #dce7ff; }
.product-hero .source-link { color: #fff; }
.product-hero :focus-visible { outline-color: #fff; }
.product-hero-photo {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: #888982;
}
.product-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main .directory-heading, .product-main .activity-heading {
  margin-bottom: clamp(22px, 3.7vw, 44px);
  padding-top: 14px;
  border-top: 3px solid var(--ink);
}

.case-filters, .market-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 25%) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: clamp(13px, 1.8vw, 21px);
  border-color: var(--line);
  border-radius: 4px;
  background: var(--surface);
}
:is(.case-filters, .market-filter) .field { min-width: 0; }
:is(.case-filters, .market-filter) .field span { font-size: 12px; }
:is(.case-filters, .market-filter) .field-input { width: 100%; height: 42px; border-radius: 3px; }
:is(.case-filters, .market-filter) button[type="submit"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
:is(.case-filters, .market-filter) button[type="submit"]:hover { background: var(--green-dark); border-color: var(--green-dark); }
.case-count, .market-result-count {
  margin: 22px 0 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.case-publish-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 25px;
  max-width: 860px;
  margin: 0 0 16px;
  padding: 10px 15px 10px 34px;
  border-left: 3px solid var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
}
.production-next-step {
  margin-top: 13px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--green-light);
  color: var(--ink);
}
.case-file-list {
  border-block: 1px solid var(--line-strong);
  background: var(--surface);
}
.case-file-list .case-file {
  position: relative;
  display: grid;
  grid-template-columns: 61px minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(15px, 2vw, 28px);
  min-width: 0;
  min-height: 133px;
  margin: 0;
  padding: 18px 78px 18px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.case-file + .case-file { border-top: 1px solid var(--line); }
.case-file:hover, .case-file:focus-within { background: #f6f8fd; }
.case-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  align-items: center;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 680;
}
.case-file-meta > span + span { padding-left: 10px; border-left: 1px solid var(--line-strong); color: var(--muted); font-weight: 500; }
.case-file-meta .case-file-demo { color: #755122; }
.case-file h2 { font-size: clamp(20px, 2vw, 26px); line-height: 1.28; letter-spacing: -.025em; }
.case-file-link { color: var(--ink); text-decoration: none; }
.case-file-link::after { position: absolute; inset: 0; content: ""; }
.case-file-link:hover, .case-file-link:focus-visible { color: var(--green-dark); }
.case-file-link:focus-visible::after { outline: 2px solid var(--green); outline-offset: -2px; }
.case-file-arrow {
  position: absolute;
  inset: 50% 23px auto auto;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}
.case-file:is(:hover, :focus-within) .case-file-arrow { border-color: var(--green); background: var(--green); color: #fff; }
.case-file-scope { margin-top: 7px; color: var(--muted); font-size: 13px; }
.case-file-proof { align-self: stretch; align-content: center; padding: 5px 0 5px clamp(11px, 1.8vw, 24px); border-left: 1px solid var(--line); }
.case-file-proof strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; }
.case-file-proof p { color: var(--muted); font-size: 13px; }
:is(.case-file-scope, .case-file-proof p) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.case-file-mark {
  --file-background: #dce6fe;
  --file-ink: #3256af;
  display: grid;
  width: 61px;
  height: 70px;
  align-items: center;
  justify-items: center;
  background: var(--file-background);
  color: var(--file-ink);
}
.case-file[data-category="数据与系统"] .case-file-mark { --file-background: #e9e3f8; --file-ink: #65518a; }
.case-file[data-category="知识与协作"] .case-file-mark { --file-background: #f4e6d1; --file-ink: #885625; }
.case-file[data-category="其他"] .case-file-mark { --file-background: #e5ece7; --file-ink: #396048; }
.case-file-mark::before {
  grid-area: 1 / 1;
  width: 26px;
  height: 33px;
  border: 1.5px solid currentColor;
  box-shadow: 3px 3px 0 var(--file-background), 4px 4px 0 currentColor;
  content: "";
}
.case-file-mark::after {
  grid-area: 1 / 1;
  width: 13px;
  height: 14px;
  margin-top: 3px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 5px);
  content: "";
}

.case-detail-grid, .connection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, .85fr);
  align-items: start;
  gap: clamp(15px, 3.3vw, 42px);
}
.product-main :is(.case-detail-grid, .connection-layout) .panel + .panel { margin-top: 0; }
.case-reading .case-story, .case-owner {
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.case-section { padding: 23px 0; }
.case-section + .case-section { border-top: 1px solid var(--line-strong); }
.case-reading .case-section:first-child {
  margin: 0;
  padding-inline: clamp(16px, 2.3vw, 28px);
  background: #eaf0fc;
}
.case-section > h2 { margin-bottom: 14px; font-size: 20px; }
.case-section p { line-height: 1.72; white-space: pre-wrap; }
.case-result > p { margin-bottom: 16px; font-size: 17px; font-weight: 640; }
.case-result .case-sections { padding-top: 12px; border-top: 1px solid #ccd7ee; }
.case-secondary details { margin-top: 12px; }
.case-secondary details summary { color: var(--green-dark); font-weight: 650; cursor: pointer; }
.case-secondary details[open] p { margin-top: 7px; }
.case-owner .panel-header { min-height: 0; padding-inline: 0; background: transparent; }
.case-sections, .connection-facts { display: grid; gap: 14px; }
.case-sections dt, .connection-context dt, .connection-facts dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.case-sections dd, .connection-context dd, .connection-facts dd { margin-top: 4px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.case-owner .case-sections { padding-block: 16px; }
.case-detail-action { margin-top: 7px; }
.case-detail-action .panel-note { margin-top: 9px; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.market-grid .market-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: clamp(15px, 2.3vw, 27px);
  border-top: 2px solid var(--ink);
  border-radius: 0;
}
.market-card-head { display: flex; align-items: center; gap: 12px; }
.market-card-head .eyebrow { margin: 0 0 4px; font-size: 12px; }
.market-card-head h2 { font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.market-partner-mark {
  display: grid;
  flex: 0 0 45px;
  height: 45px;
  place-items: center;
  background: #e4ebfd;
  color: var(--green-dark);
  font: 700 22px var(--font-title);
}
.market-card-summary, .market-card-evidence { color: var(--muted); }
.market-card-specialties { color: var(--green-dark); font-weight: 650; }
.market-card-evidence {
  display: grid;
  gap: 2px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.market-card-evidence strong { color: var(--ink); }
.market-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 5px;
}

.activity-tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 19px;
  border-bottom: 1px solid var(--line-strong);
}
.activity-tabs a {
  min-height: 44px;
  padding: 11px 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 620;
  text-decoration: none;
}
.activity-tabs a:hover, .activity-tabs a[aria-current="page"] { color: var(--green-dark); }
.activity-tabs a[aria-current="page"] { border-color: var(--green); font-weight: 750; }
.product-project-current {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 13px 20px;
  padding: clamp(16px, 2.55vw, 32px);
  border: 1px solid #c8d4f2;
  background: #eaf0fc;
}
.product-project-current p { color: var(--green-dark); font-size: 13px; }
.product-project-current h2 { margin-top: 5px; font-size: clamp(21px, 2.6vw, 32px); }
.connection-list, .product-project-list { margin: 0; padding: 0; list-style: none; }
.connection-row, .product-project-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 16px clamp(14px, 2.3vw, 26px);
}
.connection-row + .connection-row, .product-project-list > li { border-top: 1px solid var(--line); }
.connection-row > div, .product-project-list > li > div { min-width: 0; }
.connection-title { color: var(--ink); font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.product-project-list strong, .product-project-list > li > div a { display: block; }
.product-project-list > li > div a { color: var(--muted); font-size: 13px; }
.product-project-list { background: var(--surface); }
.connection-local-note { color: var(--muted); font-size: 13px; }
.connection-body { padding: 17px 20px; white-space: pre-wrap; }
.connection-summary .connection-body { white-space: normal; }
.connection-summary .connection-body > .field { margin-bottom: 13px; }
.connection-facts { margin-top: 15px; }
.connection-source { margin-top: 0; border-top: 1px solid var(--line); }
.connection-context { border-bottom: 1px solid var(--line); background: #eef2fa; }
.connection-save { justify-content: space-between; }
.case-composer, .connection-form-panel { max-width: 860px; }
.case-composer > section + section { border-top: 1px solid var(--line); }
.case-composer > section .panel-header { min-height: auto; }
:is(.case-composer-optional, .connection-optional) { border-top: 1px solid var(--line); }
:is(.case-composer-optional, .connection-optional) > summary {
  padding: 13px 20px;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 650;
}
:is(.case-composer-optional, .connection-optional) .field-grid { padding-top: 0; }
.product-case-entry {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.workspace-back { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.workspace-stage-select { display: none; }
.project-phases { display: none; }
.product-case-entry strong { color: var(--ink); }
.product-case-entry p { margin-top: 3px; font-size: 13px; }
.product-workspace-source { color: var(--green-dark); text-underline-offset: 3px; }
.shell .sidebar { height: auto; min-height: 0; padding-top: 26px; border-right: 1px solid var(--line); }
.workflow-stage-group + .workflow-stage-group { margin-top: 16px; }
.workflow-stage-group .sidebar-section-label { display: block; margin-bottom: 5px; color: var(--muted); }
.sidebar :focus-visible { outline-color: var(--green); }
.sidebar .nav-link { min-height: 37px; color: var(--muted); }
.sidebar .nav-link:hover { background: #e7ebf3; color: var(--ink); }
.sidebar .nav-link[aria-current] {
  border-color: transparent;
  box-shadow: inset 3px 0 var(--green);
  background: #e2eafa;
  color: var(--green-dark);
  font-weight: 740;
}
.shell .topbar { background: var(--surface); }
.workspace-project-title { overflow-wrap: anywhere; font-size: 15px; }
.workspace-save { color: var(--muted); font-size: 12px; }
.shell .page-heading h1 { color: var(--ink); }
.shell .workspace { padding-top: clamp(20px, 4vw, 44px); }
.shell .panel-header { background: var(--surface); }
.shell :is(.field, .guide-question, .prep-objectives, .prep-preview-evidence) { color: var(--ink); }
.shell .field-input, .shell .workshop-compose > textarea { background: var(--surface); }
.shell .prep-summary { background: var(--surface); }
.shell .prep-summary .panel-header { border-color: #ccd7ee; background: #eaf0fc; color: var(--ink); }
.shell .prep-summary .panel-note, .prep-assistance { color: var(--muted); }
.shell :is(.prep-summary .panel-header .tag, .tag:not(.tag-warning)) { border-color: #cbd8f4; background: var(--green-light); color: var(--green-dark); }
.shell :is(.prep-preview-evidence, .prep-summary > .suggested-question, .guide-group h3) { border-color: #dbe2f0; background: #f0f3fa; }
.shell .empty-quote-body { border-color: var(--green); }
.prep-layout.prep-start { grid-template-columns: minmax(0, 1fr); }
.prep-context > summary { margin: 3px 0 9px; color: var(--green-dark); font-weight: 650; cursor: pointer; }
.prep-assistance { font-size: 12px; }
.prep-guide-toggle { padding: 13px 18px; color: var(--green-dark); font-size: 14px; font-weight: 650; cursor: pointer; }
.prep-guide[open] > .prep-guide-toggle { border-bottom: 1px solid var(--line); }
.workspace :is(.prep-start, .prep-guide) { max-width: 100%; }

@media (max-width: 920px) {
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero-break { display: none; }
}

@media (max-width: 700px) {
  :root { --nav-height: 58px; --page-gutter: clamp(15px, 4vw, 24px); }
  .product-brand { gap: 7px; font-size: 23px; }
  .product-mark { width: 27px; height: 27px; padding-left: 6px; }
  .product-mark i { width: 14px; }
  .product-mark i:nth-child(2) { width: 11px; }
  .product-mark i:nth-child(3) { width: 8px; }
  .product-nav { gap: clamp(10px, 3.1vw, 19px); }
  .product-nav a { font-size: 13px; }
  .product-main .page-heading { align-items: flex-start; }
  .product-hero, .case-detail-grid, .connection-layout { grid-template-columns: minmax(0, 1fr); }
  .product-hero { min-height: 0; }
  .product-hero-photo { min-height: clamp(155px, 49vw, 310px); }
  .product-hero-copy > p { margin-block: 12px 20px; font-size: 14px; }
  .case-file-list .case-file {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 13px;
    min-height: 0;
    padding: 15px 42px 16px 12px;
  }
  .case-file-mark { width: 42px; height: 49px; }
  .case-file-mark::before { width: 19px; height: 26px; }
  .case-file-mark::after { width: 10px; }
  .case-file-arrow { right: 9px; width: 24px; height: 26px; border: 0; }
  .case-file-proof {
    display: flex;
    align-items: baseline;
    gap: 7px;
    grid-column: 2;
    padding: 0;
    border: 0;
  }
  .case-file-proof strong { flex-shrink: 0; margin: 0; }
  .case-file-proof p { -webkit-line-clamp: 1; }
}

@media (max-width: 760px) {
  .shell .sidebar, .workspace-stage-label { display: none; }
  .project-phases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 15px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .project-phases a {
    padding: 9px 2px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    text-decoration: none;
  }
  .project-phases a[aria-current="step"] {
    border-color: var(--green);
    color: var(--green-dark);
    font-weight: 720;
  }
  .workspace-stage-select {
    display: inline-block;
    max-width: 137px;
    min-height: 36px;
    padding: 5px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 650;
  }
  .topbar .breadcrumbs { gap: 6px; }
  .workspace-save { display: none; }
}
@media (max-width: 510px) {
  .product-main .page-heading h1 { font-size: 34px; }
  .product-main :is(.directory-heading, .activity-heading):has(.heading-actions, .button-primary) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 9px;
  }
  .product-main :is(.directory-heading, .activity-heading):has(.heading-actions, .button-primary) > div:first-child { display: contents; }
  .product-main :is(.directory-heading, .activity-heading) .page-description { grid-area: 2 / 1 / auto / -1; margin-top: 6px; }
  .product-main :is(.directory-heading, .activity-heading) > :is(.heading-actions, .button-primary) { grid-area: 1 / 2; align-self: center; }
  .product-main :is(.directory-heading, .activity-heading) .button { padding-inline: 11px; }
  .market-grid { grid-template-columns: minmax(0, 1fr); }
  .case-filters, .market-filter { grid-template-columns: minmax(0, 1fr) auto; }
  :is(.case-filters, .market-filter) .field:first-child { grid-column: 1 / -1; }
  :is(.case-filters, .market-filter) .field-input { font-size: 16px; }
  .product-main :is(.connection-row, .product-project-list > li) { flex-wrap: wrap; }
}
@media print {
  .product-header, .workspace-stage-select, .project-phases { display: none !important; }
}
