:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f3f6;
  --ink: #172026;
  --muted: #66737f;
  --line: #dfe5ea;
  --red: #d71920;
  --red-dark: #a90f16;
  --teal: #0f766e;
  --amber: #9a6700;
  --blue: #1d4ed8;
  --shadow: 0 14px 38px rgba(28, 41, 56, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #111820;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  font-weight: 800;
  font-size: 14px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: #aeb8c2;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  color: #c8d1da;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
}

.nav-list a.active,
.nav-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.side-panel {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-label,
.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-panel .panel-label {
  color: #ffb4b7;
}

.side-panel p {
  margin: 8px 0 0;
  color: #c8d1da;
  font-size: 13px;
  line-height: 1.6;
}

.workspace {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.section-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.search {
  min-width: 310px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.search input,
.planner-form input,
.planner-form select,
.planner-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.search input {
  padding: 12px 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid article,
.tool-section,
.plan-output,
.case-card,
.training-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span,
.asset-meta,
.card-meta,
.training-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

.metric-grid p,
.case-card p,
.training-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tool-section {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.planner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.planner-form label {
  display: grid;
  gap: 7px;
  color: #31404d;
  font-size: 14px;
  font-weight: 700;
}

.planner-form .full,
.planner-form button {
  grid-column: 1 / -1;
}

.planner-form input,
.planner-form select,
.planner-form textarea {
  padding: 11px 12px;
  font-weight: 400;
}

.planner-form textarea {
  min-height: 112px;
  resize: vertical;
}

.primary-button,
.ghost-button,
.segmented button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-button {
  background: var(--red);
  color: #fff;
}

.primary-button:hover {
  background: var(--red-dark);
}

.ghost-button {
  padding: 0 14px;
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}

.plan-output {
  min-height: 356px;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.scheme-report {
  background: #fbfaf6;
  color: #241f19;
}

.scheme-cover {
  min-height: 360px;
  padding: 34px;
  display: grid;
  align-content: end;
  gap: 18px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(29, 24, 18, 0.84), rgba(29, 24, 18, 0.42)),
    linear-gradient(135deg, #2c241b 0%, #8a6b4f 45%, #d9c6a6 100%);
}

.scheme-kicker {
  color: #d6b16f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.scheme-cover h3 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.05;
}

.scheme-cover p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.scheme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scheme-meta span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.scheme-nav {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid #e8dfd1;
  background: #fffaf1;
}

.scheme-nav a {
  padding: 12px 8px;
  border-right: 1px solid #e8dfd1;
  color: #7d6b56;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.scheme-nav a:last-child {
  border-right: 0;
}

.scheme-nav a:hover,
.scheme-nav a.active {
  background: #111820;
  color: #fff;
}

.scheme-section {
  scroll-margin-top: 18px;
}

.plan-share-page {
  max-width: 1060px;
}

.plan-share-bar {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #756854;
  font-size: 13px;
  font-weight: 800;
}

.share-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0;
  color: #756854;
  font-size: 16px;
  font-weight: 800;
}

.scheme-section {
  padding: 28px 32px;
  border-bottom: 1px solid #e8dfd1;
  background: #fff;
}

.scheme-section.alt {
  background: #fbfaf6;
}

.scheme-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.scheme-heading b {
  color: #b8863f;
  font-size: 42px;
  line-height: 1;
}

.scheme-heading h4 {
  margin: 0;
  font-size: 22px;
}

.scheme-heading span {
  color: #9a8874;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.scheme-section p {
  margin-bottom: 0;
  color: #5f5448;
  line-height: 1.75;
}

.scheme-chain,
.scheme-two,
.scheme-three,
.scheme-stats,
.scheme-timeline,
.service-grid {
  display: grid;
  gap: 12px;
}

.scheme-chain {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.scheme-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheme-three,
.scheme-stats,
.scheme-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scheme-chain span,
.scheme-point,
.persona-card,
.scheme-stat,
.scheme-timeline article,
.service-grid article {
  border: 1px solid #e8dfd1;
  border-radius: 8px;
  background: #fffaf1;
}

.scheme-chain span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #4b3c2f;
  font-weight: 800;
  text-align: center;
}

.scheme-point,
.persona-card,
.scheme-stat,
.scheme-timeline article,
.service-grid article {
  padding: 14px;
}

.scheme-point strong,
.persona-card strong,
.scheme-stat strong,
.scheme-timeline strong,
.service-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #2f261d;
}

.scheme-point ul {
  margin: 0;
  padding-left: 18px;
  color: #5f5448;
  line-height: 1.65;
}

.persona-card b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: #2f261d;
  color: #fff;
}

.persona-card span,
.service-grid span {
  display: block;
  color: #7d6b56;
  font-size: 12px;
  font-weight: 800;
}

.persona-card p {
  margin-top: 10px;
  font-size: 13px;
}

.keyword-table {
  display: grid;
  gap: 10px;
}

.keyword-table div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e8dfd1;
  border-radius: 8px;
  background: #fffaf1;
}

.keyword-table strong {
  color: #2f261d;
}

.keyword-table span {
  color: #5f5448;
}

.keyword-table em {
  color: #b8863f;
  font-style: normal;
  font-weight: 800;
}

.scheme-stat em {
  display: block;
  color: #b8863f;
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
}

.scheme-stat span,
.scheme-timeline span {
  color: #7d6b56;
  font-size: 12px;
}

.scheme-timeline article {
  border-left: 3px solid #b8863f;
}

.scheme-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed #d6b16f;
}

.benchmark-grid,
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.benchmark-grid {
  display: grid;
  gap: 10px;
}

.benchmark-grid span {
  padding: 12px;
  border-radius: 8px;
  background: #2f261d;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fee2e2;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.segmented button {
  min-width: 54px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
}

.segmented button.selected {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.case-grid,
.training-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-card,
.training-card,
.capability-card {
  padding: 16px;
  box-shadow: none;
}

.case-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.case-card strong {
  color: var(--red);
  white-space: nowrap;
}

.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 8px;
  background: #111820;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.share-page-body {
  background: #f7f4ee;
}

.case-share-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.case-hero {
  min-height: 520px;
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 18px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 24, 32, 0.92), rgba(17, 24, 32, 0.52)),
    linear-gradient(135deg, #14181f 0%, #7b5b39 52%, #d7b46a 100%);
}

.back-link {
  position: absolute;
  margin-top: -380px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-weight: 800;
}

.case-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
}

.case-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.share-section {
  padding: 34px 10px;
  border-bottom: 1px solid #e3d9c8;
}

.share-section.alt {
  background: #fffaf1;
  margin: 0 -10px;
  padding-right: 20px;
  padding-left: 20px;
}

.share-heading {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.share-heading b {
  color: #b8863f;
  font-size: 42px;
  line-height: 1;
}

.share-grid,
.share-flow,
.related-strip {
  display: grid;
  gap: 12px;
}

.share-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.share-grid article {
  padding: 18px;
  border: 1px solid #e3d9c8;
  border-radius: 8px;
  background: #fff;
}

.share-grid p {
  margin-bottom: 0;
  color: #5f5448;
  line-height: 1.7;
}

.share-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.share-flow span,
.related-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #2f261d;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.share-section blockquote {
  margin: 0;
  padding: 22px;
  border-left: 4px solid #b8863f;
  background: #fff;
  color: #2f261d;
  font-size: 20px;
  line-height: 1.7;
}

.related-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.insight-strip article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.insight-strip strong {
  display: block;
  margin-top: 4px;
}

.asset-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.asset-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 86px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-title {
  display: grid;
  gap: 3px;
  font-weight: 800;
}

.asset-type {
  justify-self: start;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: var(--blue);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.asset-open {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 34px;
}

.progress {
  height: 8px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--surface-soft);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: var(--value);
  background: var(--teal);
}

.capability-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.capability-card .card-meta {
  color: var(--red);
  font-weight: 800;
}

.capability-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.lookup-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.lookup-box article {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.lookup-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #111820;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .metric-grid,
  .case-grid,
  .capability-grid,
  .training-grid,
  .insight-strip,
  .planner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .section-head {
    display: grid;
  }

  .search {
    min-width: 0;
  }

  .metric-grid,
  .case-grid,
  .capability-grid,
  .training-grid,
  .insight-strip,
  .lookup-box,
  .planner-grid,
  .planner-form {
    grid-template-columns: 1fr;
  }

  .asset-row {
    grid-template-columns: 1fr;
  }

  .asset-type,
  .asset-open {
    justify-self: stretch;
  }

  .scheme-cover {
    padding: 24px;
  }

  .scheme-nav,
  .scheme-chain,
  .scheme-two,
  .scheme-three,
  .scheme-stats,
  .scheme-timeline,
  .service-grid,
  .benchmark-grid,
  .keyword-table div,
  .share-grid,
  .share-grid.two,
  .share-flow,
  .related-strip {
    grid-template-columns: 1fr;
  }

  .scheme-heading {
    display: grid;
  }

  .case-share-page {
    padding: 18px;
  }

  .case-hero {
    min-height: 460px;
    padding: 28px;
  }

  .back-link {
    position: static;
    margin-top: 0;
  }
}
