:root {
  --ink: #17242b;
  --muted: #5f6f75;
  --line: #d8e1e3;
  --paper: #fffaf3;
  --surface: #f7f9f8;
  --teal: #1f7a6d;
  --red: #d9533f;
  --yellow: #e8b923;
  --blue: #23566b;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(31, 50, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 225, 227, 0.9);
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 7px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(31, 122, 109, 0.1);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  min-height: calc(100vh - 68px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.workspace-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quick-stats span {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
}

.quick-stats strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.copy-button,
.segment,
.day-pill,
.preview-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 760;
}

.primary-action,
.copy-button {
  color: var(--white);
  background: var(--ink);
}

.secondary-action {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.workspace-visual {
  min-width: 0;
}

.workspace-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.band {
  background: var(--white);
}

.section-head {
  max-width: 1120px;
  margin: 0 auto 28px;
}

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.outcome-grid,
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.outcome-card,
.tool-item,
.deliverable-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.outcome-card {
  padding: 22px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 850;
}

.outcome-card:nth-child(2) .icon-badge {
  background: var(--blue);
}

.outcome-card:nth-child(3) .icon-badge {
  color: var(--ink);
  background: var(--yellow);
}

.outcome-card:nth-child(4) .icon-badge {
  background: var(--red);
}

.outcome-card p,
.tool-item p,
.tool-item li,
.deliverable-list p,
.day-detail p,
.day-detail li {
  color: var(--muted);
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segment {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
}

.segment.active {
  color: var(--white);
  background: var(--teal);
}

.plan-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.day-list {
  position: sticky;
  top: 86px;
  align-self: start;
}

.progress-box,
.day-detail,
.prompt-preview,
.prompt-builder,
.ppt-outline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(31, 50, 56, 0.06);
}

.progress-box {
  padding: 16px;
}

.progress-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.progress-box strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.progress-track {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6ecee;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.2s ease;
}

.day-buttons {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.day-pill {
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  text-align: left;
}

.day-pill.active {
  border-color: var(--ink);
  background: #edf6f3;
}

.day-pill.done::after {
  content: "已完成";
  margin-left: auto;
  color: var(--teal);
  font-size: 12px;
}

.day-detail {
  min-height: 560px;
  padding: clamp(22px, 4vw, 34px);
}

.day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 99px;
  padding: 4px 10px;
  color: var(--ink);
  background: #edf1f2;
  font-size: 13px;
  font-weight: 760;
}

.day-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 780;
}

.day-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.task-block {
  border-left: 4px solid var(--teal);
  padding: 2px 0 2px 14px;
}

.task-block:nth-child(2) {
  border-color: var(--red);
}

.task-block:nth-child(3) {
  border-color: var(--yellow);
}

.task-block:nth-child(4) {
  border-color: var(--blue);
}

.task-block h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.task-block ul {
  margin: 0;
  padding-left: 18px;
}

.lab-layout,
.deliverable-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.prompt-builder {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.prompt-builder label {
  display: grid;
  gap: 7px;
}

.prompt-builder span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.prompt-builder input,
.prompt-builder textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfc;
}

.prompt-builder textarea {
  min-height: 82px;
  resize: vertical;
}

.prompt-preview {
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.preview-head button {
  min-height: 34px;
  padding: 7px 11px;
  border-color: var(--line);
  background: var(--white);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
}

#prompt-output {
  min-height: 480px;
  padding: 18px;
}

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

.tool-item {
  padding: 24px;
}

.tool-item ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.deliverable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.deliverable-list article {
  padding: 20px;
}

.ppt-outline {
  min-height: 458px;
  padding: 20px;
  background: #17242b;
  color: #eef6f4;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

@media (max-width: 980px) {
  .workspace,
  .plan-layout,
  .lab-layout,
  .deliverable-layout {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
  }

  .workspace-visual {
    max-width: 720px;
  }

  .outcome-grid,
  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-list {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quick-stats,
  .outcome-grid,
  .toolkit-grid,
  .deliverable-list,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .section-head.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented,
  .copy-button {
    width: 100%;
  }

  .segment {
    flex: 1;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .footer {
    flex-direction: column;
  }
}
