/* 沈知远公开用户实例页 · 独立样式
   作用域：全部规则限定在 body.shen 之内，不引入、不覆盖全局样式。
   配色沿用项目既有暖色（旧日相册）方案，字体只用系统字体，不引用外部资源。 */

/* 本文件只被 public/user-story-shen/index.html 引用，不进入 Next 应用。 */
html { scroll-behavior: smooth; }

body.shen {
  --paper: #faf3e9;
  --ink: #49352e;
  --green: #974e38;
  --muted: #806859;
  --line: #e3d3bf;
  --soft: #f3e1d0;
  --white: #fffaf2;
  --accent: #bd8a66;
  --book: #9b634b;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

body.shen *,
body.shen *::before,
body.shen *::after { box-sizing: border-box; }

body.shen h1,
body.shen h2,
body.shen h3 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.shen h1 { font-size: 41px; margin: 0 0 18px; letter-spacing: 1px; }
body.shen h2 { font-size: 31px; margin: 0 0 18px; }
body.shen h3 { font-size: 24px; margin: 0 0 10px; }
body.shen p { margin: 0 0 16px; overflow-wrap: anywhere; }

body.shen a { color: var(--green); }
body.shen a:hover { color: var(--ink); }

body.shen :focus-visible {
  outline: 3px solid #9b742b;
  outline-offset: 3px;
  border-radius: 4px;
}

body.shen .wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 跳转链接 */
body.shen .skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 50;
}
body.shen .skip-link:focus { left: 0; }

/* 页头 */
body.shen .site-head {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
body.shen .site-head .wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
body.shen .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  text-decoration: none;
}
body.shen .brand .leaf {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--green);
}
body.shen .head-note {
  margin-left: auto;
  font-size: 17px;
  color: var(--muted);
}

/* 首屏 */
body.shen .hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line);
}
body.shen .hero .kicker {
  display: inline-block;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--green);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
body.shen .hero .person {
  margin: 0 0 22px;
  font-size: 20px;
  color: var(--muted);
}
body.shen .hero .quote {
  margin: 0 0 26px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
body.shen .hero .quote p {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: 26px;
  line-height: 1.8;
  margin: 0;
}
body.shen .hero .quote cite {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  font-style: normal;
  color: var(--muted);
}
body.shen .hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* 按钮 */
body.shen .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
}
body.shen .btn:hover { background: var(--soft); color: var(--ink); }
body.shen .btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
body.shen .btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
body.shen .btn.small { min-height: 44px; font-size: 18px; padding: 10px 16px; }

/* 区块 */
body.shen section { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
body.shen section:last-of-type { border-bottom: 0; }
body.shen .sec-head { margin-bottom: 22px; }
body.shen .sec-head .sec-num {
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 6px;
}
body.shen .lead { font-size: 21px; color: var(--muted); }

/* 过程步骤 */
body.shen .flow { display: grid; gap: 26px; }
body.shen .step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}
body.shen .step > .step-tag {
  display: inline-block;
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--green);
  background: var(--soft);
  border-radius: 5px;
  padding: 4px 11px;
  margin-bottom: 14px;
}
body.shen .step.generated { border-left: 4px solid var(--accent); }
body.shen .step.corrected { border-left: 4px solid var(--green); }

/* 原话 */
body.shen ol.raw {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
body.shen ol.raw > li {
  position: relative;
  padding: 14px 18px 14px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
body.shen ol.raw .raw-label {
  display: inline-block;
  font-size: 17px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
body.shen ol.raw .raw-label .mark {
  color: var(--green);
  background: var(--soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 6px;
}
body.shen ol.raw p { margin: 0; }

/* 生成稿 */
body.shen .draft {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
body.shen .draft p { font-size: 22px; line-height: 1.9; }
body.shen .draft p:last-child { margin-bottom: 0; }
body.shen .flag {
  display: inline-block;
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--green);
  background: var(--soft);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
body.shen .flag.spaced { margin-top: 16px; }
body.shen .mt-14 { margin-top: 14px; }
body.shen .mt-16 { margin-top: 16px; }
body.shen .mb-12 { margin-bottom: 12px; }

/* 折叠 */
body.shen details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 4px 18px;
  margin-top: 14px;
}
body.shen details[open] { padding-bottom: 14px; }
body.shen summary {
  cursor: pointer;
  min-height: 48px;
  display: list-item;
  padding: 10px 0;
  color: var(--green);
  font-size: 20px;
}
body.shen details > *:not(summary) { margin-top: 12px; }
body.shen details.issue { background: #f6ecdd; border-color: #dcc7a6; }
body.shen details.issue summary { color: #8a5a1f; }
body.shen .issue-body p { margin: 0 0 10px; font-size: 19px; }
body.shen .issue-body p:last-child { margin-bottom: 0; }

/* 标题卡网格 */
body.shen .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
body.shen .title-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
body.shen .title-card:hover { background: var(--soft); color: var(--ink); }
body.shen .title-card .idx { font-size: 17px; color: var(--muted); letter-spacing: 1px; }
body.shen .title-card .name { font-size: 22px; }

body.shen .story {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 26px;
}
body.shen .story:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

/* 数字与样册 */
body.shen .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
body.shen .stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
body.shen .stat b { display: block; font-size: 34px; color: var(--green); line-height: 1.3; }
body.shen .stat span { font-size: 18px; color: var(--muted); }
body.shen .order-list { margin: 0 0 18px; padding-left: 24px; }
body.shen .order-list li { margin: 6px 0; }
body.shen .note {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* 海报区 */
body.shen .poster-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
body.shen .poster-figure { margin: 0; }
body.shen .poster-figure a { display: block; }
body.shen .poster-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
body.shen .poster-figure figcaption { font-size: 17px; color: var(--muted); margin-top: 10px; }

/* 页脚 */
body.shen footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 26px 0 34px;
  font-size: 17px;
  color: var(--muted);
}
body.shen footer p { margin: 0 0 8px; }
body.shen footer p:last-child { margin-bottom: 0; }

/* 返回顶部 */
body.shen .back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 18px;
}

@media (max-width: 900px) {
  body.shen .poster-grid { grid-template-columns: minmax(0, 1fr); }
  body.shen .poster-figure { max-width: 340px; }
}

/* 桌面：把“讲述者说的话”和“小忆生成的稿”并排对照；手机仍按原话→纠正→生成稿纵向读。
   仅改视觉排版，DOM 顺序不变，读屏顺序仍为原话、纠正、生成稿。 */
@media (min-width: 1000px) {
  body.shen #process .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  body.shen #process .flow > .step:nth-child(1) { grid-column: 1; grid-row: 1; }
  body.shen #process .flow > .step:nth-child(2) { grid-column: 1; grid-row: 2; }
  body.shen #process .flow > .step:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 640px) {
  body.shen { font-size: 18px; }
  body.shen h1 { font-size: 34px; }
  body.shen h2 { font-size: 27px; }
  body.shen .wrap { padding: 0 18px; }
  body.shen .hero { padding: 32px 0 26px; }
  body.shen section { padding: 30px 0; }
  body.shen .card-grid { grid-template-columns: minmax(0, 1fr); }
  body.shen .stats { grid-template-columns: minmax(0, 1fr); }
  body.shen .step { padding: 18px 16px; }
  body.shen .hero .quote p { font-size: 23px; }
  body.shen .head-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.shen footer a[href="https://beian.miit.gov.cn/"] { display: inline-flex; align-items: center; min-height: 44px; }
