#wuwei-poetry-wallpaper-root {
  color: #2f2a25;
}

.wuwei-poetry-wallpaper {
  --wuwei-paper: #ffffff;
  --wuwei-border: #e6ddd0;
  --wuwei-text: #2f2a25;
  --wuwei-accent: #8b6a42;
  --wuwei-shadow: rgba(26, 19, 12, 0.07);
  padding: 32px 16px 48px;
}

.wuwei-poetry-wallpaper__shell {
  margin: 0 auto;
  max-width: 1180px;
}

.wuwei-poetry-wallpaper__header {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
}

.wuwei-poetry-wallpaper__title {
  color: #221c17;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", "STSong", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

.wuwei-poetry-wallpaper__intro {
  color: #6a6157;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.wuwei-poetry-wallpaper__layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.wuwei-poetry-wallpaper__panel,
.wuwei-poetry-wallpaper__preview {
  background: #fff;
  border: 1px solid var(--wuwei-border);
  border-radius: 18px;
  box-shadow: 0 14px 40px var(--wuwei-shadow);
}

.wuwei-poetry-wallpaper__panel {
  padding: 22px;
}

.wuwei-poetry-wallpaper__preview {
  padding: 22px;
}

.wuwei-poetry-wallpaper__section + .wuwei-poetry-wallpaper__section {
  margin-top: 20px;
}

.wuwei-poetry-wallpaper__section-title {
  color: #44392e;
  display: block;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.wuwei-poetry-wallpaper__section-title span {
  color: #8d8378;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 14px;
  margin-left: 6px;
}

.wuwei-poetry-wallpaper__textarea {
  background: #fcfaf6;
  border: 1px solid #ddd2c4;
  border-radius: 14px;
  color: #2a241f;
  display: block;
  font-family: "Noto Serif SC", "STKaiti", "KaiTi", serif;
  font-size: 17px;
  line-height: 1.8;
  min-height: 180px;
  outline: none;
  padding: 16px 18px;
  resize: vertical;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  width: 100%;
}

.wuwei-poetry-wallpaper__textarea:focus {
  border-color: #b49668;
  box-shadow: 0 0 0 3px rgba(180, 150, 104, 0.12);
}

.wuwei-poetry-wallpaper__choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wuwei-poetry-wallpaper__choice-grid.is-size {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wuwei-poetry-wallpaper__choice {
  background: #fbf8f2;
  border: 1px solid #dfd3c4;
  border-radius: 14px;
  color: #473c32;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  justify-content: center;
  padding: 12px 10px;
  text-align: left;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.wuwei-poetry-wallpaper__choice strong {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 600;
}

.wuwei-poetry-wallpaper__choice span {
  color: #8a8073;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 13px;
}

.wuwei-poetry-wallpaper__choice:hover {
  border-color: #b49668;
  transform: translateY(-1px);
}

.wuwei-poetry-wallpaper__choice.is-active {
  background: #f5ede1;
  border-color: #a9854f;
  box-shadow: inset 0 0 0 1px #a9854f;
}

.wuwei-poetry-wallpaper__actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.wuwei-poetry-wallpaper__button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 16px;
  padding: 14px 18px;
  transition: opacity 120ms ease, transform 120ms ease;
}

.wuwei-poetry-wallpaper__button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.wuwei-poetry-wallpaper__button--primary {
  background: #171717;
  color: #f3e7cf;
}

.wuwei-poetry-wallpaper__button--secondary {
  background: linear-gradient(180deg, #8f6d42, #74522b);
  color: #fff8ee;
}

.wuwei-poetry-wallpaper__error {
  color: #a33939;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
  min-height: 22px;
}

.wuwei-poetry-wallpaper__preview-label {
  color: #8a8176;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.wuwei-poetry-wallpaper__preview-board {
  align-items: center;
  border: 1px solid #ede4d7;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  min-height: 620px;
  overflow: hidden;
  padding: 20px;
  transition: background 150ms ease;
}

.wuwei-poetry-wallpaper__canvas {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  display: block;
  height: auto;
  max-height: 76vh;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

@media (max-width: 900px) {
  .wuwei-poetry-wallpaper__layout {
    grid-template-columns: 1fr;
  }

  .wuwei-poetry-wallpaper__preview-board {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .wuwei-poetry-wallpaper {
    padding: 24px 12px 40px;
  }

  .wuwei-poetry-wallpaper__panel,
  .wuwei-poetry-wallpaper__preview {
    padding: 16px;
  }

  .wuwei-poetry-wallpaper__choice-grid,
  .wuwei-poetry-wallpaper__choice-grid.is-size {
    grid-template-columns: 1fr;
  }
}
