:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  color: #17201d;
  background: #eef2ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.intel-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 36px) 42px;
}

.intel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbf9 0%, #edf6f2 58%, #f6f1df 100%);
}

.intel-kicker {
  margin: 0 0 10px;
  color: #176e64;
  font-size: 13px;
  font-weight: 700;
}

.intel-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  color: #10221e;
}

.intel-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #53645f;
  font-size: 16px;
}

.intel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 94px);
  gap: 10px;
}

.intel-metrics span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #667570;
  font-size: 12px;
  align-content: center;
}

.intel-metrics strong {
  color: #17322d;
  font-size: 24px;
  line-height: 1;
}

.intel-notice,
.intel-footer-note,
.intel-feedback-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: #fbfdfc;
  color: #576862;
}

.intel-notice strong,
.intel-feedback-box strong {
  color: #19332e;
}

.intel-notice p,
.intel-footer-note p,
.intel-feedback-box p {
  margin: 2px 0 0;
}

.intel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  margin-top: 20px;
}

.intel-search,
.intel-select {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d7e3de;
  border-radius: 8px;
  background: #fff;
  color: #60706b;
}

.intel-search input,
.intel-select select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #19251f;
}

.intel-search button {
  border: 0;
  background: transparent;
  color: #176e64;
  white-space: nowrap;
}

.intel-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 6px;
}

.intel-tabs button,
.intel-tags button,
.intel-tags span,
.intel-filter-pill button {
  border: 1px solid #d6e2dd;
  border-radius: 999px;
  background: #fff;
  color: #53635d;
}

.intel-tabs button {
  flex: 0 0 auto;
  padding: 8px 13px;
}

.intel-tabs button.active {
  border-color: #176e64;
  background: #176e64;
  color: #fff;
}

.intel-filter-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e8f3ef;
  color: #23433c;
}

.intel-filter-pill button {
  padding: 3px 9px;
}

.intel-day {
  margin-top: 24px;
}

.intel-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.intel-day-head h2 {
  margin: 0;
  color: #17322d;
  font-size: 19px;
}

.intel-day-head span {
  color: #71817b;
}

.intel-list {
  display: grid;
  gap: 12px;
}

.intel-card,
.intel-detail,
.intel-empty {
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(28, 48, 41, 0.05);
}

.intel-card {
  padding: 18px;
}

.intel-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: #76837f;
  font-size: 12px;
}

.intel-time,
.intel-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.intel-source {
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.source-official {
  background: #e6f2ef;
  color: #176e64;
}

.source-media {
  background: #eef0ff;
  color: #39438f;
}

.source-paper {
  background: #fff4d7;
  color: #7b5a00;
}

.source-company {
  background: #e9f5ff;
  color: #145a85;
}

.source-pending {
  background: #fff0ec;
  color: #9a402c;
}

.intel-source-name {
  color: #66736e;
}

.intel-rating {
  color: #b7791f;
  font-weight: 700;
}

.intel-title {
  display: inline-block;
  color: #132721;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.32;
  text-decoration: none;
}

.intel-title:hover {
  color: #176e64;
}

.intel-summary {
  margin: 10px 0 0;
  color: #40504b;
  line-height: 1.75;
}

.intel-reason {
  margin-top: 12px;
  padding: 12px;
  border-left: 3px solid #176e64;
  border-radius: 4px;
  background: #f2f8f5;
  color: #34453f;
}

.intel-note {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 10px 0 0;
  color: #9a402c;
  font-size: 13px;
}

.intel-card-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.intel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intel-tags button,
.intel-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

.intel-tags button:hover {
  border-color: #176e64;
  color: #176e64;
}

.intel-source-link,
.intel-primary-link,
.intel-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #176e64;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.intel-footer-note {
  margin-top: 24px;
}

.intel-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 30px;
  text-align: center;
  color: #66736e;
}

.intel-empty h1,
.intel-empty h2,
.intel-empty p {
  margin: 0;
}

.intel-detail-page {
  max-width: 920px;
}

.intel-back {
  width: fit-content;
  margin-bottom: 16px;
  border: 0;
  background: transparent;
}

.intel-detail {
  padding: clamp(20px, 4vw, 34px);
}

.intel-detail h1 {
  margin: 8px 0 12px;
  color: #132721;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.intel-detail h2 {
  margin: 24px 0 8px;
  color: #18362f;
  font-size: 18px;
}

.intel-detail p {
  color: #40504b;
  line-height: 1.8;
}

.intel-detail-summary {
  margin: 0;
  font-size: 17px;
}

.detail-tags {
  margin-top: 18px;
}

.intel-primary-link {
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid #176e64;
  border-radius: 8px;
}

@media (max-width: 840px) {
  .intel-hero,
  .intel-toolbar {
    grid-template-columns: 1fr;
  }

  .intel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intel-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .intel-page {
    padding: 18px 12px 32px;
  }

  .intel-hero {
    padding: 20px;
  }

  .intel-metrics {
    grid-template-columns: 1fr;
  }

  .intel-card {
    padding: 15px;
  }

  .intel-title {
    font-size: 18px;
  }
}

.intel-ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.intel-ops-strip div {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
}

.intel-ops-strip strong {
  display: block;
  color: #17322d;
  font-size: 18px;
  line-height: 1.2;
}

.intel-ops-strip span {
  display: block;
  margin-top: 6px;
  color: #6a7772;
  font-size: 12px;
  line-height: 1.45;
}

.intel-featured {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: #fbfdfc;
}

.intel-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.intel-section-title span {
  color: #14342d;
  font-size: 18px;
  font-weight: 850;
}

.intel-section-title p {
  max-width: 540px;
  margin: 0;
  color: #71817b;
  font-size: 13px;
}

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

.intel-featured-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 14px;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f4faf7 100%);
  color: #17201d;
  text-decoration: none;
}

.intel-featured-card:hover {
  border-color: #176e64;
  transform: translateY(-1px);
}

.intel-featured-card span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f2ef;
  color: #176e64;
  font-size: 11px;
  font-weight: 800;
}

.intel-featured-card strong {
  font-size: 15px;
  line-height: 1.45;
}

.intel-featured-card small {
  align-self: end;
  color: #75837e;
}

@media (max-width: 940px) {
  .intel-ops-strip,
  .intel-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intel-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .intel-ops-strip,
  .intel-featured-grid {
    grid-template-columns: 1fr;
  }
}
.briefing-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px;
  color: #1d2522;
}

.briefing-header,
.metric-strip,
.workbench-grid,
.template-workbench,
.workflow-standard,
.review-panel {
  max-width: 1720px;
  margin: 0 auto;
}

.briefing-header {
  order: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 2px 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #68726e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #101614;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  color: #111815;
  font-size: 16px;
  line-height: 1.25;
}

h3 {
  color: #101614;
  font-size: 18px;
  line-height: 1.25;
}

.header-subtitle {
  max-width: 900px;
  margin-top: 8px;
  color: #52615b;
  font-size: 14px;
  line-height: 1.55;
}

.header-actions,
.panel-title,
.metric-card,
.upload-button,
button {
  display: inline-flex;
  align-items: center;
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.export-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8dacc;
  border-radius: 999px;
  background: #eaf7f2;
  color: #176e64;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}

button,
.upload-button {
  min-height: 34px;
  border: 1px solid #cbd5d0;
  border-radius: 7px;
  background: #ffffff;
  color: #17201d;
  padding: 0 11px;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  cursor: not-allowed;
  color: #8b9691;
  background: #eef2ef;
  border-color: #d8dfdb;
}

button:hover,
.upload-button:hover {
  border-color: #287e73;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #287e73;
  outline-offset: 2px;
}

select,
textarea {
  width: 100%;
  border: 1px solid #cbd5d0;
  border-radius: 7px;
  background: #ffffff;
  color: #17201d;
  font: inherit;
  font-size: 13px;
}

select {
  min-height: 34px;
  padding: 0 10px;
}

textarea {
  min-height: 150px;
  padding: 10px;
  line-height: 1.5;
  resize: vertical;
}

.primary-action {
  border-color: #176e64;
  background: #176e64;
  color: #ffffff;
}

.confirmed-button {
  border-color: #bbdccf;
  background: #e8f6f1;
  color: #12695e;
}

.upload-button {
  position: relative;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.metric-strip {
  order: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card,
.gate-panel,
.workflow-standard,
.work-panel,
.review-panel {
  border: 1px solid #d6dfda;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(30, 42, 36, 0.07);
}

.workflow-standard {
  order: 5;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
}

.workflow-standard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.structure-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.structure-strip span,
.workflow-rules span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7e2dc;
  border-radius: 6px;
  background: #f7faf8;
  color: #31443d;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.workflow-step {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fbfcfb;
}

.workflow-step > span {
  width: 30px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #176e64;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.workflow-step strong {
  color: #111815;
  font-size: 13px;
  line-height: 1.25;
}

.workflow-step p {
  color: #62706a;
  font-size: 12px;
  line-height: 1.45;
}

.workflow-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scheme-template-library {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.benchmark-library {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.domain-plan-library {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.template-library-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.domain-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.template-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fbfcfb;
}

.template-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.template-card strong {
  color: #111815;
  font-size: 14px;
}

.template-card span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f2ef;
  color: #176e64;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.template-card p {
  color: #5e6b66;
  font-size: 12px;
  line-height: 1.45;
}

.template-card b {
  color: #31443d;
}

.template-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.template-sequence em {
  border: 1px solid #e0e7e3;
  border-radius: 6px;
  background: #ffffff;
  color: #40524b;
  padding: 4px 6px;
  font-size: 11px;
  font-style: normal;
}

.benchmark-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fbfcfb;
}

.benchmark-card a {
  color: #176e64;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.benchmark-card p {
  color: #5e6b66;
  font-size: 12px;
  line-height: 1.45;
}

.benchmark-card small {
  color: #7b560e;
  font-size: 12px;
  line-height: 1.45;
}

.domain-plan-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fbfcfb;
}

.domain-plan-card h4 {
  margin: 0;
  color: #111815;
  font-size: 15px;
}

.domain-plan-card div {
  display: grid;
  gap: 3px;
}

.domain-plan-card strong {
  color: #176e64;
  font-size: 12px;
}

.domain-plan-card p {
  color: #5e6b66;
  font-size: 12px;
  line-height: 1.45;
}

.domain-plan-card small {
  border-top: 1px solid #e0e7e3;
  color: #7b560e;
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.metric-card {
  min-height: 66px;
  padding: 12px;
  gap: 10px;
}

.metric-card > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e8f2ef;
  color: #176e64;
}

.metric-card div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.metric-card small {
  color: #66736d;
  font-size: 12px;
}

.metric-card strong {
  overflow: hidden;
  color: #111815;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 方案模板工作台 (TemplateWorkbench) ---- */

.template-workbench {
  order: 3;
  display: grid;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid #d6dfda;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(30, 42, 36, 0.07);
  overflow: hidden;
}

/* === 模板库视图 === */

.tw-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e8edea;
  background: #fafcfa;
}

.tw-header-left h2 { margin-bottom: 3px; }

.tw-header-left p {
  max-width: 760px;
  color: #52615b;
  font-size: 13px;
  line-height: 1.5;
}

.tw-header-config {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

.tw-header-config label {
  display: grid;
  gap: 4px;
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
  min-width: 120px;
}

.tw-header-config select {
  min-height: 34px;
  min-width: 130px;
  padding: 0 8px;
  border: 1px solid #cbd5d0;
  border-radius: 7px;
  background: #fff;
  color: #17201d;
  font-size: 13px;
}

.tw-overview-label {
  min-width: 280px;
  flex: 1;
}

.tw-header-config textarea {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #cbd5d0;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

/* 模板分区 */
.tw-section {
  padding: 0 18px;
}

.tw-section + .tw-section {
  border-top: 1px solid #e8edea;
  padding-top: 14px;
  padding-bottom: 14px;
}

.tw-section:last-child { padding-bottom: 16px; }

.tw-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 10px;
  color: #176e64;
}

.tw-section-head strong {
  color: #17201d;
  font-size: 15px;
  flex: 1;
}

.tw-section-head span {
  border-radius: 999px;
  background: #e8f2ef;
  color: #176e64;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

/* 模板卡片网格 */
.tw-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.tw-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e0e7e3;
  border-radius: 9px;
  background: #fdfefd;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: auto;
  align-items: start;
  justify-items: start;
}

.tw-card:hover {
  border-color: #176e64;
  box-shadow: 0 4px 16px rgba(23, 110, 100, 0.1);
}

.tw-card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f2ef;
  color: #176e64;
}

.tw-card-body {
  display: grid;
  gap: 2px;
}

.tw-card-body strong {
  color: #17201d;
  font-size: 14px;
}

.tw-card-body span {
  color: #8b9691;
  font-size: 12px;
}

.tw-card-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 2px;
  border-top: 1px solid #eef2ef;
}

.tw-card-chapters em {
  border: 1px solid #e0e7e3;
  border-radius: 5px;
  background: #ffffff;
  color: #5e6b66;
  padding: 2px 6px;
  font-size: 11px;
  font-style: normal;
}

/* === 编辑器视图 === */

.template-editor-view {
  min-height: 80vh;
}

.te-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #e0e7e3;
  background: #fafcfa;
}

.te-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7e2dc;
  border-radius: 7px;
  background: #ffffff;
  color: #40524b;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  min-height: auto;
}

.te-back-btn:hover { border-color: #176e64; }

.te-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.te-toolbar-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e8f2ef;
  color: #176e64;
  flex-shrink: 0;
}

.te-toolbar-title strong {
  display: block;
  color: #17201d;
  font-size: 15px;
}

.te-toolbar-title span {
  color: #8b9691;
  font-size: 11px;
}

.te-toolbar-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.te-toolbar-actions button {
  min-height: 34px;
  font-size: 12px;
}

/* 左右分栏 */
.te-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

/* 左侧目录导航 */
.te-sidebar {
  border-right: 1px solid #e0e7e3;
  background: #fbfcfb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.te-sidebar-head {
  padding: 12px 14px 8px;
  color: #68756f;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.te-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
  display: grid;
  gap: 2px;
}

.te-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: none;
  border-radius: 6px;
  background: none;
  color: #40524b;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  min-height: auto;
  transition: background 0.1s ease;
}

.te-sidebar-item:hover {
  background: #edf4f0;
  color: #17201d;
}

.te-chapter-num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #e8f2ef;
  color: #176e64;
  font-size: 12px;
  font-weight: 850;
  flex-shrink: 0;
}

.te-chapter-label {
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右侧编辑器 */
.te-editor-area {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.te-editor-hint {
  padding: 8px 14px;
  border-bottom: 1px solid #e8edea;
  background: #fffdf5;
  color: #8a6d00;
  font-size: 12px;
}

.te-editor {
  flex: 1;
  width: 100%;
  min-height: 70vh;
  padding: 20px 24px;
  border: none;
  background: #ffffff;
  color: #26342f;
  font: 14px/1.75 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  resize: none;
  outline: none;
  tab-size: 2;
}

.te-editor:focus { outline: none; }

/* === 响应式 === */
@media (max-width: 1320px) {
  .tw-header { flex-direction: column; }
  .tw-header-config { flex-wrap: wrap; width: 100%; }
  .tw-overview-label { min-width: 100%; flex: auto; }
}

@media (max-width: 880px) {
  .te-layout {
    grid-template-columns: 1fr;
  }
  .te-sidebar {
    display: none;
  }
  .te-toolbar {
    flex-wrap: wrap;
  }
  .te-toolbar-actions {
    width: 100%;
  }
  .te-toolbar-actions button {
    flex: 1;
    justify-content: center;
  }
}

.workbench-grid {
  order: 5;
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(560px, 1fr) minmax(410px, 500px);
  gap: 12px;
  align-items: start;
}

.left-rail,
.center-stage,
.right-rail {
  display: grid;
  gap: 12px;
}

.work-panel {
  padding: 13px;
}

.panel-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title span {
  display: block;
  margin-bottom: 2px;
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
}

.upload-drop {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  place-items: center;
  text-align: center;
  border: 1px dashed #aebdb5;
  border-radius: 8px;
  background: #f7faf8;
}

.upload-drop.status-uploaded,
.upload-drop.status-parsing {
  border-color: #d9b96f;
  background: #fff9ea;
}

.upload-drop.status-parsed {
  border-color: #9bcbbd;
  background: #f0faf6;
}

.upload-drop svg {
  color: #176e64;
}

.upload-drop strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #17201d;
}

.upload-drop span {
  color: #62706a;
  font-size: 12px;
  line-height: 1.45;
}

.upload-status-list {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.progress-line {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fbfcfb;
}

.progress-line > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.progress-line span {
  color: #68756f;
  font-size: 12px;
  font-weight: 750;
}

.progress-line strong {
  color: #176e64;
  font-size: 12px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe7;
}

.progress-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #176e64;
  transition: width 180ms ease;
}

.parameter-table {
  display: grid;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  overflow: hidden;
}

.parameter-table div,
.scene-schema div,
.info-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.parameter-table div {
  padding: 8px 10px;
  border-bottom: 1px solid #e4ebe7;
}

.parameter-table div:last-child {
  border-bottom: 0;
}

.parameter-table span,
.scene-schema span,
.info-line span,
.tag-section > span {
  color: #68756f;
  font-size: 12px;
  font-weight: 700;
}

.parameter-table strong,
.scene-schema strong,
.info-line strong {
  color: #18211e;
  font-size: 13px;
  line-height: 1.4;
}

.warning-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #9b5b00;
  font-size: 12px;
}

.sequence-tree {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.sequence-group {
  min-height: 112px;
  padding: 10px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #f9fbfa;
}

.sequence-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.sequence-title svg {
  color: #176e64;
}

.sequence-title strong {
  flex: 1;
  color: #17201d;
  font-size: 13px;
}

.sequence-title button {
  width: 30px;
  min-height: 28px;
  padding: 0;
}

.sequence-children {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.sequence-children span {
  border: 1px solid #dde6e1;
  border-radius: 999px;
  background: #ffffff;
  color: #56635e;
  padding: 4px 7px;
  font-size: 12px;
}

.step-selector,
.state-tabs {
  display: grid;
  gap: 8px;
}

.step-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-choice {
  min-height: 74px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  background: #f9fbfa;
}

.step-choice > span {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8c7bf;
  border-radius: 5px;
  background: #ffffff;
  color: #176e64;
}

.step-choice div {
  display: grid;
  gap: 3px;
}

.step-choice strong {
  color: #17201d;
  font-size: 13px;
}

.step-choice small {
  color: #60706a;
  font-size: 12px;
  line-height: 1.35;
}

.step-choice.selected {
  border-color: #176e64;
  background: #edf8f4;
}

.step-choice:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.scene-lock-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.scene-visual-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scene-image-card {
  display: grid;
  gap: 8px;
}

.scene-image-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scene-image-title strong {
  color: #17201d;
  font-size: 13px;
}

.scene-image-title span {
  border: 1px solid #dbe4df;
  border-radius: 999px;
  background: #f7faf8;
  color: #5f6c66;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.scene-image-card p {
  color: #5c6a64;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-card,
.atlas-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dfe7e3;
  border-radius: 8px;
  background: #fbfcfb;
}

.evidence-card > div,
.atlas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.evidence-card span,
.atlas-head span {
  display: block;
  margin-bottom: 2px;
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
}

.evidence-card strong,
.atlas-head strong {
  color: #17201d;
  font-size: 14px;
}

.evidence-card p,
.atlas-card p {
  color: #5c6a64;
  font-size: 12px;
  line-height: 1.5;
}

.source-block {
  display: grid;
  gap: 7px;
  padding-top: 4px;
}

.source-block > span {
  color: #68756f;
  font-size: 11px;
  font-weight: 850;
}

.source-block article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid #e0e7e3;
  border-radius: 7px;
  background: #ffffff;
}

.source-block article strong {
  color: #17201d;
  font-size: 12px;
}

.source-block article p {
  color: #5c6a64;
  font-size: 12px;
  line-height: 1.45;
}

.sequence-source {
  margin-top: 10px;
}

.atlas-card {
  grid-column: 2;
  align-self: start;
}

.atlas-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f2ef;
  color: #176e64;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.atlas-card.confidence-medium .atlas-head em {
  background: #fff8e8;
  color: #8a5a00;
}

.atlas-card.confidence-low .atlas-head em {
  background: #eef2ef;
  color: #66736d;
}

.atlas-briefs {
  display: grid;
  gap: 2px;
  padding-top: 2px;
}

.scene-real-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #eef2ef;
}

.scene-preview {
  position: relative;
  min-height: 238px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(226, 235, 230, 0.85) 0%, rgba(205, 216, 210, 0.82) 100%),
    linear-gradient(90deg, rgba(123, 140, 132, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(123, 140, 132, 0.16) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
  overflow: hidden;
}

.scene-preview.shield {
  background:
    linear-gradient(180deg, #dce8e2 0%, #c8d5ce 100%),
    linear-gradient(90deg, rgba(123, 140, 132, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(123, 140, 132, 0.18) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}

.scene-preview.invertedWell {
  background:
    linear-gradient(180deg, #dce8e2 0%, #cbd9d2 52%, #b9c4be 100%),
    linear-gradient(90deg, rgba(123, 140, 132, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(123, 140, 132, 0.18) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}

.site-ground {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 30px;
  height: 78px;
  border: 2px solid #8a9891;
  background: rgba(247, 250, 248, 0.55);
  transform: skewX(-8deg);
}

.site-boundary {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18px;
  height: 18px;
  border-top: 4px dashed #b87111;
}

.site-label {
  position: absolute;
  border: 1px solid rgba(23, 110, 100, 0.25);
  border-radius: 999px;
  background: #ffffff;
  color: #176e64;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(22, 31, 27, 0.08);
}

.label-site {
  top: 14px;
  left: 12px;
}

.label-work {
  right: 14px;
  bottom: 54px;
}

.label-crane {
  left: 13%;
  top: 58px;
}

.label-load {
  right: 12%;
  top: 104px;
}

.scene-preview.gantry.background::before,
.scene-preview.gantry.entity::before {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 78px;
  height: 7px;
  content: '';
  background: repeating-linear-gradient(
    90deg,
    #65726b 0,
    #65726b 20px,
    #a3ada8 20px,
    #a3ada8 31px
  );
}

.scene-preview.shield.background::before,
.scene-preview.shield.entity::before {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 52px;
  height: 116px;
  content: '';
  border: 4px solid #66746e;
  border-top: 0;
  background: rgba(100, 116, 108, 0.14);
}

.scene-preview.invertedWell.background::before,
.scene-preview.invertedWell.entity::before {
  position: absolute;
  left: 36%;
  right: 36%;
  bottom: 32px;
  height: 142px;
  content: '';
  border: 4px solid #66746e;
  border-top: 12px solid #66746e;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(184, 113, 17, 0.22) 0,
      rgba(184, 113, 17, 0.22) 10px,
      rgba(255, 255, 255, 0.18) 10px,
      rgba(255, 255, 255, 0.18) 25px
    );
}

.mini-mobile-crane,
.mini-crawler-crane {
  position: absolute;
  left: 15%;
  bottom: 88px;
  width: 70px;
  height: 26px;
  border-radius: 6px;
  background: #6a7670;
}

.mini-mobile-crane::before,
.mini-crawler-crane::before {
  position: absolute;
  left: 44px;
  bottom: 18px;
  width: 96px;
  height: 5px;
  content: '';
  background: #586861;
  transform: rotate(-34deg);
  transform-origin: left center;
}

.mini-mobile-crane::after,
.mini-crawler-crane::after {
  position: absolute;
  left: 134px;
  bottom: 70px;
  width: 2px;
  height: 62px;
  content: '';
  background: #586861;
}

.mini-gantry-load {
  position: absolute;
  right: 18%;
  top: 110px;
  width: 118px;
  height: 18px;
  border: 3px solid #35433d;
  background: #c2cbc6;
}

.mini-shield-load {
  position: absolute;
  right: 24%;
  top: 105px;
  width: 88px;
  height: 46px;
  border: 3px solid #35433d;
  border-radius: 999px;
  background: #c2cbc6;
}

.entity-path {
  position: absolute;
  left: 42%;
  top: 88px;
  width: 96px;
  height: 72px;
  border-right: 5px solid #b87111;
  border-bottom: 5px solid #b87111;
  transform: skewX(-16deg);
}

.entity-path::after {
  position: absolute;
  right: -10px;
  bottom: -12px;
  content: '';
  border-top: 12px solid #b87111;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.mini-well-hoist {
  position: absolute;
  left: 24%;
  top: 66px;
  width: 116px;
  height: 16px;
  border-radius: 4px;
  background: #586861;
}

.mini-well-hoist::before {
  position: absolute;
  left: 48px;
  top: 14px;
  width: 3px;
  height: 96px;
  content: '';
  background: #586861;
}

.mini-well-hoist::after {
  position: absolute;
  left: 38px;
  top: 92px;
  width: 24px;
  height: 22px;
  content: '';
  border: 3px solid #35433d;
  border-radius: 4px;
  background: #c9b07b;
}

.mini-well-shaft {
  position: absolute;
  right: 22%;
  bottom: 36px;
  width: 86px;
  height: 132px;
  border: 4px solid #35433d;
  border-top: 12px solid #35433d;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(99, 116, 108, 0.16) 0,
      rgba(99, 116, 108, 0.16) 18px,
      rgba(184, 113, 17, 0.16) 18px,
      rgba(184, 113, 17, 0.16) 25px
    );
}

.mini-work-equipment {
  position: absolute;
  left: 16%;
  bottom: 88px;
  width: 78px;
  height: 36px;
  border-radius: 6px;
  background: #6a7670;
}

.mini-work-object {
  position: absolute;
  right: 20%;
  top: 106px;
  width: 108px;
  height: 42px;
  border: 3px solid #35433d;
  background: #c2cbc6;
}

.shaft {
  position: relative;
  height: 278px;
}

.gantry-scene {
  position: relative;
  height: 278px;
}

.gantry-scene::before {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 30px;
  height: 5px;
  content: '';
  background: repeating-linear-gradient(
    90deg,
    #7d8983 0,
    #7d8983 18px,
    #a7b0ab 18px,
    #a7b0ab 28px
  );
}

.gantry-left-leg,
.gantry-right-leg {
  position: absolute;
  bottom: 34px;
  width: 16px;
  height: 158px;
  background: #586861;
}

.gantry-left-leg {
  left: 25%;
  transform: skewX(-8deg);
}

.gantry-right-leg {
  right: 25%;
  transform: skewX(8deg);
}

.gantry-beam {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 72px;
  height: 22px;
  border: 3px solid #35433d;
  background: #b9c4be;
}

.gantry-hook {
  position: absolute;
  top: 94px;
  left: calc(50% - 2px);
  width: 4px;
  height: 82px;
  background: #6a7670;
}

.gantry-hook::after {
  position: absolute;
  left: -13px;
  bottom: -21px;
  width: 30px;
  height: 18px;
  content: '';
  border: 4px solid #b87111;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.shaft::before {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 20px;
  height: 158px;
  content: '';
  border: 3px solid #6a7670;
  border-top: 0;
  background: rgba(190, 202, 196, 0.18);
}

.shaft-wall {
  position: absolute;
  bottom: 18px;
  width: 42px;
  height: 166px;
  background: repeating-linear-gradient(
    0deg,
    #9aa59f 0,
    #9aa59f 8px,
    #87938c 8px,
    #87938c 13px
  );
}

.shaft-wall.left {
  left: 12%;
}

.shaft-wall.right {
  right: 12%;
}

.shield-body {
  position: absolute;
  left: 33%;
  bottom: 62px;
  width: 34%;
  height: 66px;
  border: 3px solid #3f4d48;
  border-radius: 44px;
  background: #cdd5d1;
}

.cutter-head {
  position: absolute;
  left: 29%;
  bottom: 59px;
  width: 74px;
  height: 74px;
  border: 5px solid #2f3c37;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, #596760 45%, #596760 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, #596760 45%, #596760 55%, transparent 55%),
    #b9c3bd;
}

.crane-hook {
  position: absolute;
  top: 16px;
  left: 48%;
  width: 3px;
  height: 118px;
  background: #66746e;
}

.drop-arrow {
  position: absolute;
  top: 104px;
  left: calc(48% - 10px);
  color: #b87111;
}

.scene-tag,
.callout {
  position: absolute;
  border: 1px solid rgba(23, 110, 100, 0.25);
  border-radius: 999px;
  background: #ffffff;
  color: #176e64;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(22, 31, 27, 0.08);
}

.tag-crane {
  top: 18px;
  left: 52%;
}

.tag-shaft {
  bottom: 26px;
  left: 15%;
}

.tag-tbm {
  bottom: 138px;
  right: 16%;
}

.scene-schema {
  display: grid;
  gap: 8px;
  align-content: start;
}

.scene-schema div,
.info-line {
  padding: 8px 0;
  border-bottom: 1px solid #e6ece8;
}

.state-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.state-tab {
  justify-content: center;
  min-height: 34px;
}

.state-tab.active {
  border-color: #176e64;
  background: #176e64;
  color: #ffffff;
}

.visual-state {
  display: grid;
  gap: 12px;
}

.keyframe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #f9fbfa;
}

.keyframe-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.keyframe-toolbar span {
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
}

.keyframe-toolbar strong {
  color: #17201d;
  font-size: 14px;
}

.keyframe-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.keyframe-actions button {
  min-height: 32px;
}

.step-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #eef2ef;
}

.image-source-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(13, 26, 22, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.step-real-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.technical-illustration {
  position: relative;
  height: 286px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background:
    linear-gradient(rgba(44, 74, 64, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 74, 64, 0.06) 1px, transparent 1px),
    #f5f8f6;
  background-size: 22px 22px;
  overflow: hidden;
}

.gantry-illustration {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 70px;
  height: 120px;
  border-top: 14px solid #586861;
  border-left: 12px solid #586861;
  border-right: 12px solid #586861;
}

.gantry-illustration::before {
  position: absolute;
  left: 44%;
  top: 0;
  width: 4px;
  height: 82px;
  content: '';
  background: #b87111;
}

.gantry-illustration::after {
  position: absolute;
  left: 39%;
  top: 78px;
  width: 48px;
  height: 18px;
  content: '';
  border-radius: 5px;
  background: #c9b07b;
}

.well-outline {
  position: absolute;
  left: 34%;
  right: 34%;
  bottom: 28px;
  height: 190px;
  border: 4px solid #596760;
  border-top: 14px solid #596760;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(184, 113, 17, 0.18) 0,
      rgba(184, 113, 17, 0.18) 12px,
      rgba(255, 255, 255, 0.2) 12px,
      rgba(255, 255, 255, 0.2) 30px
    );
}

.well-outline::before {
  position: absolute;
  left: -72px;
  top: -80px;
  width: 144px;
  height: 12px;
  content: '';
  border-radius: 4px;
  background: #69766f;
}

.well-outline::after {
  position: absolute;
  left: -4px;
  top: -68px;
  width: 3px;
  height: 88px;
  content: '';
  background: #69766f;
}

.tbm-outline {
  position: absolute;
  left: 25%;
  bottom: 78px;
  width: 48%;
  height: 72px;
  border: 4px solid #35433d;
  border-radius: 999px;
  background: rgba(180, 192, 186, 0.72);
}

.generic-work-outline {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 70px;
  height: 94px;
  border: 4px solid #596760;
  background: rgba(180, 192, 186, 0.58);
}

.crane-line {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 2px;
  height: 128px;
  background: #69766f;
}

.motion-arrow {
  position: absolute;
  top: 118px;
  left: 45%;
  width: 58px;
  height: 58px;
  border-right: 5px solid #b87111;
  border-bottom: 5px solid #b87111;
  transform: rotate(45deg);
}

.callout-1 {
  left: 8%;
  top: 28px;
}

.callout-2 {
  right: 8%;
  top: 50px;
}

.callout-3 {
  left: 8%;
  bottom: 72px;
}

.callout-4 {
  right: 8%;
  bottom: 56px;
}

.callout-5 {
  left: 36%;
  top: 136px;
}

.state-copy {
  display: grid;
  gap: 9px;
}

.state-copy p {
  color: #52615b;
  font-size: 13px;
  line-height: 1.55;
}

.tag-section {
  display: grid;
  gap: 6px;
}

.tag-section div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid #dbe4df;
  border-radius: 999px;
  background: #f7faf8;
  color: #4f5d57;
  padding: 4px 7px;
  font-size: 12px;
  font-style: normal;
}

.tag.green {
  border-color: #b8dacc;
  background: #edf8f4;
  color: #176e64;
}

.tag.blue {
  border-color: #b8cde6;
  background: #eef6ff;
  color: #27618f;
}

.tag.amber {
  border-color: #ead3a0;
  background: #fff8e8;
  color: #8a5a00;
}

/* ---- 施工状态机引擎新增样式 ---- */

/* 状态机进度条 */
.state-machine-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 0;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #f9fbfa;
  overflow-x: auto;
}

.state-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: none;
  background: none;
  cursor: pointer;
  min-height: auto;
  position: relative;
}

.state-dot::after {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: #d9e2dd;
}

.state-dot:last-child::after {
  display: none;
}

.state-dot .dot-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c6d3cc;
  background: #ffffff;
  transition: all 0.2s ease;
  z-index: 1;
}

.state-dot.active .dot-circle {
  border-color: #176e64;
  background: #176e64;
  box-shadow: 0 0 0 4px rgba(23, 110, 100, 0.15);
}

.state-dot.done .dot-circle {
  border-color: #176e64;
  background: #b8dacc;
}

.state-dot.done::after {
  background: #176e64;
}

.state-dot small {
  color: #8b9691;
  font-size: 10px;
  font-weight: 800;
}

.state-dot.active small {
  color: #176e64;
}

.state-dot.done small {
  color: #176e64;
}

/* 状态变化摘要 */
.state-machine-info {
  display: grid;
  gap: 8px;
}

.state-change-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #bbdccf;
  border-radius: 8px;
  background: #f0faf6;
}

.state-change-bar .state-change-label {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #176e64;
  color: #ffffff;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.state-change-bar strong {
  color: #17201d;
  font-size: 13px;
  line-height: 1.5;
}

/* 母图引用 */
.state-parent-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #dfe7e3;
  border-radius: 6px;
  background: #fbfcfb;
}

.state-parent-ref span {
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
}

.state-parent-ref strong {
  color: #176e64;
  font-size: 13px;
}

.state-parent-ref small {
  color: #8b9691;
  font-size: 11px;
}

/* 对象状态表 */
.object-state-table {
  display: grid;
  gap: 6px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

.object-state-table > span {
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
}

.object-state-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.object-state-table th {
  padding: 6px 4px;
  border-bottom: 2px solid #e0e7e3;
  color: #68756f;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

.object-state-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #eef2ef;
  color: #31433d;
  line-height: 1.35;
}

.object-state-table .obj-name {
  font-weight: 750;
  color: #111815;
  white-space: nowrap;
}

.object-state-table .obj-movement {
  color: #62706a;
  font-size: 11px;
  max-width: 160px;
}

.object-state-table .load-full {
  color: #9b5b00;
  font-weight: 750;
}

.object-state-table .load-active {
  color: #176e64;
}

.object-state-table .load-idle {
  color: #8b9691;
}

/* ---- 3D 施工场景 ---- */

.scene-3d-wrapper {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.scene-3d-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scene-3d-label strong {
  color: #17201d;
  font-size: 13px;
}

.scene-3d-label span {
  border: 1px solid #bbdccf;
  border-radius: 999px;
  background: #f0faf6;
  color: #176e64;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.scene-3d-hint {
  color: #94a09a;
  font-size: 11px;
  text-align: center;
  margin: 0;
}

.step-3d-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #eef2ef;
}

.step-3d-frame .image-source-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(13, 26, 22, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.locked-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #cfd8d3;
  border-radius: 8px;
  background: #f7faf8;
  text-align: center;
}

.locked-state svg {
  color: #8a9690;
}

.locked-state strong {
  color: #17201d;
  font-size: 15px;
}

.locked-state p {
  max-width: 360px;
  color: #62706a;
  font-size: 13px;
  line-height: 1.5;
}

.deliverable-list {
  display: grid;
  gap: 8px;
}

.deliverable {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  background: #f9fbfa;
}

.deliverable > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e8f2ef;
  color: #176e64;
}

.deliverable strong {
  display: block;
  margin-bottom: 3px;
  color: #17201d;
  font-size: 14px;
}

.deliverable p {
  color: #61706a;
  font-size: 12px;
  line-height: 1.45;
}

.review-panel {
  order: 6;
  margin-top: 12px;
  padding: 14px;
}

.review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  background: #f9fbfa;
}

.review-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-card strong {
  color: #17201d;
}

.review-card span {
  border-radius: 999px;
  background: #e8f2ef;
  color: #176e64;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.review-card p {
  color: #52615b;
  font-size: 13px;
  line-height: 1.5;
}

.review-card small {
  color: #7b560e;
  font-size: 12px;
  line-height: 1.45;
}

/* ---- 方案识别重构新增样式 ---- */

.mode-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.confidence-badge,
.recognizing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
}

.confidence-high {
  border: 1px solid #8bc4a8;
  background: #dff7ed;
  color: #0e5e4b;
}

.confidence-medium {
  border: 1px solid #e0c87a;
  background: #fff8e0;
  color: #7d5c0a;
}

.confidence-low {
  border: 1px solid #d4d9d6;
  background: #eef2ef;
  color: #5a6660;
}

.recognizing-badge {
  border: 1px solid #b8cde6;
  background: #eef6ff;
  color: #27618f;
  animation: badge-pulse 1.2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* 参数表加载骨架屏 */
.parameter-table-loading .param-row-loading {
  padding: 10px 10px;
  border-bottom: 1px solid #e4ebe7;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.parameter-table-loading .param-row-loading span {
  color: #8b9691;
  font-size: 12px;
  font-weight: 700;
}

.loading-placeholder {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8edea 25%, #dce3df 50%, #e8edea 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 待识别字段 - 虚线框提示 */
.param-row-pending strong {
  border: 1px dashed #cfb056;
  border-radius: 6px;
  background: #fffdf5;
  color: #7d5c0a;
  padding: 4px 8px;
}

.param-row-pending span {
  color: #7d5c0a;
}

@media (max-width: 1320px) {
  .workbench-grid {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .workflow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benchmark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.8fr);
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gate-panel {
  order: 4;
  max-width: 1720px;
  margin: 0 auto 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gate-panel.ready {
  border-color: #b8dacc;
  background: #f4fbf8;
}

.gate-checks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.gate-check {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ead3a0;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5a00;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}

.gate-check.done {
  border-color: #b8dacc;
  background: #eaf7f2;
  color: #176e64;
}

/* ---- TemplateWorkbench 响应式 ---- */
@media (max-width: 1320px) {
  .template-workbench-header {
    flex-direction: column;
  }

  .template-workbench-config {
    flex-wrap: wrap;
    width: 100%;
  }

  .template-workbench-config .overview-label {
    min-width: 100%;
    flex: auto;
  }
}

@media (max-width: 880px) {
  .briefing-app {
    padding: 12px;
  }

  .briefing-header,
  .gate-panel,
  .workflow-standard-head,
  .template-library-head,
  .review-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions,
  .header-actions button,
  .gate-checks,
  .review-heading button {
    width: 100%;
  }

  .gate-checks {
    justify-content: flex-start;
  }

  .structure-strip {
    justify-content: flex-start;
  }

  .metric-strip,
  .workbench-grid,
  .right-rail,
  .sequence-tree,
  .step-selector,
  .scene-lock-grid,
  .workflow-steps,
  .template-grid,
  .benchmark-grid,
  .domain-plan-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .atlas-card {
    grid-column: auto;
  }

  h1 {
    font-size: 24px;
  }
}

/* ============================================================
   侧边栏布局 (AppShell)
   ============================================================ */

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

/* 侧边栏 */
.as-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #e5e9e6;
  background: #fafbfa;
  overflow-y: auto;
}

.as-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 14px;
  font-size: 16px;
  font-weight: 850;
  color: #17201d;
  text-decoration: none;
  border-bottom: 1px solid #eef2ef;
}

.as-nav { flex: 1; padding: 8px 10px; display: grid; gap: 2px; align-content: start; }

.as-group { display: grid; gap: 1px; }
.as-group + .as-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef2ef; }

.as-group-label {
  padding: 4px 10px 2px;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  color: #a0ada7;
  letter-spacing: 0.04em;
}

.as-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: none;
  color: #4f5d57;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  min-height: auto;
}

.as-item:hover { background: #eef4f0; color: #17201d; }
.as-item.active { background: #e8f2ef; color: #176e64; font-weight: 750; }

.as-expandable { justify-content: flex-start; }
.as-chevron { margin-left: auto; color: #b0bdb7; }

.as-sub-item { padding-left: 36px; font-size: 12px; font-weight: 550; }

.as-footer {
  padding: 14px 16px;
  border-top: 1px solid #eef2ef;
  display: grid;
  gap: 4px;
}

.as-footer a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #68756f;
  text-decoration: none;
}

.as-footer a:hover { color: #176e64; }
.as-footer span { font-size: 11px; color: #b0bdb7; }

/* 主内容区 */
.as-main {
  min-height: 100vh;
  background: #ffffff;
}

/* 首页 */
.hp-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.hp-hero {
  text-align: center;
  margin-bottom: 48px;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid #bbdccf;
  border-radius: 999px;
  background: #f0faf6;
  color: #176e64;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hp-hero-title {
  font-size: 42px;
  margin: 0 0 12px;
  color: #101614;
  letter-spacing: 0;
}

.hp-hero-subtitle {
  color: #52615b;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.hp-achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.hp-achieve-item {
  display: grid;
  gap: 6px;
  padding: 20px 14px;
  border: 1px solid #dce5e0;
  border-radius: 10px;
  background: #fdfefd;
  text-align: center;
  color: #176e64;
}

.hp-achieve-item strong {
  font-size: 14px;
  color: #17201d;
}

.hp-achieve-item span {
  font-size: 12px;
  color: #68756f;
}

.hp-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.15s;
}

.hp-cta-btn.primary {
  background: #176e64;
  color: #fff;
  border: 2px solid #176e64;
}

.hp-cta-btn.primary:hover {
  background: #125b53;
}

.hp-cta-btn.secondary {
  background: #fff;
  color: #176e64;
  border: 2px solid #176e64;
}

.hp-cta-btn.secondary:hover {
  background: #f0faf6;
}

/* 区块 */
.hp-section {
  margin-bottom: 48px;
}

.hp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 22px;
  color: #17201d;
}

/* 故事网格 */
.hp-story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hp-story-card {
  padding: 20px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fff;
}

.hp-story-phase {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8f2ef;
  color: #176e64;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hp-story-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #17201d;
}

.hp-story-card p {
  margin: 0;
  color: #52615b;
  font-size: 13px;
  line-height: 1.55;
}

/* 能力卡片 */
.hp-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hp-cap-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fff;
  color: #176e64;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hp-cap-card:hover {
  border-color: #176e64;
  box-shadow: 0 4px 16px rgba(23,110,100,0.1);
}

.hp-cap-card h3 {
  margin: 0;
  font-size: 17px;
  color: #17201d;
}

.hp-cap-card p {
  margin: 0;
  font-size: 13px;
  color: #52615b;
  line-height: 1.5;
}

.hp-cap-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #176e64;
  font-size: 13px;
  font-weight: 700;
}

/* 数据条 */
.hp-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 48px;
}

.hp-stats-bar > div {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid #eef2ef;
}

.hp-stats-bar > div:last-child { border-right: none; }

.hp-stats-bar strong {
  display: block;
  font-size: 28px;
  color: #176e64;
}

.hp-stats-bar span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #68756f;
  font-weight: 600;
}

/* 价格层级 */
.hp-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: left;
}

.hp-tier-card {
  padding: 22px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fff;
}

.hp-tier-card.featured {
  border: 2px solid #176e64;
  background: #f0faf6;
}

.hp-tier-card h4 { margin: 0 0 6px; font-size: 14px; }
.hp-tier-card strong { display: block; font-size: 16px; color: #17201d; margin-bottom: 6px; }
.hp-tier-card p { margin: 0; font-size: 13px; color: #52615b; line-height: 1.5; }

.hp-footer {
  text-align: center;
  color: #8b9691;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #e0e7e3;
}

/* 响应式 */
@media (max-width: 768px) {
  .gn-nav { padding: 0 10px; }
  .gn-link span { display: none; }
  .hp-hero-title { font-size: 28px; }
  .hp-achievements,
  .hp-story-grid,
  .hp-cap-grid,
  .hp-stats-bar,
  .hp-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hp-achievements,
  .hp-story-grid,
  .hp-cap-grid,
  .hp-stats-bar,
  .hp-tier-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   首页增强样式 & 工程条件面板
   ============================================================ */

.hp-identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 2px solid #176e64;
  border-radius: 999px;
  background: #fff;
  color: #176e64;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 20px;
}

.hp-answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.hp-answer-card {
  padding: 18px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fdfefd;
}

.hp-answer-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #17201d;
}

.hp-answer-card p {
  margin: 0;
  font-size: 13px;
  color: #52615b;
  line-height: 1.5;
}

.hp-trust-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
  color: #68756f;
  font-size: 13px;
  font-weight: 600;
}

.hp-section-desc {
  color: #68756f;
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.hp-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.hp-story-tags span {
  padding: 2px 8px;
  border: 1px solid #dce5e0;
  border-radius: 999px;
  background: #f7faf8;
  color: #5e6b66;
  font-size: 11px;
  font-weight: 600;
}

.hp-experiments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hp-exp-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.hp-exp-card:hover { border-color: #176e64; }

.hp-exp-date {
  font-size: 12px;
  color: #176e64;
  font-weight: 800;
}

.hp-exp-card strong {
  font-size: 16px;
  color: #17201d;
}

.hp-exp-card p {
  margin: 0;
  font-size: 13px;
  color: #52615b;
  line-height: 1.5;
}

.hp-tier-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: #8b9691;
  font-weight: 600;
}

/* 工程条件设置面板 */
.project-conditions {
  display: grid;
  gap: 12px;
}

.condition-group {
  display: grid;
  gap: 6px;
}

.condition-label {
  font-size: 11px;
  font-weight: 800;
  color: #68756f;
  text-transform: uppercase;
}

.condition-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.condition-chip {
  padding: 4px 10px;
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  background: #f7faf8;
  color: #40524b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.condition-chip:hover { border-color: #176e64; background: #edf8f4; }

.condition-params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.condition-params input {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #d7e2dc;
  border-radius: 6px;
  background: #fff;
  color: #17201d;
  font-size: 12px;
}

.condition-params input::placeholder { color: #b0bdb7; }
.condition-params input:focus { outline: none; border-color: #176e64; }

.knowledge-bases-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e8edea;
  border-radius: 7px;
  background: #fafcfa;
}

.kb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8b9691;
  font-weight: 600;
}

.kb-item.done { color: #176e64; }

.kb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7e2dc;
}

.kb-item.done .kb-dot { background: #176e64; }

/* ============================================================
   移动端响应式 — AppShell 布局
   ============================================================ */

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .as-sidebar {
    position: relative;
    height: auto;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid #e5e9e6;
    padding-bottom: 0;
  }

  .as-logo {
    padding: 8px 14px;
    font-size: 14px;
  }

  .as-nav {
    display: flex;
    flex-direction: row;
    gap: 3px;
    padding: 4px 10px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .as-nav::-webkit-scrollbar { display: none; }

  .as-group {
    display: flex;
    flex-direction: row;
    gap: 3px;
  }
  .as-group + .as-group {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    padding-left: 3px;
    border-left: 1px solid #eef2ef;
  }

  .as-group-label { display: none; }

  .as-item {
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 8px;
    width: auto;
    flex-shrink: 0;
  }

  /* 小屏隐藏导航文字，只留图标 */
  .as-item span {
    display: none;
  }

  .as-footer {
    display: none;
  }

  .as-main {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .as-logo {
    padding: 6px 10px;
    font-size: 13px;
  }
  .as-nav {
    padding: 2px 6px 6px;
    gap: 2px;
  }
  .as-item {
    font-size: 10px;
    padding: 3px 6px;
  }
}
/* ============================================================
   工程人学AI - 样式
   ============================================================ */

.learn-ai-app {
  min-height: 100vh;
  background: #f5f7f5;
  color: #1d2522;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

/* === 导航条 === */
.lai-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid #e0e5e2;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lai-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #176e64;
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.lai-nav-brand:hover { color: #125b53; }

.lai-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lai-nav-links a,
.lai-nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: none;
  border-radius: 7px;
  background: none;
  color: #4f5d57;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: auto;
}

.lai-nav-links a:hover,
.lai-nav-links button:hover {
  background: #f0f4f1;
  color: #17201d;
}

.lai-nav-links a.active,
.lai-nav-links button.active {
  background: #e8f2ef;
  color: #176e64;
}

.lai-home-link {
  border: 1px solid #d7e2dc !important;
  border-radius: 7px !important;
}

/* === 页面容器 === */
.lai-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.lai-page-wide {
  max-width: 1200px;
}

.lai-page h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: #101614;
}

.lai-subtitle {
  color: #52615b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* === 首页：英雄区 === */
.lai-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}

.lai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #bbdccf;
  border-radius: 999px;
  background: #f0faf6;
  color: #176e64;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.lai-hero h1 {
  font-size: 36px;
  line-height: 1.22;
  margin: 0;
}

.lai-hero .lai-subtitle {
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 0;
}

/* 个人介绍卡 */
.lai-intro-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.lai-avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #176e64, #2a9d8f);
  color: #ffffff;
  font-size: 28px;
}

.lai-intro-text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #17201d;
}

.lai-intro-text p {
  margin: 0;
  color: #52615b;
  font-size: 14px;
  line-height: 1.55;
}

.lai-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lai-intro-tags span {
  padding: 3px 10px;
  border: 1px solid #d0dcd5;
  border-radius: 999px;
  background: #f7faf8;
  color: #40524b;
  font-size: 12px;
  font-weight: 600;
}

.lai-intro-tags span.hl {
  border-color: #b8dacc;
  background: #edf8f4;
  color: #176e64;
}

/* 数据条 */
.lai-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lai-stat-card {
  padding: 16px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
}

.lai-stat-card strong {
  display: block;
  font-size: 28px;
  color: #176e64;
  font-weight: 850;
}

.lai-stat-card span {
  display: block;
  margin-top: 3px;
  color: #68756f;
  font-size: 12px;
  font-weight: 600;
}

/* === 区块 === */
.lai-section {
  margin-bottom: 32px;
}

.lai-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.lai-section-head h2 {
  margin: 0;
  font-size: 20px;
  color: #17201d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lai-section-head a {
  color: #176e64;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lai-section-head a:hover { text-decoration: underline; }

/* 日志卡片列表 */
.lai-log-list {
  display: grid;
  gap: 10px;
}

.lai-log-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s;
}

.lai-log-card:hover { border-color: #176e64; }

.lai-log-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lai-log-date {
  flex-shrink: 0;
  border-radius: 6px;
  background: #e8f2ef;
  color: #176e64;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 750;
}

.lai-log-card h3 {
  margin: 0;
  font-size: 16px;
  color: #17201d;
  line-height: 1.35;
}

.lai-log-card a {
  text-decoration: none;
  color: inherit;
}

.lai-log-flow {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #e8edea;
  border-radius: 8px;
  background: #fafcfa;
}

.lai-log-flow-label {
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lai-log-flow-text {
  color: #40524b;
  font-size: 13px;
  line-height: 1.55;
}

.lai-log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lai-tag {
  padding: 2px 8px;
  border: 1px solid #dce5e0;
  border-radius: 999px;
  background: #f7faf8;
  color: #5e6b66;
  font-size: 11px;
  font-weight: 600;
}

.lai-tag.active {
  border-color: #176e64;
  background: #176e64;
  color: #ffffff;
}

/* 标签筛选 */
.lai-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.lai-filter-bar button {
  padding: 5px 12px;
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  background: #ffffff;
  color: #4f5d57;
  font-size: 12px;
  cursor: pointer;
  min-height: auto;
}

.lai-filter-bar button:hover { border-color: #176e64; }

.lai-filter-bar button.active {
  border-color: #176e64;
  background: #176e64;
  color: #ffffff;
}

/* === 案例卡片 === */
.lai-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.lai-case-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.lai-case-card:hover {
  border-color: #176e64;
  box-shadow: 0 4px 16px rgba(23,110,100,0.08);
}

.lai-case-card h3 {
  margin: 0;
  font-size: 17px;
  color: #17201d;
  line-height: 1.3;
}

.lai-case-card p {
  margin: 0;
  color: #5e6b66;
  font-size: 13px;
  line-height: 1.5;
}

.lai-case-card .lai-case-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b9691;
  font-size: 12px;
}

.lai-case-category {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #bbdccf;
  border-radius: 999px;
  background: #f0faf6;
  color: #176e64;
  font-size: 11px;
  font-weight: 750;
}

/* 案例详情 */
.lai-case-detail {
  display: grid;
  gap: 24px;
}

.lai-case-detail h1 {
  font-size: 30px;
  line-height: 1.25;
}

.lai-case-problem,
.lai-case-solution {
  padding: 20px;
  border-radius: 10px;
}

.lai-case-problem {
  border: 1px solid #f0d6d6;
  background: #fffafa;
}

.lai-case-solution {
  border: 1px solid #b8dacc;
  background: #f7fcfa;
}

.lai-case-problem h3,
.lai-case-solution h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.lai-case-problem h3 { color: #a04040; }
.lai-case-solution h3 { color: #176e64; }

.lai-case-problem p,
.lai-case-solution p {
  margin: 0;
  color: #40524b;
  font-size: 14px;
  line-height: 1.6;
}

.lai-step-list {
  display: grid;
  gap: 12px;
}

.lai-step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  background: #ffffff;
}

.lai-step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #176e64;
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
}

.lai-step-text strong {
  display: block;
  margin-bottom: 3px;
  color: #17201d;
  font-size: 15px;
}

.lai-step-text p {
  margin: 0;
  color: #52615b;
  font-size: 13px;
  line-height: 1.55;
}

.lai-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lai-compare-item {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.lai-compare-item.before {
  border: 1px solid #e8d0d0;
  background: #fff5f5;
}

.lai-compare-item.after {
  border: 1px solid #b8dacc;
  background: #f0faf6;
}

.lai-compare-item span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.lai-compare-item.before span { color: #a04040; }
.lai-compare-item.after span { color: #176e64; }

.lai-compare-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #40524b;
}

/* === 学习路线 === */
.lai-roadmap {
  display: grid;
  gap: 0;
}

.lai-level-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 0;
  position: relative;
}

.lai-level-card + .lai-level-card {
  margin-top: 12px;
}

.lai-level-card.done { border-color: #b8dacc; }
.lai-level-card.active {
  border-color: #176e64;
  box-shadow: 0 0 0 3px rgba(23,110,100,0.1);
}
.lai-level-card.locked {
  opacity: 0.55;
  background: #f9faf9;
}

.lai-level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lai-level-num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.lai-level-card.done .lai-level-num {
  background: #b8dacc;
  color: #176e64;
}

.lai-level-card.active .lai-level-num {
  background: #176e64;
  color: #ffffff;
}

.lai-level-card.locked .lai-level-num {
  background: #e4ebe7;
  color: #8b9691;
}

.lai-level-status {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
}

.lai-level-card.done .lai-level-status {
  background: #edf8f4;
  color: #176e64;
}

.lai-level-card.active .lai-level-status {
  background: #176e64;
  color: #ffffff;
}

.lai-level-card.locked .lai-level-status {
  background: #eef2ef;
  color: #8b9691;
}

.lai-level-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #17201d;
}

.lai-level-info .lai-level-subtitle {
  color: #8b9691;
  font-size: 13px;
  margin-bottom: 10px;
}

.lai-level-info p {
  margin: 0 0 10px;
  color: #52615b;
  font-size: 14px;
  line-height: 1.5;
}

.lai-level-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lai-level-skills span {
  padding: 3px 10px;
  border: 1px solid #dce5e0;
  border-radius: 999px;
  background: #f7faf8;
  color: #40524b;
  font-size: 12px;
}

/* === 工具箱 === */
.lai-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.lai-tool-card {
  padding: 18px;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #ffffff;
}

.lai-tool-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #17201d;
}

.lai-tool-card .lai-tool-category {
  display: inline-block;
  font-size: 11px;
  color: #176e64;
  font-weight: 700;
  margin-bottom: 8px;
}

.lai-tool-card p {
  margin: 0 0 8px;
  color: #52615b;
  font-size: 13px;
  line-height: 1.55;
}

.lai-tool-card .lai-tool-scene {
  padding: 8px 10px;
  border: 1px solid #e8edea;
  border-radius: 6px;
  background: #fafcfa;
  color: #68756f;
  font-size: 12px;
  line-height: 1.4;
}

.lai-tool-scene b {
  color: #40524b;
}

/* === CTA 区 === */
.lai-cta {
  padding: 28px;
  border: 2px solid #175e54;
  border-radius: 12px;
  background: linear-gradient(135deg, #176e64, #1a8a7d);
  color: #ffffff;
  text-align: center;
}

.lai-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #ffffff;
}

.lai-cta p {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.5;
}

.lai-cta button {
  padding: 10px 28px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: #176e64;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.lai-cta button:hover {
  background: rgba(255,255,255,0.9);
}

/* === 面包屑 === */
.lai-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #68756f;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 16px;
}

.lai-back-link:hover { color: #176e64; }

/* 响应式 */
@media (max-width: 768px) {
  .lai-nav {
    padding: 0 12px;
  }
  .lai-page {
    padding: 20px 14px 40px;
  }
  .lai-hero h1 { font-size: 26px; }
  .lai-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .lai-case-grid,
  .lai-tool-grid {
    grid-template-columns: 1fr;
  }
  .lai-intro-card {
    grid-template-columns: 1fr;
  }
  .lai-level-card {
    grid-template-columns: 1fr;
  }
  .lai-compare {
    grid-template-columns: 1fr;
  }
  .lai-nav-links a span,
  .lai-nav-links button span {
    display: none;
  }
}
