:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #1f2525;
  --muted: #6d7474;
  --line: #dde2dd;
  --soft: #eef3ef;
  --accent: #2d91a3;
  --accent-dark: #176f80;
  --accent-soft: #d9f0f4;
  --green: #5f8f61;
  --warn: #bd7d2f;
  --danger: #b94e48;
  --shadow: 0 16px 40px rgba(31, 37, 37, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 247, 244, 0.92)),
    var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
  padding: 18px;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 18px;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.steps {
  display: grid;
  gap: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.step span {
  width: 28px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.step.active {
  color: var(--ink);
  background: var(--accent-soft);
}

.status-panel,
.tool-section,
.preview-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(238, 243, 239, 0.36), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.service-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.service-status.ok {
  color: var(--green);
}

.service-status.warn {
  color: var(--warn);
}

.muted {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.primary-btn,
.generate-btn,
.ghost-btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-btn,
.generate-btn {
  color: #fff;
  background: var(--accent);
}

.primary-btn:disabled,
.generate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ghost-btn {
  color: var(--ink);
  background: var(--soft);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(600px, 0.95fr) minmax(440px, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 126px);
}

.input-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  align-content: start;
}

.tool-section--upload,
.tool-section--generate {
  grid-column: 1 / -1;
}

.tool-section--content,
.tool-section--recommend {
  min-height: 100%;
}

.tool-section {
  padding: 18px;
  box-shadow: var(--shadow);
}

.section-head,
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}

.dropzone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 174px;
  margin-bottom: 12px;
  padding: 20px;
  border: 1px dashed #b7c5c0;
  border-radius: 8px;
  background: #fbfcfa;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone.compact {
  min-height: 126px;
}

.dropzone:hover {
  border-color: var(--accent);
  background: #f4fbfa;
}

.dropzone input {
  display: none;
}

.drop-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 18px;
  font-weight: 800;
}

.dropzone small,
.file-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.file-meta {
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 78px;
}

.image-grid.empty {
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.image-thumb {
  position: relative;
  min-width: 0;
}

.image-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 37, 37, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.image-thumb button:hover {
  background: rgba(31, 37, 37, 0.9);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 145, 163, 0.15);
}

.field textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
  line-height: 1.65;
}

.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 145, 163, 0.15);
}

.recommend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.recommend-bar.secondary {
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
}

.recommend-bar.image-options {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px 12px;
}

.image-options .switch {
  grid-column: 1 / -1;
}

.image-options .mini-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.image-options .mini-select select,
.image-options .mini-select.wide select {
  width: 100%;
  min-width: 0;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
  white-space: nowrap;
}

.switch input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.doc-expand-option {
  justify-content: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 145, 163, 0.18);
  border-radius: 8px;
  background: #f2faf8;
  color: var(--ink);
  font-weight: 700;
}

.option-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.mini-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.mini-select select {
  width: 74px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
}

.mini-select.wide select {
  width: 112px;
}

.recommendations {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
}

.recommendations.empty {
  place-items: center;
  min-height: 92px;
}

.recommend-block {
  display: grid;
  gap: 6px;
}

.recommend-block strong {
  font-size: 13px;
  color: var(--ink);
}

.recommend-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.recommend-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recommend-chip {
  display: flex;
  align-items: flex-start;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.generate-btn {
  width: 100%;
  margin-top: 4px;
}

.progress-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.progress-item.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.progress-item.done {
  color: var(--green);
}

.preview-column {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  box-shadow: var(--shadow);
}

.preview-toolbar {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.article-preview {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 20px 42px;
}

.article-preview.empty-state {
  min-height: 680px;
  display: grid;
  place-items: start center;
  color: var(--muted);
}

.empty-copy {
  max-width: 360px;
  margin-top: min(34vh, 300px);
  text-align: center;
}

.empty-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.article-title {
  width: 100%;
  border: 0;
  padding: 0 0 14px;
  color: var(--ink);
  background: transparent;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  outline: none;
}

.cover-card {
  margin: 0 0 24px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f3f1;
}

.cover-card img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.article-intro,
.article-ending,
.article-p {
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.article-intro {
  margin: 10px 0 30px;
  color: #4d5555;
}

.article-section {
  position: relative;
  margin: 34px 0;
}

.section-title-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.section-number {
  color: rgba(45, 145, 163, 0.22);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.section-heading {
  display: inline;
  padding: 2px 8px;
  background: #eaf6f5;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.delete-section {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--danger);
  background: #f8eeee;
  font-weight: 900;
}

.article-p {
  margin: 0 0 14px;
}

.highlight {
  text-decoration: underline dashed var(--accent);
  text-underline-offset: 5px;
  color: #1f4045;
  font-weight: 700;
}

.quote-block {
  position: relative;
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f4f8f7;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.template-feature .article-title {
  padding: 16px 18px;
  border-radius: 8px;
  color: #fff;
  background: #16383d;
}

.template-feature .article-intro {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f5f8f7;
}

.template-feature .section-title-row {
  grid-template-columns: 48px 1fr auto;
  padding-top: 12px;
  border-top: 2px solid var(--accent);
}

.template-feature .section-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.template-feature .section-heading {
  background: transparent;
  padding: 0;
  font-size: 19px;
}

.template-feature .highlight,
.template-feature .quote-block {
  border-left: 4px solid #d99a27;
  background: #fff9ed;
  color: #5d420f;
}

.template-timeline .article-title,
.template-timeline .article-intro {
  text-align: center;
}

.template-timeline .article-section {
  padding-left: 16px;
  border-left: 2px solid #d7e5e2;
}

.template-timeline .section-title-row {
  grid-template-columns: 52px 1fr auto;
}

.template-timeline .section-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.template-timeline .section-heading {
  background: transparent;
  padding: 0;
}

.template-visual .section-title-row {
  grid-template-columns: 42px 1fr auto;
}

.template-visual .section-number {
  color: #8a6f2d;
  font-size: 13px;
}

.template-visual .section-heading {
  padding: 0 0 3px;
  border-bottom: 2px solid #d9bd65;
  background: transparent;
}

.template-visual .highlight,
.template-visual .quote-block {
  border-left: 3px solid #d9bd65;
  background: #fbf7e8;
  color: #4d3d13;
}

.template-activity .article-title {
  padding: 14px 16px;
  border-radius: 8px;
  background: #f3f7f6;
}

.template-activity .article-intro {
  margin-bottom: 26px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #eef6f5;
}

.template-activity .section-title-row {
  grid-template-columns: 58px 1fr auto;
}

.template-activity .section-number {
  color: #2d91a3;
  font-size: 14px;
  font-weight: 900;
}

.template-activity .section-heading {
  padding: 0 0 4px;
  border-bottom: 2px solid #bcd8d8;
  background: transparent;
}

.template-scene .article-section {
  padding-left: 14px;
  border-left: 2px solid #dce7e5;
}

.template-scene .section-title-row {
  grid-template-columns: 42px 1fr auto;
}

.template-scene .section-number {
  color: #8c947f;
  font-size: 13px;
}

.template-scene .section-heading {
  background: transparent;
  padding: 0;
}

.template-insight .article-intro {
  padding: 0 0 0 12px;
  border-left: 3px solid #b38a47;
  color: #4d4a42;
}

.template-insight .section-title-row {
  grid-template-columns: 48px 1fr auto;
}

.template-insight .section-number {
  color: #b38a47;
  font-size: 13px;
  font-weight: 900;
}

.template-insight .section-heading {
  padding: 0 0 3px;
  border-bottom: 2px solid #d9bd65;
  background: transparent;
}

.template-interview .article-intro {
  font-style: italic;
  color: #4d5555;
}

.template-interview .article-section {
  padding-left: 14px;
  border-left: 2px solid #dde2dd;
}

.template-interview .section-title-row {
  grid-template-columns: 50px 1fr auto;
}

.template-interview .section-number {
  color: #6d7d7d;
  font-size: 13px;
}

.template-interview .section-heading {
  background: transparent;
  padding: 0;
}

.template-qa .article-section {
  padding-left: 14px;
  border-left: 2px solid #d7e5e2;
}

.template-qa .section-title-row {
  grid-template-columns: 48px 1fr auto;
}

.template-qa .section-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.template-qa .section-heading {
  background: transparent;
  padding: 0;
}

.template-progress .article-intro {
  padding: 10px 14px;
  border-radius: 8px;
  background: #f5f7fb;
}

.template-progress .section-title-row {
  grid-template-columns: 56px 1fr auto;
}

.template-progress .section-number {
  color: #4c6fb0;
  font-size: 13px;
  font-weight: 900;
}

.template-progress .section-heading {
  padding: 0 0 4px;
  border-bottom: 2px solid #c6d4ef;
  background: transparent;
}

.template-list .article-intro {
  color: #4d5555;
}

.template-list .section-title-row {
  grid-template-columns: 42px 1fr auto;
}

.template-list .section-number {
  color: #8a6f2d;
  font-size: 13px;
  font-weight: 900;
}

.template-list .section-heading {
  padding: 0 0 3px;
  border-bottom: 2px solid #d9bd65;
  background: transparent;
}

.template-obsidian-simple {
  background: #fff;
}

.template-obsidian-simple .article-title {
  padding-bottom: 14px;
  border-bottom: 1px solid #d9dee2;
  color: #1f2933;
}

.template-obsidian-simple .article-intro {
  padding: 12px 14px;
  border-left: 3px solid #5f7f95;
  background: #f6f8fa;
}

.template-obsidian-simple .section-title-row {
  grid-template-columns: 46px 1fr auto;
}

.template-obsidian-simple .section-number {
  color: #8a98a6;
  font-size: 13px;
}

.template-obsidian-simple .section-heading {
  padding: 0 0 5px;
  border-bottom: 1px solid #d9dee2;
  background: transparent;
}

.template-obsidian-classic {
  max-width: 680px;
  color: #2b2b2b;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
}

.template-obsidian-classic .article-title {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  color: #1f2525;
  text-align: center;
}

.template-obsidian-classic .article-intro {
  max-width: 560px;
  margin: 0 auto 34px;
  padding: 0;
  background: transparent;
  color: #363636;
  text-align: left;
}

.template-obsidian-classic .section-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 42px 0 22px;
  border: 0;
  text-align: center;
}

.template-obsidian-classic .section-number {
  width: auto;
  color: #3169b3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.template-obsidian-classic .section-heading {
  padding: 0;
  background: transparent;
  color: #222;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.template-obsidian-classic .quote-block,
.template-obsidian-classic .highlight {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border-left-color: #3169b3;
  background: #f5f8fc;
  color: #223b58;
}

.template-obsidian-classic .article-p {
  max-width: 560px;
  margin: 0 auto 18px;
  color: #2d2d2d;
  font-size: 15px;
  line-height: 2;
  text-align: left;
}

.template-obsidian-classic .image-card {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.template-obsidian-elegant .article-title {
  padding: 18px 20px;
  border-radius: 8px;
  background: #f7f3fb;
  color: #3c3150;
}

.template-obsidian-elegant .article-intro {
  padding: 14px 18px;
  border: 1px solid #e4d8ef;
  border-radius: 8px;
  background: #fdfbff;
}

.template-obsidian-elegant .section-title-row {
  grid-template-columns: 46px 1fr auto;
}

.template-obsidian-elegant .section-number {
  color: #8d6bae;
  font-size: 13px;
}

.template-obsidian-elegant .section-heading {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f3fb;
  color: #3c3150;
}


.structured-section {
  margin-top: 32px;
}

.structured-section-head {
  position: relative;
  display: grid;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.structured-number {
  font-weight: 900;
  line-height: 1;
}

.structured-heading {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.structured-section-body {
  display: grid;
  gap: 14px;
}

.structured-text-block {
  min-width: 0;
}

.structured-text-block .article-p {
  margin: 0;
}

.article-section--activity {
  padding: 14px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #fbfdfc;
}

.article-section--activity .structured-section-head {
  grid-template-columns: 58px 1fr auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef6f5;
}

.article-section--activity .structured-number {
  color: var(--accent);
  font-size: 14px;
}

.article-section--activity .structured-text-block {
  padding: 10px 12px;
  border-left: 3px solid #bcd8d8;
  background: #fff;
}

.template-scene .article-section--scene,
.article-section--scene {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  padding-left: 0;
  border-left: 0;
}

.article-section--scene .structured-section-head {
  display: block;
  margin: 0;
  padding-top: 4px;
  border-right: 1px solid #dce7e5;
}

.article-section--scene .structured-number {
  display: block;
  margin-bottom: 8px;
  color: #8c947f;
  font-size: 13px;
}

.article-section--scene .structured-heading {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.article-section--scene .structured-section-body {
  gap: 0;
}

.article-section--scene .structured-text-block {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e7ecea;
}

.article-section--insight {
  padding: 16px 18px;
  border: 1px solid #ead9a8;
  border-radius: 8px;
  background: #fffdf7;
}

.article-section--insight .structured-section-head {
  grid-template-columns: 48px 1fr auto;
  padding-bottom: 10px;
  border-bottom: 2px solid #d9bd65;
}

.article-section--insight .structured-number {
  color: #b38a47;
  font-size: 13px;
}

.insight-thesis {
  padding: 14px 16px;
  border-left: 4px solid #d9bd65;
  background: #fbf7e8;
  color: #4d3d13;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.template-interview .article-section--interview,
.article-section--interview {
  padding-left: 14px;
  border-left: 3px solid #cbd8d8;
}

.article-section--interview .structured-section-head {
  grid-template-columns: 50px 1fr auto;
}

.article-section--interview .structured-number {
  color: #6d7d7d;
  font-size: 13px;
}

.dialogue-turn {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dce7e5;
  background: #fff;
}

.dialogue-turn--question {
  background: #eef6f5;
}

.dialogue-turn--answer {
  margin-left: 34px;
}

.dialogue-label {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.dialogue-turn p {
  margin: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.template-qa .article-section--qa,
.article-section--qa {
  padding: 14px;
  border: 1px solid #d7e5e2;
  border-radius: 8px;
  background: #fbfdfc;
}

.article-section--qa .structured-section-head {
  grid-template-columns: 48px 1fr auto;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7e5e2;
}

.article-section--qa .structured-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.template-progress .article-section--progress,
.article-section--progress {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding-left: 0;
  border-left: 0;
}

.article-section--progress .structured-section-head {
  display: block;
  margin: 0;
  padding-top: 2px;
}

.article-section--progress .structured-number {
  color: #4c6fb0;
  font-size: 13px;
}

.article-section--progress .structured-heading {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}

.article-section--progress .structured-section-body {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid #c6d4ef;
}

.milestone-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.milestone-dot {
  color: #4c6fb0;
  font-size: 13px;
  font-weight: 900;
}

.milestone-step p {
  margin: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.article-section--list {
  padding: 16px 18px;
  border: 1px solid #ead9a8;
  border-radius: 8px;
  background: #fffdf7;
}

.article-section--list .structured-section-head {
  grid-template-columns: 42px 1fr auto;
  padding-bottom: 10px;
  border-bottom: 2px solid #d9bd65;
}

.article-section--list .structured-number {
  color: #8a6f2d;
  font-size: 13px;
}

.checklist-block {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-block li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.checklist-block li span {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 999px;
  background: #d9bd65;
}

.checklist-block li p {
  margin: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.template-xiumi-green-education {
  max-width: 430px;
  padding: 30px 24px 44px;
  border-left: 8px solid #d8ed9b;
  border-right: 8px solid #d8ed9b;
  background: #fbfff0;
}

.template-xiumi-green-education .article-title {
  margin: 0 0 26px;
  padding: 34px 22px 28px;
  border: 2px solid #b8da72;
  color: #8fbb2d;
  background: #fffff7;
  font-size: 28px;
  text-align: center;
}

.template-xiumi-green-education .article-intro {
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid #b8da72;
  background: #fff;
}

.article-section--xiumi-green-education {
  padding: 16px;
  border: 1px solid #b8da72;
  background: #fff;
}

.article-section--xiumi-green-education .structured-section-head {
  grid-template-columns: 42px 1fr auto;
}

.article-section--xiumi-green-education .structured-number {
  padding: 6px 9px;
  background: #f0c433;
  color: #fff;
  font-size: 13px;
}

.article-section--xiumi-green-education .structured-heading {
  color: #8fbb2d;
  text-align: center;
}

.template-xiumi-blue-report {
  max-width: 430px;
  padding: 0 22px 38px;
  background: #edf7ff;
}

.template-xiumi-blue-report .article-title {
  margin: 0 -22px 20px;
  padding: 44px 28px 78px;
  color: #0059aa;
  background:
    radial-gradient(150px 60px at 66% 95%, #ffd08d 0 38%, transparent 39%),
    linear-gradient(155deg, #fff 0 52%, #c8e4ff 52% 61%, #0e65bd 61% 70%, #fff 70% 76%, #0f76cf 76% 100%);
  font-size: 30px;
  text-align: center;
}

.template-xiumi-blue-report .article-intro {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 5px solid #0069c9;
  background: #fff;
  color: #315b7d;
}

.article-section--xiumi-blue-report {
  border: 1px solid #75b5ef;
  padding: 14px;
  background: #f8fcff;
}

.article-section--xiumi-blue-report .structured-section-head {
  grid-template-columns: 42px 1fr auto;
}

.article-section--xiumi-blue-report .structured-number,
.article-section--xiumi-blue-report .milestone-dot {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  color: #fff;
  background: #0069ca;
  font-size: 13px;
}

.article-section--xiumi-blue-report .structured-heading {
  color: #005fb9;
}

.article-section--xiumi-blue-report .structured-section-body {
  padding-left: 0;
  border-left: 0;
}

.template-xiumi-news-digest {
  max-width: 430px;
  padding: 24px 22px 44px;
  background: #eff8fb;
}

.template-xiumi-news-digest .article-title {
  padding: 38px 24px;
  border: 10px solid #eaf5fb;
  outline: 2px solid #0f72cf;
  outline-offset: -18px;
  color: #1e2d3d;
  background:
    linear-gradient(135deg, #0f74d5 0 10%, transparent 10%),
    linear-gradient(225deg, #0f74d5 0 15%, transparent 15%),
    linear-gradient(315deg, #f5c63b 0 11%, transparent 11%),
    #fff;
  text-align: center;
}

.template-xiumi-news-digest .article-intro {
  padding: 22px 18px;
  border-bottom: 4px solid #0b70c8;
  background: #fff;
}

.article-section--xiumi-news-digest {
  background: transparent;
}

.article-section--xiumi-news-digest .structured-section-head {
  display: block;
  text-align: center;
}

.article-section--xiumi-news-digest .structured-number {
  display: block;
  color: rgba(14, 106, 195, .22);
  font-size: 46px;
}

.article-section--xiumi-news-digest .structured-heading {
  color: #1169bf;
  font-size: 16px;
}

.article-section--xiumi-news-digest .structured-section-body {
  padding: 16px;
  border-left: 3px solid #f5c433;
  border-right: 3px solid #f5c433;
  background: #fff;
}

.template-xiumi-red-interview {
  max-width: 430px;
  padding: 34px 26px 46px;
  border-top: 8px solid #b8181c;
  background: #fff;
}

.template-xiumi-red-interview .article-title {
  padding: 0;
  color: #b8181c;
  font-size: 30px;
  text-align: center;
}

.template-xiumi-red-interview .article-intro {
  padding: 18px 20px;
  background: #f3e8e4;
  color: #812126;
}

.article-section--xiumi-red-interview {
  padding-left: 0;
  border-left: 0;
}

.article-section--xiumi-red-interview .structured-section-head {
  grid-template-columns: auto 1fr auto;
}

.article-section--xiumi-red-interview .structured-number {
  padding: 5px 10px;
  background: #bd1e24;
  color: #fff;
  font-size: 13px;
}

.article-section--xiumi-red-interview .structured-heading {
  color: #111;
}

.article-section--xiumi-red-interview .dialogue-turn {
  border: 0;
  border-left: 4px solid #c51f25;
  border-radius: 0;
  background: #fff;
}

.article-section--xiumi-red-interview .dialogue-label {
  background: #c51f25;
}

.template-xiumi-softblue-story {
  max-width: 430px;
  padding: 28px 22px 44px;
  background: #dfeeff;
}

.template-xiumi-softblue-story .article-title {
  padding: 24px 20px;
  border: 1px solid #9ec5ff;
  border-radius: 18px;
  color: #225ca9;
  background: #fff;
  box-shadow: 0 8px 0 #bcd7ff;
}

.template-xiumi-softblue-story .article-intro {
  padding: 16px;
  border: 1px solid #b4d1ff;
  border-radius: 14px;
  background: #fff;
}

.article-section--xiumi-softblue-story {
  padding: 0;
  border: 0;
}

.article-section--xiumi-softblue-story .structured-section-head {
  display: block;
  margin-bottom: 12px;
}

.article-section--xiumi-softblue-story .structured-number {
  color: #2b85dc;
  font-size: 12px;
  letter-spacing: 1px;
}

.article-section--xiumi-softblue-story .structured-heading {
  color: #1e64ba;
  font-size: 18px;
}

.article-section--xiumi-softblue-story .structured-section-body {
  padding: 15px;
  border: 1px solid #a7c8fa;
  border-radius: 16px;
  background: #fff;
}

.image-cluster {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.image-cluster-count-2,
.image-cluster-count-3,
.image-cluster-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-cluster .image-card {
  margin: 0;
}

.template-xiumi-green-education .image-card,
.template-xiumi-green-education .image-cluster {
  background: #f7fbef;
}

.template-xiumi-green-education::before {
  content: "";
  display: block;
  height: 26px;
  margin: -18px 0 8px;
  border-top: 3px solid #b8da72;
  border-radius: 50%;
  opacity: .65;
}

.template-xiumi-green-education .article-section {
  margin: 28px 0;
  box-shadow: 0 0 0 6px rgba(251, 255, 240, .9);
  counter-reset: green-point;
}

.template-xiumi-green-education .structured-section-head::before {
  content: "文章小节";
  position: absolute;
  left: 0;
  top: -28px;
  padding: 4px 12px;
  background: #b8da72;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.template-xiumi-green-education .structured-text-block {
  padding: 10px 0;
}

.template-xiumi-green-education .structured-text-block:nth-of-type(n + 2) {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
}

.template-xiumi-green-education .structured-text-block:nth-of-type(n + 2)::before {
  content: counter(green-point, decimal-leading-zero);
  counter-increment: green-point;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f0c433;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.template-xiumi-blue-report .image-card,
.template-xiumi-blue-report .image-cluster {
  background: #dff0ff;
}

.template-xiumi-blue-report .article-intro::before {
  content: "“";
  margin-right: 6px;
  color: #0069c9;
  font-size: 28px;
  line-height: 0;
  vertical-align: -8px;
}

.template-xiumi-blue-report .article-section {
  position: relative;
  margin: 34px 0;
}

.template-xiumi-blue-report .structured-section-head {
  margin: -28px 0 16px;
  transform: translateY(-1px);
}

.template-xiumi-blue-report .structured-section-body {
  display: grid;
  gap: 12px;
}

.template-xiumi-blue-report .milestone-step {
  padding: 10px 0;
  border-bottom: 1px solid #b7d9f6;
}

.template-xiumi-blue-report .milestone-step:nth-child(odd) {
  padding: 12px;
  border: 1px dashed #4c96d4;
  background: #fff;
}

.template-xiumi-news-digest .image-card,
.template-xiumi-news-digest .image-cluster {
  background: #e5f3ff;
}

.template-xiumi-news-digest::before {
  content: "Focus on news";
  display: block;
  margin: 0 0 8px;
  color: #f2b81d;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  text-align: center;
}

.template-xiumi-news-digest .article-section {
  margin: 46px 0;
}

.template-xiumi-news-digest .structured-section-body {
  position: relative;
}

.template-xiumi-news-digest .structured-section-body::before,
.template-xiumi-news-digest .structured-section-body::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid #0d71c7;
}

.template-xiumi-news-digest .structured-section-body::before {
  left: -7px;
  top: -7px;
  border-right: 0;
  border-bottom: 0;
}

.template-xiumi-news-digest .structured-section-body::after {
  right: -7px;
  bottom: -7px;
  border-left: 0;
  border-top: 0;
}

.template-xiumi-news-digest .structured-text-block:nth-child(even) {
  padding: 12px;
  background: #e5f3ff;
}

.template-xiumi-red-interview .image-card,
.template-xiumi-red-interview .image-cluster {
  border: 2px solid #d82c32;
  background: #fff8f7;
}

.template-xiumi-red-interview .article-section {
  margin: 32px 0;
}

.template-xiumi-red-interview .structured-section-head {
  border-bottom: 1px solid #efc4c6;
  padding-bottom: 10px;
}

.template-xiumi-red-interview .dialogue-turn--answer {
  margin-left: 0;
  border-left-color: #efc4c6;
  background: #fff;
}

.template-xiumi-red-interview .image-cluster-count-2,
.template-xiumi-red-interview .image-cluster-count-3,
.template-xiumi-red-interview .image-cluster-count-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-xiumi-softblue-story .image-card,
.template-xiumi-softblue-story .image-cluster {
  border: 2px solid #6da4ea;
  border-radius: 8px;
  background: #f5fbff;
}

.template-xiumi-softblue-story::before {
  content: "城市观察与实践记录";
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  color: #fff;
  background: #ffad3d;
  font-size: 12px;
}

.template-xiumi-softblue-story .article-section {
  margin: 34px 0;
}

.template-xiumi-softblue-story .structured-section-head .structured-number::before {
  content: "PART";
}

.template-xiumi-softblue-story .structured-section-body {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.template-xiumi-softblue-story .milestone-step {
  grid-template-columns: 36px 1fr;
}

.template-xiumi-softblue-story .milestone-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: #ffad3d;
}

.template-gzh-clear-review {
  max-width: 430px;
  padding: 28px 24px 44px;
  background:
    linear-gradient(90deg, rgba(45, 145, 163, .12) 0 1px, transparent 1px) 0 0 / 24px 24px,
    #fbfefd;
}

.template-gzh-clear-review .article-title {
  margin-bottom: 22px;
  padding: 0 0 18px;
  border-bottom: 5px solid #d9f0ee;
  color: #1d2a2b;
  font-size: 27px;
  line-height: 1.35;
}

.template-gzh-clear-review .article-intro {
  padding: 16px 18px;
  border-left: 4px solid #2d91a3;
  background: #eef8f7;
  color: #354b4d;
}

.template-gzh-clear-review .section-title-row {
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  margin-bottom: 18px;
}

.template-gzh-clear-review .section-number {
  color: rgba(45, 145, 163, .24);
  font-size: 38px;
}

.template-gzh-clear-review .section-heading {
  padding: 7px 12px;
  background: #e7f6f4;
  color: #203334;
}

.template-gzh-clear-review .image-card {
  padding: 9px;
  background: #edf7f6;
}

.template-gzh-clear-review .highlight,
.template-gzh-clear-review .quote-block {
  border-left-color: #2d91a3;
  background: #f3fbfa;
  color: #176f80;
}

.template-gzh-knowledge-column {
  max-width: 430px;
  padding: 30px 24px 46px;
  background: #fffdf7;
}

.template-gzh-knowledge-column .article-title {
  padding: 20px 18px;
  border: 1px solid #ecd98d;
  border-top: 7px solid #2d91a3;
  background: #fff;
  color: #1f2525;
  font-size: 26px;
  line-height: 1.38;
}

.template-gzh-knowledge-column .article-intro {
  padding: 15px 17px;
  border: 1px dashed #d8bd55;
  background: #fffaf0;
  color: #51451e;
}

.template-gzh-knowledge-column .section-title-row {
  grid-template-columns: 46px 1fr auto;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8d686;
}

.template-gzh-knowledge-column .section-number {
  color: #b38a47;
  font-size: 15px;
}

.template-gzh-knowledge-column .section-heading {
  padding: 0;
  background: transparent;
  color: #172526;
}

.template-gzh-knowledge-column .article-section:nth-of-type(even) {
  padding: 16px;
  border: 1px solid #efe4b6;
  background: #fff;
}

.template-gzh-knowledge-column .image-card {
  background: #f7f1d9;
}

.template-gzh-knowledge-column .highlight,
.template-gzh-knowledge-column .quote-block {
  border-left-color: #d8bd55;
  background: #fff8dc;
  color: #5d4a0e;
}

.template-gzh-tech-narrative {
  max-width: 430px;
  padding: 30px 24px 46px;
  background: #111719;
  color: #eef8f7;
}

.template-gzh-tech-narrative .article-title {
  padding: 22px 18px;
  border: 1px solid rgba(74, 222, 210, .35);
  background:
    linear-gradient(135deg, rgba(45, 145, 163, .28), rgba(255, 255, 255, .04)),
    #172123;
  color: #f7ffff;
  font-size: 27px;
  line-height: 1.36;
}

.template-gzh-tech-narrative .article-intro {
  padding: 15px 17px;
  border-left: 4px solid #4adeca;
  background: rgba(255, 255, 255, .06);
  color: #d8eeee;
}

.template-gzh-tech-narrative .article-section {
  padding: 16px 0 0;
  border-top: 1px solid rgba(74, 222, 210, .28);
}

.template-gzh-tech-narrative .section-title-row {
  grid-template-columns: 52px 1fr auto;
}

.template-gzh-tech-narrative .section-number {
  color: #4adeca;
  font-size: 13px;
}

.template-gzh-tech-narrative .section-heading {
  padding: 0;
  background: transparent;
  color: #f7ffff;
}

.template-gzh-tech-narrative .article-p {
  color: #edf6f5;
}

.template-gzh-tech-narrative .image-card {
  background: rgba(255, 255, 255, .08);
}

.template-gzh-tech-narrative .caption {
  color: #a9c5c6;
}

.template-gzh-tech-narrative .highlight,
.template-gzh-tech-narrative .quote-block {
  border-left-color: #4adeca;
  background: rgba(74, 222, 210, .1);
  color: #d8fff8;
}

.template-gzh-clear-review,
.template-gzh-knowledge-column,
.template-gzh-tech-narrative {
  max-width: 600px;
}

.template-gzh-clear-review {
  padding: 34px 36px 52px;
}

.template-gzh-clear-review .article-section {
  margin: 42px 0;
}

.template-gzh-clear-review .article-section:nth-of-type(odd) .section-title-row {
  grid-template-columns: 62px 1fr auto;
  padding-bottom: 12px;
  border-bottom: 1px solid #b9e2df;
}

.template-gzh-clear-review .article-section:nth-of-type(odd) .section-heading {
  padding: 0;
  background: transparent;
}

.template-gzh-clear-review .article-section:nth-of-type(even) {
  padding: 20px;
  border: 1px solid #cfe9e6;
  background: #f6fcfb;
}

.template-gzh-clear-review .article-section:nth-of-type(even) .section-title-row {
  grid-template-columns: 1fr auto;
}

.template-gzh-clear-review .article-section:nth-of-type(even) .section-number {
  position: absolute;
  right: 18px;
  top: 14px;
  width: auto;
  font-size: 22px;
}

.template-gzh-clear-review .article-section:nth-of-type(even) .section-heading {
  margin-right: 52px;
}

.template-gzh-clear-review .article-section:nth-of-type(3n) {
  padding-left: 22px;
  border-left: 5px solid #2d91a3;
}

.template-gzh-knowledge-column {
  max-width: 680px;
  padding: 38px 44px 58px;
  background:
    linear-gradient(90deg, rgba(45, 145, 163, .09) 0 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(45, 145, 163, .06) 0 1px, transparent 1px) 0 0 / 28px 28px,
    #fffdfa;
}

.template-gzh-knowledge-column .article-title {
  max-width: 620px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 30px;
}

.template-gzh-knowledge-column .article-section {
  margin: 36px 0;
}

.knowledge-lead-box {
  padding: 18px;
  border: 1px solid #80bec2;
  border-radius: 7px;
  background: #f4fbfa;
  color: #27636a;
}

.knowledge-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px dashed #d8d2c4;
  border-radius: 7px;
  background: rgba(255, 255, 255, .78);
}

.knowledge-toc p {
  margin: 5px 0;
  color: #445;
  font-size: 14px;
}

.knowledge-toc span {
  margin-right: 8px;
  color: #2d918b;
  font-weight: 900;
}

.knowledge-core-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  border: 1px solid #e4c776;
  border-radius: 8px;
  background: #fffdf6;
  overflow: hidden;
}

.knowledge-core-cards article {
  padding: 18px 16px;
  border-right: 1px dashed #e4c776;
  text-align: center;
}

.knowledge-core-cards article:last-child {
  border-right: 0;
}

.knowledge-core-cards strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: 15px;
}

.knowledge-core-cards p {
  margin: 0;
  color: #586064;
  font-size: 13px;
  line-height: 1.55;
}

.knowledge-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.knowledge-flow article {
  position: relative;
  padding: 15px 12px;
  border: 1px solid #85bdc0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .82);
  text-align: center;
}

.knowledge-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  color: #2d918b;
  font-weight: 900;
  transform: translateY(-50%);
}

.knowledge-flow span {
  display: block;
  color: #2d918b;
  font-weight: 900;
}

.knowledge-flow strong {
  display: block;
  margin: 6px 0;
  color: #203334;
  font-size: 14px;
}

.knowledge-flow p {
  margin: 0;
  color: #687476;
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.knowledge-compare article {
  padding: 18px;
  border: 1px solid #85bdc0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .8);
}

.knowledge-compare strong {
  display: block;
  margin-bottom: 8px;
  color: #2b7d87;
}

.knowledge-compare p {
  margin: 0;
  color: #4d5555;
  line-height: 1.7;
}

.template-gzh-tech-narrative {
  max-width: 620px;
  padding: 36px 42px 56px;
}

.template-gzh-tech-narrative .article-title {
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid rgba(74, 222, 210, .42);
  background: transparent;
  font-size: 30px;
}

.template-gzh-tech-narrative .article-intro {
  max-width: 520px;
  margin-bottom: 42px;
}

.template-gzh-tech-narrative .article-section {
  margin: 44px 0;
  padding: 26px 0 0;
}

.template-gzh-tech-narrative .section-title-row {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  padding-top: 0;
  border-top: 0;
}

.template-gzh-tech-narrative .section-number {
  display: block;
  width: auto;
  color: #4adeca;
  font-size: 13px;
}

.template-gzh-tech-narrative .section-heading {
  font-size: 20px;
}

.template-gzh-tech-narrative .article-section:nth-of-type(1) {
  padding: 22px;
  border: 1px solid rgba(74, 222, 210, .32);
  background: rgba(255, 255, 255, .05);
}

.template-gzh-tech-narrative .article-section:nth-of-type(1) .section-title-row {
  display: block;
}

.template-gzh-tech-narrative .article-section:nth-of-type(1) .section-number {
  margin-bottom: 10px;
}

.template-gzh-tech-narrative .article-section:nth-of-type(1) .section-heading {
  display: block;
  font-size: 24px;
}

.template-gzh-tech-narrative .article-section:nth-of-type(2n) {
  border-top-color: rgba(74, 222, 210, .58);
}

.template-gzh-tech-narrative .article-section:nth-of-type(2n) .section-title-row {
  grid-template-columns: minmax(0, 1fr) 56px auto;
}

.template-gzh-tech-narrative .article-section:nth-of-type(2n) .section-number {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.template-gzh-tech-narrative .article-section:nth-of-type(2n) .section-heading {
  grid-column: 1;
  grid-row: 1;
}

.template-gzh-tech-narrative .article-section:nth-of-type(3n) {
  padding-left: 24px;
  border-left: 3px solid #4adeca;
}

.image-card {
  margin: 22px 0;
  padding: 10px;
  border-radius: 8px;
  background: #f1f3f1;
}

.image-card img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.caption {
  margin: 8px 4px 0;
  color: #7b8383;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.gallery {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gallery h4 {
  margin: 0 0 12px;
}

.gzh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
  color: #9aa7a8;
  font-size: 13px;
}

.gzh-meta .is-tag {
  padding: 1px 6px;
  color: #2d91a3;
  background: #e8f5f3;
  font-weight: 800;
}

.gzh-lead-box {
  border: 1px solid #b9dadd;
  border-radius: 6px;
  box-shadow: inset 0 0 20px rgba(45, 145, 163, .06);
}

.gzh-summary-panel {
  margin: 24px 0;
}

.gzh-summary-panel h4,
.tech-photo-grid h4,
.speaker-cards h4,
.tech-timeline h4 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

.gzh-summary-panel h4::before,
.tech-photo-grid h4::before,
.speaker-cards h4::before,
.tech-timeline h4::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 20px;
  margin-right: 10px;
  background: #2d91a3;
  vertical-align: -4px;
}

.gzh-summary-light {
  padding: 14px 18px;
  border: 1px solid #84bdc1;
  border-radius: 7px;
  background: #fbfefd;
}

.gzh-summary-light p {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  margin: 10px 0;
  color: #4b5556;
  font-size: 15px;
  line-height: 1.65;
}

.gzh-summary-light p span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: #2d918b;
  font-size: 12px;
  font-weight: 900;
}

.template-image-slot {
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: 22px 0 8px;
  border: 1px solid #c4dcdf;
  border-radius: 7px;
  background: linear-gradient(135deg, #f8fcfc, #eef6f7);
  color: #89999d;
  text-align: center;
}

.template-image-slot .slot-icon {
  font-size: 34px;
  color: #9baaae;
}

.template-image-slot figcaption {
  margin-top: 6px;
  font-size: 15px;
}

.two-column-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.two-column-cards > div {
  padding: 18px;
  border: 1px solid #efdcae;
  border-radius: 8px;
  background: #fffefa;
}

.two-column-cards h4 {
  margin: 0 0 14px;
  color: #2b7d87;
  font-size: 17px;
}

.two-column-cards p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  margin: 9px 0;
  color: #394648;
  font-size: 14px;
  line-height: 1.6;
}

.two-column-cards span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
  background: #2d918b;
  font-size: 12px;
  font-weight: 800;
}

.gzh-table-block {
  margin: 28px 0;
}

.gzh-table-block table {
  width: 100%;
  border-collapse: collapse;
  color: #526062;
  font-size: 14px;
}

.gzh-table-block th,
.gzh-table-block td {
  padding: 10px 12px;
  border: 1px solid #b9dadd;
  text-align: center;
}

.gzh-table-block th {
  color: #394648;
  background: #f4fbfa;
  font-weight: 800;
}

.action-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.action-card-row div {
  min-height: 94px;
  padding: 14px 10px;
  border: 1px solid #efdcae;
  border-radius: 8px;
  background: #fffefa;
  text-align: center;
}

.action-card-row strong {
  display: block;
  color: #2d918b;
  font-size: 22px;
}

.action-card-row span {
  display: block;
  margin-top: 8px;
  color: #394648;
  font-size: 13px;
  line-height: 1.45;
}

.gzh-footer-cta {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 34px 0 0;
  padding: 18px;
  border: 1px solid #c9dde0;
  border-radius: 8px;
  background: #fbfefd;
}

.qr-placeholder {
  width: 72px;
  height: 72px;
  border: 6px solid #111;
  background: repeating-linear-gradient(45deg, #111 0 6px, #fff 6px 12px);
}

.gzh-footer-cta strong {
  display: block;
  margin-bottom: 6px;
  color: #2d918b;
}

.gzh-footer-cta p,
.cta-actions {
  margin: 0;
  color: #677273;
  font-size: 14px;
}

.cta-actions {
  display: flex;
  gap: 12px;
}

.template-gzh-tech-narrative {
  background:
    radial-gradient(circle at 72% 28%, rgba(44, 255, 196, .12), transparent 28%),
    radial-gradient(circle at 18% 12%, rgba(0, 132, 255, .16), transparent 32%),
    #030708;
}

.tech-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: #e8ffff;
  font-weight: 800;
}

.tech-topline strong {
  padding: 3px 10px;
  border: 1px solid #70ff31;
  border-radius: 999px;
  color: #70ff31;
  font-size: 12px;
}

.tech-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
  margin: 0 0 28px;
}

.tech-hero .template-image-slot,
.tech-hero .image-card {
  min-height: 150px;
  margin: 0;
  border-color: rgba(74, 222, 210, .28);
  background: linear-gradient(135deg, rgba(0, 92, 190, .45), rgba(255, 255, 255, .08));
}

.tech-hero .article-title {
  margin: 0 0 16px;
}

.tech-hero .gzh-meta {
  color: #9db3b5;
}

.tech-hero .gzh-meta .is-tag {
  color: #e8ffff;
  background: rgba(255, 255, 255, .1);
}

.tech-pullquote {
  margin: 18px 0 22px;
  color: #32f0cb;
  background: transparent;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

.gzh-summary-dark {
  padding: 20px;
  border: 1px solid rgba(74, 222, 210, .62);
  border-radius: 9px;
  background: rgba(8, 19, 23, .92);
}

.gzh-summary-dark h4 {
  color: #fff;
}

.gzh-summary-dark p {
  margin: 10px 0;
  color: #d8eeee;
  line-height: 1.75;
}

.gzh-summary-dark span {
  margin-right: 8px;
  color: #32f0cb;
  font-weight: 900;
}

.tech-photo-grid {
  margin: 32px 0;
}

.tech-photo-grid h4,
.speaker-cards h4,
.tech-timeline h4 {
  color: #fff;
}

.tech-photo-grid > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tech-photo-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.tech-photo-grid img,
.tech-img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.6;
  color: #9aa4a6;
  background: linear-gradient(135deg, #c8c8c8, #777);
  font-size: 34px;
}

.tech-photo-grid figcaption {
  padding: 9px;
  color: #fff;
  background: rgba(0, 0, 0, .38);
  font-size: 13px;
  text-align: center;
}

.speaker-cards > div,
.tech-core-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 32px;
}

.speaker-cards article,
.tech-core-cards article {
  padding: 18px;
  border: 1px solid rgba(74, 222, 210, .5);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.speaker-cards article span {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff 0 28%, #bbb 29% 100%);
}

.speaker-cards strong,
.tech-core-cards h4 {
  color: #fff;
}

.speaker-cards p,
.tech-core-cards p {
  color: #d8eeee;
  line-height: 1.7;
}

.tech-timeline {
  margin: 28px 0 34px;
}

.tech-timeline > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  border-top: 2px solid #32f0cb;
}

.tech-timeline span {
  position: relative;
  padding-top: 18px;
  color: #d8eeee;
  font-size: 13px;
  text-align: center;
}

.tech-timeline i {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #32f0cb;
  border-radius: 999px;
  background: #030708;
  transform: translateX(-50%);
}

.tech-timeline strong,
.tech-timeline em {
  display: block;
  font-style: normal;
}

.tech-timeline em {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid rgba(74, 222, 210, .28);
  border-radius: 5px;
}

.tech-core-cards article strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border: 1px solid #32f0cb;
  border-radius: 999px;
  color: #fff;
}

.tech-core-cards article:nth-child(2) h4 {
  color: #70ff31;
}

.tech-core-cards article:nth-child(3) {
  border-color: rgba(255, 154, 46, .55);
}

.tech-core-cards article:nth-child(3) h4 {
  color: #ff9a2e;
}

.tech-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0;
  padding: 16px;
  border: 1px solid rgba(74, 222, 210, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.tech-metric-strip div {
  text-align: center;
}

.tech-metric-strip strong {
  display: block;
  color: #32f0cb;
  font-size: 28px;
}

.tech-metric-strip span {
  color: #d8eeee;
}

.template-gzh-tech-narrative .gzh-footer-cta {
  border-color: rgba(74, 222, 210, .58);
  background: rgba(10, 28, 30, .95);
}

.template-gzh-tech-narrative .gzh-footer-cta strong,
.template-gzh-tech-narrative .gzh-footer-cta p,
.template-gzh-tech-narrative .cta-actions {
  color: #e8ffff;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1320px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .status-panel {
    flex: none;
    margin-top: 0;
  }

  .input-column {
    grid-template-columns: 1fr;
  }

  .tool-section--upload,
  .tool-section--generate {
    grid-column: auto;
  }

  .preview-column {
    min-height: 560px;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .section-head,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  h2 {
    font-size: 24px;
  }

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

  .section-title-row {
    grid-template-columns: 58px 1fr auto;
  }

  .section-number {
    font-size: 36px;
  }

  .article-preview {
    padding: 24px 0 36px;
  }

  .article-preview.empty-state {
    min-height: 460px;
  }

  .article-section--scene,
  .article-section--progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-section--scene .structured-section-head,
  .article-section--progress .structured-section-head {
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dialogue-turn--answer {
    margin-left: 0;
  }

  .article-section--activity .structured-section-head,
  .article-section--insight .structured-section-head,
  .article-section--qa .structured-section-head,
  .article-section--list .structured-section-head {
    grid-template-columns: 44px 1fr auto;
  }

  .empty-copy {
    margin-top: 160px;
  }

  .recommend-bar.image-options {
    grid-template-columns: 1fr;
  }

  .image-options .switch {
    grid-column: auto;
  }
}
