* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f1e8;
  font-family:
    "Noto Serif SC",
    "Source Han Serif SC",
    "Songti SC",
    "SimSun",
    serif;
}

.text-box {
  width: 90vw;
  height: 85vh;
  padding: 36px;
  background: #fffaf0;
  border: 1px solid #d8c7a3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* 关键：中文竖排，列从右向左 */
  writing-mode: vertical-rl;

  /* 关键：列内从上往下读 */
  direction: ltr;

  /* 中文保持竖排，英文和数字按浏览器规则处理 */
  text-orientation: mixed;

  font-size: 24px;
  line-height: 1.9;
  letter-spacing: 1px;
  color: #2f2a24;

  /* 尝试启用竖排标点 */
  font-feature-settings: "vert" 1, "vrt2" 1, "kern" 1;
  font-kerning: normal;

  /* 中文换行规则 */
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;

  /* 字数变多时，向左扩展，用横向滚动查看 */
  overflow-x: auto;
  overflow-y: hidden;
  white-space: normal;
}

.text-box p {
  margin: 0 0 0 28px;
}