/* ========== 单选/多选组件样式 ========== */

/* 单选/多选共用样式 */
.question-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
}

/* 题干 */
.question-stem {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* 选项列表 */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 单个选项按钮 */
.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 选项文本 */
.option-text {
  font-size: 13px;
  color: #333;
  flex: 1;
}

/* 单选圆形控件 */
.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
  flex-shrink: 0;
}

/* 多选方形控件 */
.option-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
  flex-shrink: 0;
}

/* 勾选图标 */
.option-radio svg,
.option-checkbox svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 选中状态 */
.option-item.selected {
  background: #f0f7ff;
  border-color: #114f74;
}

.option-item.selected .option-radio {
  background: #114f74;
  border-color: #114f74;
}

.option-item.selected .option-checkbox {
  background: #114f74;
  border-color: #114f74;
}

.option-item.selected .option-radio svg,
.option-item.selected .option-checkbox svg {
  opacity: 1;
}

/* ========== 九宫格组件样式 ========== */

.jk-grid-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* 题目区域 */
.jk-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
  padding: 10px 0;
}

/* 九宫格区域 - 3行3列，格子紧密贴合 */
.jk-grid {
  display: grid;
  gap: 0;
  margin-bottom: 12px;

}

/* 一行三个字(九宫格) */
.jk-grid-three {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

/* 一行四个字(八宫格) */
.jk-grid-four {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

/* 九宫格格子 - 紧密排列无间距 */
.jk-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  font-weight: 600;
  min-height: 60px;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  margin: -0.5px;
}

/* 一行三个字的格子 */
.jk-cell-three {
  aspect-ratio: 1;
  font-size: 24px;
}

/* 一行四个字的格子 */
.jk-cell-four {
  aspect-ratio: 1;
  font-size: 20px;
}

.jk-cell:active {
  transform: scale(0.95);
}

/* 选中状态 - 棕色边框和浅棕背景 */
.jk-cell-selected {
  background: #e0cda3 !important;
  border-color: #dbdbdb !important;
  color: #fff !important;
}

/* 禁用状态 - 选择其他选项后未选中的格子变灰 */
.jk-cell-disabled {
  cursor: not-allowed !important;
}

/* 已选择显示区域 */
.jk-selection {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #2a6283;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.jk-selection-label {
  color: #2a6283;
  font-size: 12px;
  font-weight: 500;
}

.jk-selection-box {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.jk-selection-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #2a6283;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* 选中汉字样式 */
.jk-selection-char {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 32px;
  padding: 0 8px;
  background: #2a6283;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
}

.jk-selection-hint {
  color: #999;
  font-size: 13px;
}

.jk-selection-text {
  font-size: 16px;
  color: #114f74;
  min-height: 24px;
}

.jk-selection-count {
  font-size: 11px;
  color: #999;
}

/* 操作按钮 */
.jk-buttons {
  display: flex;
  gap: 12px;
}

.jk-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.jk-btn-reset {
  background: #f0f0f0;
  color: #666;
}

.jk-btn-reset:active {
  background: #e0e0e0;
}

.jk-btn-confirm {
  background: #4a90e2;
  color: #fff;
}

.jk-btn-confirm:active {
  background: #3a7bc8;
}

/* 反馈区域 */
.jk-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.jk-feedback-correct {
  background: #e6f4ea;
  color: #2e8b57;
}

.jk-feedback-error {
  background: #fff0f0;
  color: #d9534f;
}

.jk-feedback-icon {
  font-size: 16px;
  font-weight: bold;
}

/* 过渡动画 */
.jk-fade-enter-active,
.jk-fade-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.jk-fade-enter,
.jk-fade-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

/* 响应式适配 */
@media screen and (max-width: 375px) {
  .jk-grid-container {
    padding: 12px;
  }

  .jk-title {
    font-size: 16px;
  }

  .jk-cell-three {
    font-size: 20px;
  }

  .jk-cell-four {
    font-size: 16px;
  }

  .jk-selection-text {
    font-size: 16px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .jk-grid-container {
    background: #1e1e1e;
  }

  .jk-title {
    color: #e0e0e0;
  }

  .jk-grid {
    background: #2d2d2d;
  }

  .jk-cell {
    background: #2d2d2d;
    border-color: #4d4d4d;
    color: #e0e0e0;

  }

  .jk-cell:active {
    background: #3d3d3d;
  }

  .jk-cell-selected {
    background: #4a90e2 !important;
    border-color: #4a90e2 !important;
    color: #fff !important;
  }

  .jk-selection {
    background: #2d2d2d;
    border-color: #4a90e2;
  }

  .jk-selection-text {
    color: #6ba3e8;
  }

  .jk-btn-reset {
    background: #3d3d3d;
    color: #aaa;
  }

  .jk-btn-reset:active {
    background: #4d4d4d;
  }

  .jk-feedback-correct {
    background: rgba(46, 139, 87, 0.2);
    color: #5cb878;
  }

  .jk-feedback-error {
    background: rgba(217, 83, 79, 0.2);
    color: #e8746f;
  }
}


/**
 * 连线匹配答题组件样式
 * 适配 H5 移动端设计
 */

.filled-word:hover {
  background-color: #d9ecff;
  transform: scale(1.05);
}

@keyframes wordFill {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 下划线占位 */
.blank-line {
  display: inline-block;
  width: 60rem;
  height: 3rem;
  background: linear-gradient(to bottom, #ccc 0%, #ccc 100%);
  background-size: 100% 3rem;
}

/* 词语选择区 */
.word-selection-area {
  margin-bottom: 20rem;
}

.selection-label {
  font-size: 14rem;
  color: #666;
  margin-bottom: 12rem;
  font-weight: 500;
}

/* 词语网格 */
.word-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem;
  justify-content: center;
}

/* 词语按钮 */
.word-btn {
  padding: 12rem 20rem;
  font-size: 16rem;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  border: 2rem solid #dcdfe6;
  border-radius: 8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.06);
}

.word-btn:hover:not(:disabled):not(.used) {
  border-color: #409eff;
  color: #409eff;
  transform: translateY(-2rem);
  box-shadow: 0 4rem 12rem rgba(64, 158, 255, 0.15);
}

.word-btn:active:not(:disabled):not(.used) {
  transform: translateY(0);
}

.word-btn.used {
  opacity: 0.35;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.word-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 操作按钮区域 */
.action-buttons {
  display: flex;
  gap: 15rem;
  margin-bottom: 15rem;
}

/* 按钮通用样式 */
.btn {
  flex: 1;
  height: 44rem;
  font-size: 15rem;
  font-weight: 500;
  border: none;
  border-radius: 22rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reset {
  color: #666;
  background-color: #f4f4f5;
  border: 1rem solid #e4e4e7;
}

.btn-reset:hover:not(:disabled) {
  background-color: #e9e9eb;
  border-color: #d4d4d7;
}

.btn-submit {
  color: #fff;
  background-color: #409eff;
  box-shadow: 0 4rem 12rem rgba(64, 158, 255, 0.25);
}

.btn-submit:hover:not(:disabled) {
  background-color: #66b1ff;
  transform: translateY(-1rem);
  box-shadow: 0 6rem 16rem rgba(64, 158, 255, 0.35);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

/* 反馈区域 */
.feedback-area {
  padding: 15rem;
  border-radius: 10rem;
  display: flex;
  align-items: flex-start;
  gap: 12rem;
  animation: feedbackSlide 0.3s ease;
}

@keyframes feedbackSlide {
  0% {
    opacity: 0;
    transform: translateY(-8rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-success {
  background-color: #f0f9eb;
  border: 1rem solid #e1f3d8;
}

.feedback-error {
  background-color: #fef0f0;
  border: 1rem solid #fde2e2;
}

/* 反馈图标 */
.feedback-icon {
  flex-shrink: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14rem;
}

.feedback-success .feedback-icon {
  background-color: #67c23a;
  color: #fff;
}

.feedback-error .feedback-icon {
  background-color: #f56c6c;
  color: #fff;
}

/* 反馈内容 */
.feedback-content {
  flex: 1;
}

.feedback-title {
  font-size: 15rem;
  font-weight: 600;
  margin: 0 0 4rem 0;
}

.feedback-success .feedback-title {
  color: #67c23a;
}

.feedback-error .feedback-title {
  color: #f56c6c;
}

.feedback-message {
  font-size: 14rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
  transform: translateY(-8rem);
}

/* 响应式适配 */
@media screen and (max-width: 375rem) {
  .answering-container {
    padding: 15rem;
  }

  .sentence-box {
    padding: 15rem 12rem;
  }

  .sentence-text {
    font-size: 18rem;
  }

  .blank {
    min-width: 60rem;
    height: 36rem;
  }

  .filled-word {
    font-size: 16rem;
    padding: 3rem 6rem;
  }

  .word-btn {
    padding: 10rem 16rem;
    font-size: 15rem;
  }

  .btn {
    height: 40rem;
    font-size: 14rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .question-text {
    color: #e0e0e0;
  }

  .sentence-box {
    background-color: #2d2d2d;
    box-shadow: 0 2rem 12rem rgba(0, 0, 0, 0.3);
  }

  .sentence-text {
    color: #e0e0e0;
  }

  .blank {
    border-bottom-color: #888;
  }

  .blank-line {
    background: linear-gradient(to bottom, #666 0%, #666 100%);
    background-size: 100% 3rem;
  }

  .filled-word {
    color: #fff;
    background-color: #1a3a5c;
    border-color: #409eff;
  }

  .word-btn {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #4d4d4d;
  }

  .word-btn.used {
    background-color: #252525;
  }

  .btn-reset {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #bbb;
  }
}




/**
 * 连线答题组件样式
 * 适配 H5 移动端设计
 */

/* 组件容器 */
.matching-container {
  padding: 15rem;
  max-width: 600rem;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 题目区域 */
.question-area {
  margin-bottom: 20rem;
}

.question-text {
  font-size: 15rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  padding: 10rem;
  background-color: #f5f7fa;
  border-radius: 8rem;
}

/* 连线区域 */
.matching-area {
  position: relative;
  padding: 15rem 10rem;
  margin-bottom: 20rem;
  overflow: hidden;
  box-sizing: border-box;
}

/* SVG 连线层 */
.lines-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connection-line {
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

/* 选项行 - 每行左右各一个块 */
.matching-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  margin-bottom: 15rem;
}

.matching-row:last-child {
  margin-bottom: 0;
}

/* 选项块容器 */
.items-column {
  width: 45%;
  display: flex;
  align-items: stretch;
}

.left-column {
  justify-content: flex-start;
}

.right-column {
  justify-content: flex-end;
}

/* 选项块 - 标签样式 */
.item-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45rem;
  padding: 8rem 15rem;
  background-color: #e8f4fd;
  border: 1.5rem solid #1470b0;
  border-radius: 6rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
  word-wrap: break-word;
  word-break: break-all;
  text-align: center;
}

.left-column .item-block {
  margin-left: 0;
}

.right-column .item-block {
  margin-right: 0;
}

.item-block:hover:not(.connected) {
  background-color: #d0e8f7;
  border-color: #114f74;
  transform: scale(1.02);
}

.item-block.selected {
  background-color: #1470b0;
  color: #fff;
  border-color: #1470b0;
  box-shadow: 0 0 0 3rem rgba(20, 112, 176, 0.2);
}

.item-block.connected {
  cursor: default;
}

/* 连线匹配组件 - 参考 answer_my 组件 */

/* 连线样式 */
.matching-line {
  position: absolute;
  height: 2px;
  background-color: #D8C69C;
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

/* 参考 answer_my 的样式 */
.poem-box {
  width: 116px;
  height: 65px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  word-break: break-word;
  color: #000;
  border: 2px solid #666;
}

.fx-start {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.f-13 {
  font-size: 13px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mr-15 {
  margin-right: 15px;
}

.cu-point {
  cursor: pointer;
}

.border-radius-16 {
  border-radius: 16px;
}

.relative {
  position: relative;
}

.connection-line {
  position: absolute;
  height: 2px;
  background-color: #D8C69C;
  transform-origin: left center;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  display: block;
  backface-visibility: hidden;
}

/* 选项文本 */
.item-text {
  font-size: 13rem;
  color: #1470b0;
  line-height: 1.4;
  word-break: break-all;
}

.item-block.selected .item-text {
  color: #fff;
}

.item-block.connected .item-text {
  font-weight: 600;
}

/* 操作按钮区域 */
.action-buttons {
  display: flex;
  gap: 12rem;
  margin-bottom: 15rem;
}

/* 按钮通用样式 */
.btn {
  flex: 1;
  height: 44rem;
  font-size: 15rem;
  font-weight: 500;
  border: none;
  border-radius: 22rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reset {
  color: #666;
  background-color: #f4f4f5;
  border: 1rem solid #e4e4e7;
}

.btn-reset:hover:not(:disabled) {
  background-color: #e9e9eb;
}

.btn-submit {
  color: #fff;
  background-color: #409eff;
  box-shadow: 0 4rem 10rem rgba(64, 158, 255, 0.25);
}

.btn-submit:hover:not(:disabled) {
  background-color: #66b1ff;
  transform: translateY(-1rem);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

/* 反馈区域 */
.feedback-area {
  padding: 15rem;
  border-radius: 10rem;
  display: flex;
  align-items: flex-start;
  gap: 12rem;
  animation: feedbackSlide 0.3s ease;
}

@keyframes feedbackSlide {
  0% {
    opacity: 0;
    transform: translateY(-10rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-success {
  background-color: #f0f9eb;
  border: 1rem solid #e1f3d8;
}

.feedback-error {
  background-color: #fef0f0;
  border: 1rem solid #fde2e2;
}

/* 反馈图标 */
.feedback-icon {
  flex-shrink: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14rem;
}

.feedback-success .feedback-icon {
  background-color: #67c23a;
  color: #fff;
}

.feedback-error .feedback-icon {
  background-color: #f56c6c;
  color: #fff;
}

/* 反馈内容 */
.feedback-content {
  flex: 1;
}

.feedback-title {
  font-size: 15rem;
  font-weight: 600;
  margin: 0 0 4rem 0;
}

.feedback-success .feedback-title {
  color: #67c23a;
}

.feedback-error .feedback-title {
  color: #f56c6c;
}

.feedback-message {
  font-size: 14rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
  transform: translateY(-10rem);
}

/* 响应式适配 */
@media screen and (max-width: 400rem) {
  .matching-container {
    padding: 12rem;
  }

  .item-block {
    padding: 10rem 12rem;
    min-width: 100rem;
  }

  .item-text {
    font-size: 13rem;
  }

  .items-column {
    gap: 15rem;
  }

  .btn {
    height: 40rem;
    font-size: 14rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .question-text {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }

  .item-block {
    background-color: #2d2d2d;
    border-color: #4d4d4d;
  }

  .item-text {
    color: #e0e0e0;
  }

  .item-block:hover:not(.connected) {
    border-color: #409eff;
  }

  .btn-reset {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #bbb;
  }
}




/**
 * 单选答题组件样式
 * 适配 H5 移动端设计
 */

/* 单选答题组件容器 */
.single-choice-container {
  padding: 15rem;
  max-width: 500rem;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 题目区域 */
.single-choice-container .question-area {
  margin-bottom: 20rem;
}

.single-choice-container .question-text {
  font-size: 16rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* 选项区域 */
.single-choice-container .options-area {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  margin-bottom: 25rem;
}

/* 选项包装器 */
.single-choice-container .option-wrapper {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1rem solid #d7d7d7;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.single-choice-container .option-wrapper:hover:not(.disabled) {
  background-color: #f5f5f5;
  border-color: #2a6283;
}

.single-choice-container .option-wrapper.selected {
  background-color: #fff;
  border-color: #2a6283;
}

.single-choice-container .option-wrapper.correct {
  background-color: #fff;
  border-color: #67c23a;
}

.single-choice-container .option-wrapper.incorrect {
  background-color: #fff;
  border-color: #f56c6c;
}

.single-choice-container .option-wrapper.disabled {
  cursor: default;
}

/* 选项指示器（A/B/C/D） */
.single-choice-container .option-indicator {
  width: 32rem;
  height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6rem;
  font-size: 14rem;
  font-weight: 600;
  color: #000;
  margin-right: 12rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #666;
}

.single-choice-container .option-indicator.A,
.single-choice-container .option-indicator.B,
.single-choice-container .option-indicator.C,
.single-choice-container .option-indicator.D {
  background-color: transparent;
}

.single-choice-container .option-wrapper.selected .option-indicator {
  background-color: #666;
  box-shadow: none;
}

.single-choice-container .option-wrapper.correct .option-indicator {
  background-color: #67c23a;
  box-shadow: none;
}

.single-choice-container .option-wrapper.incorrect .option-indicator {
  background-color: #f56c6c;
  box-shadow: none;
}

/* 选项内容 */
.single-choice-container .option-content {
  flex: 1;
  min-width: 0;
}

.single-choice-container .option-text {
  font-size: 15rem;
  color: #333;
  line-height: 1.5;
  word-break: break-all;
}

.single-choice-container .option-wrapper.correct .option-text {
  color: #67c23a;
}

.single-choice-container .option-wrapper.incorrect .option-text {
  color: #f56c6c;
}

/* 选项勾选标记 */
.single-choice-container .option-check {
  width: 22rem;
  height: 22rem;
  border: 2rem solid #dcdfe6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #fff;
}

.single-choice-container .option-check.selected {
  border-color: #2a6283;
  background-color: #2a6283;
}

.single-choice-container .option-wrapper.correct .option-check {
  border-color: #67c23a;
  background-color: #67c23a;
}

.single-choice-container .option-wrapper.incorrect .option-check {
  border-color: #f56c6c;
  background-color: #f56c6c;
}

.single-choice-container .option-check .check-icon {
  color: #fff;
  font-size: 16rem;
  font-weight: bold;
}

/* 操作按钮区域 */
.single-choice-container .action-buttons {
  display: flex;
  gap: 12rem;
  margin-bottom: 15rem;
}

/* 响应式适配 */
@media screen and (max-width: 375rem) {
  .single-choice-container {
    padding: 12rem;
  }

  .single-choice-container .option-indicator {
    width: 28rem;
    height: 28rem;
    font-size: 16rem;
  }

  .single-choice-container .option-text {
    font-size: 14rem;
  }

  .single-choice-container .option-check {
    width: 20rem;
    height: 20rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .single-choice-container .question-text {
    color: #e0e0e0;
  }

  .single-choice-container .option-wrapper {
    background-color: #2d2d2d;
    border-color: #4d4d4d;
  }

  .single-choice-container .option-wrapper:hover:not(.disabled) {
    border-color: #2a6283;
  }

  .single-choice-container .option-wrapper.selected {
    background-color: #2a3a4a;
    border-color: #2a6283;
  }

  .single-choice-container .option-wrapper.correct {
    background-color: #1f3d1f;
    border-color: #67c23a;
  }

  .single-choice-container .option-wrapper.incorrect {
    background-color: #3d1f1f;
    border-color: #f56c6c;
  }

  .single-choice-container .option-text {
    color: #e0e0e0;
  }
}




/**
 * 多选答题组件样式
 * 适配 H5 移动端设计
 */

/* 多选答题组件容器 */
.multi-choice-container {
  padding: 15rem;
  max-width: 500rem;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 题目区域 */
.multi-choice-container .question-area {
  margin-bottom: 15rem;
}

.multi-choice-container .question-text {
  font-size: 16rem;
  color: #333;
  line-height: 1.6;
  margin: 0 0 10rem 0;
  font-weight: 500;
}

/* 选择提示 */
.multi-choice-container .select-hint {
  display: flex;
  align-items: center;
  gap: 8rem;
  margin-bottom: 5rem;
}

.multi-choice-container .hint-text {
  font-size: 13rem;
  color: #909399;
}

/* 选项区域 */
.multi-choice-container .options-area {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  margin-bottom: 25rem;
}

/* 选项包装器 */
.multi-choice-container .option-wrapper {
  display: flex;
  align-items: center;
  padding: 14rem;
  background-color: #fff;
  border: 1rem solid #d7d7d7;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.multi-choice-container .option-wrapper:hover:not(.disabled):not(.selected) {
  background-color: #f5f5f5;
  border-color: #8caaba;
}

.multi-choice-container .option-wrapper.selected {
  background-color: #e0cda3;
  border-color: #8caaba;
}

.multi-choice-container .option-wrapper.correct {
  background-color: #e0cda3;
  border-color: #67c23a;
}

.multi-choice-container .option-wrapper.wrong {
  background-color: #e0cda3;
  border-color: #f56c6c;
}

.multi-choice-container .option-wrapper.disabled {
  cursor: default;
}

/* 选项复选框 */
.multi-choice-container .option-checkbox {
  width: 22rem;
  height: 22rem;
  border: 2rem solid #dcdfe6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #fff;
}

.multi-choice-container .option-checkbox.checked {
  border-color: #409eff;
  background-color: #409eff;
}

.multi-choice-container .option-wrapper.correct .option-checkbox {
  border-color: #67c23a;
  background-color: #67c23a;
}

.multi-choice-container .option-wrapper.wrong .option-checkbox {
  border-color: #f56c6c;
  background-color: #f56c6c;
}

.multi-choice-container .option-checkbox .check-icon {
  color: #fff;
  font-size: 16rem;
  font-weight: bold;
}

/* 选项指示器（A/B/C/D） */
.multi-choice-container .option-indicator {
  width: 28rem;
  height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6rem;
  font-size: 13rem;
  font-weight: 600;
  color: #000;
  margin-right: 10rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: transparent;
}

.multi-choice-container .option-indicator.A,
.multi-choice-container .option-indicator.B,
.multi-choice-container .option-indicator.C,
.multi-choice-container .option-indicator.D {
  background-color: transparent;
}

.multi-choice-container .option-wrapper.selected .option-indicator {
  background-color: transparent;
}

.multi-choice-container .option-wrapper.correct .option-indicator {
  background-color: #67c23a;
}

.multi-choice-container .option-wrapper.wrong .option-indicator {
  background-color: #f56c6c;
}

/* 选项内容 */
.multi-choice-container .option-content {
  flex: 1;
  min-width: 0;
}

.multi-choice-container .option-text {
  font-size: 15rem;
  color: #333;
  line-height: 1.5;
  word-break: break-all;
}

.multi-choice-container .option-wrapper.correct .option-text {
  color: #67c23a;
}

.multi-choice-container .option-wrapper.wrong .option-text {
  color: #f56c6c;
}

/* 答案提示 */
.multi-choice-container .answer-hint {
  margin-top: 10rem;
  padding-top: 10rem;
  border-top: 1rem solid rgba(0, 0, 0, 0.06);
}

.multi-choice-container .hint-label {
  font-size: 13rem;
  color: #909399;
  margin: 0 0 6rem 0;
}

.multi-choice-container .correct-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
}

.multi-choice-container .correct-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 10rem;
  font-size: 13rem;
  font-weight: 500;
  color: #67c23a;
  background-color: #e1f3d8;
  border-radius: 4rem;
}

/* 响应式适配 */
@media screen and (max-width: 375rem) {
  .multi-choice-container {
    padding: 12rem;
  }

  .multi-choice-container .option-wrapper {
    padding: 12rem;
  }

  .multi-choice-container .option-indicator {
    width: 26rem;
    height: 26rem;
    font-size: 16rem;
  }

  .multi-choice-container .option-text {
    font-size: 14rem;
  }

  .multi-choice-container .option-checkbox {
    width: 20rem;
    height: 20rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .multi-choice-container .question-text {
    color: #e0e0e0;
  }

  .multi-choice-container .option-wrapper {
    background-color: #2d2d2d;
    border-color: #4d4d4d;
  }

  .multi-choice-container .option-wrapper:hover:not(.disabled):not(.selected) {
    border-color: #409eff;
  }

  .multi-choice-container .option-wrapper.selected {
    background-color: #1a3a5c;
  }

  .multi-choice-container .option-wrapper.correct {
    background-color: #1f3d1f;
    border-color: #67c23a;
  }

  .multi-choice-container .option-wrapper.wrong {
    background-color: #3d1f1f;
    border-color: #f56c6c;
  }

  .multi-choice-container .option-text {
    color: #e0e0e0;
  }

  .multi-choice-container .option-checkbox {
    background-color: #3d3d3d;
  }

  .multi-choice-container .correct-tag {
    color: #67c23a;
    background-color: rgba(103, 194, 58, 0.2);
  }
}




/**
 * 诗词排序组件样式
 * 适配 H5 移动端设计
 */

/* 诗词排序组件容器 */
.poetry-sort-container {
  max-width: 500rem;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 题目区域 */
.poetry-sort-container .question-area {
  margin-bottom: 15rem;
}

.poetry-sort-container .question-text {
  font-size: 16rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

/* 我的选择区域 */
.poetry-sort-container .poetry-my-selection {
  display: flex;
  align-items: center;
  gap: 8rem;
  padding: 8rem 12rem;
  background: #fff;
  border: 1rem solid #2a6283;
  border-radius: 8rem;
  margin-bottom: 12rem;
  min-height: 44rem;
}

.poetry-sort-container .poetry-selection-label {
  color: #2a6283;
  font-size: 16rem;
  font-weight: 500;
  flex-shrink: 0;
}

.poetry-sort-container .poetry-selection-nums {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex: 1;
  flex-wrap: wrap;
}

.poetry-sort-container .poetry-selection-sep {
  color: #2a6283;
  font-size: 14rem;
  font-weight: 600;
}

.poetry-sort-container .poetry-selection-num {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4rem 8rem;
  background: #fff;
  color: rgb(51, 51, 51);
  border-radius: 16rem;
  font-size: 18rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poetry-sort-container .poetry-selection-num:hover {
  background: #1d4a63;
}

/* 已选区域 */
.poetry-sort-container .poetry-my-selection {
  display: flex;
  align-items: flex-start;
  gap: 10rem;
  padding: 12rem;
  background: #f9f9f9;
  border-radius: 8rem;
  margin-bottom: 12rem;
}

.poetry-sort-container .poetry-selection-label {
  font-size: 13rem;
  color: #666;
  flex-shrink: 0;
}

.poetry-sort-container .poetry-selection-sep {
  color: #2a6283;
  font-size: 14rem;
  font-weight: 600;
}

.poetry-sort-container .poetry-selection-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24rem;
  height: 24rem;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-size: 18rem;
  font-weight: 600;
  flex-shrink: 0;
}

.poetry-sort-container .poetry-selection-hint {
  color: #999;
  font-size: 13rem;
}

/* 选中区域 - 允许换行 */
.poetry-sort-container .poetry-selection-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6rem;
  flex: 1;
}

/* 可选诗句区 - 改为 flex 布局支持换行 */
.poetry-sort-container .poetry-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 10rem;
  margin-bottom: 15rem;
}

.poetry-sort-container .poetry-fragment {
  display: flex;
  align-items: flex-start;
  gap: 8rem;
  padding: 10rem 12rem;
  background: #fff;
  border: 1rem solid #d7d7d7;
  border-radius: 8rem;
  font-size: 14rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  /* 允许换行 */
  flex: 0 1 calc(50% - 5rem);
  word-break: break-word;
}

.poetry-sort-container .poetry-fragment:hover {
  border-color: #2a6283;
  color: #2a6283;
}

.poetry-sort-container .poetry-fragment.selected {
  border-color: #2a6283;
  background: #2a6283;
  color: #fff;
}

.poetry-sort-container .poetry-fragment.selected .poetry-fragment-num {
  background: #fff;
  color: #2a6283;
}

.poetry-sort-container .poetry-fragment-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24rem;
  height: 24rem;
  min-width: 24rem;
  background: #f5f5f5;
  color: #666;
  border-radius: 50%;
  font-size: 16rem;
  font-weight: 600;
  flex-shrink: 0;
}

.poetry-sort-container .poetry-fragment-text {
  flex: 1;
  /* 允许文字换行 */
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* 操作按钮 */
.poetry-sort-container .action-buttons {
  display: flex;
  gap: 12rem;
}

.poetry-sort-container .btn {
  flex: 1;
  height: 44rem;
  border: none;
  border-radius: 22rem;
  font-size: 15rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poetry-sort-container .btn-reset {
  background: #f0f0f0;
  color: #666;
}

.poetry-sort-container .btn-submit {
  background: #2a6283;
  color: #fff;
}

.poetry-sort-container .btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 反馈区域 */
.poetry-sort-container .feedback-area {
  margin-top: 15rem;
  padding: 15rem;
  border-radius: 12rem;
  text-align: center;
}

.poetry-sort-container .feedback-success {
  background: rgba(103, 194, 58, 0.1);
  border: 1rem solid #67c23a;
}

.poetry-sort-container .feedback-error {
  background: rgba(245, 108, 108, 0.1);
  border: 1rem solid #f56c6c;
}

.poetry-sort-container .feedback-icon {
  font-size: 32rem;
  margin-bottom: 8rem;
}

.poetry-sort-container .feedback-success .feedback-icon {
  color: #67c23a;
}

.poetry-sort-container .feedback-error .feedback-icon {
  color: #f56c6c;
}

.poetry-sort-container .feedback-title {
  font-size: 16rem;
  font-weight: 600;
  margin: 0 0 5rem 0;
}

.poetry-sort-container .feedback-message {
  font-size: 14rem;
  color: #666;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .poetry-sort-container .question-text {
    color: #e0e0e0;
  }

  .poetry-sort-container .slot-number {
    background-color: #3d3d3d;
    color: #bbb;
  }

  .poetry-sort-container .selected-slot {
    background-color: #2d2d2d;
    border-color: #409eff;
  }

  .poetry-sort-container .selected-slot.correct {
    background-color: #1f3d1f;
    border-color: #67c23a;
  }

  .poetry-sort-container .selected-slot.wrong {
    background-color: #3d1f1f;
    border-color: #f56c6c;
  }

  .poetry-sort-container .selected-slot .fragment-text {
    color: #e0e0e0;
  }

  .poetry-sort-container .poetry-fragment:hover {
    border-color: #2a6283;
    color: #2a6283;
  }

  .poetry-sort-container .poetry-fragment.selected {
    background: #2a6283;
    color: #fff;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .poetry-sort-container .question-text {
    color: #e0e0e0;
  }

  .poetry-sort-container .poetry-my-selection {
    background: #2d2d2d;
    border-color: #4d4d4d;
  }

  .poetry-sort-container .poetry-selection-label {
    color: #2a6283;
  }

  .poetry-sort-container .poetry-selection-num {
    background: #2a6283;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .poetry-sort-container .question-text {
    color: #e0e0e0;
  }

  .poetry-sort-container .poetry-my-selection {
    background: #2d2d2d;
    border-color: #4d4d4d;
  }

  .poetry-sort-container .poetry-selection-label {
    color: #2a6283;
  }

  .poetry-sort-container .poetry-selection-num {
    background: #2a6283;
  }

  .poetry-sort-container .poetry-fragment {
    background: #2d2d2d;
    border-color: #4d4d4d;
    color: #e0e0e0;
  }

  .poetry-sort-container .poetry-fragment:hover {
    border-color: #2a6283;
    color: #2a6283;
  }

  .poetry-sort-container .poetry-fragment.selected {
    background: #2a6283;
    color: #fff;
  }
}

/**
 * 平仄标注组件样式
 * 适配 H5 移动端设计
 */

/* 平仄组件容器 */
.pingze-container {
  padding: 15rem;
  max-width: 500rem;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 题目区域 */
.pingze-container .question-area {
  margin-bottom: 15rem;
  text-align: center;
}

.pingze-container .question-text {
  font-size: 16rem;
  color: #333;
  margin: 0 0 8rem 0;
  font-weight: 500;
}

.pingze-container .poem-title {
  font-size: 18rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}

/* 图例 */
.pingze-container .legend {
  display: flex;
  justify-content: center;
  gap: 30rem;
  margin-bottom: 20rem;
  padding: 10rem;
  background-color: #f5f7fa;
  border-radius: 8rem;
}

.pingze-container .legend-item {
  display: flex;
  align-items: center;
  gap: 8rem;
}

.pingze-container .legend-mark {
  font-size: 18rem;
  line-height: 1;
}

.pingze-container .legend-mark.ping-mark {
  color: #409eff;
}

.pingze-container .legend-mark.ze-mark {
  color: #f56c6c;
}

.pingze-container .legend-label {
  font-size: 14rem;
  color: #666;
}

/* 诗句区域 */
.pingze-container .poem-area {
  margin-bottom: 25rem;
}

.pingze-container .poem-line {
  display: flex;
  align-items: flex-start;
  gap: 12rem;
  margin-bottom: 20rem;
  padding: 15rem;
  background-color: #fff;
  border-radius: 12rem;
  box-shadow: 0 2rem 10rem rgba(0, 0, 0, 0.05);
}

.pingze-container .line-number {
  width: 24rem;
  height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 50%;
  font-size: 16rem;
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
  margin-top: 25rem;
}

.pingze-container .char-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10rem;
  flex: 1;
}

/* 单字容器 */
.pingze-container .char-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
}

.pingze-container .char-text {
  font-size: 20rem;
  color: #333;
  line-height: 1.2;
  min-width: 28rem;
  text-align: center;
}

/* 标注按钮 */
.pingze-container .mark-buttons {
  display: flex;
  gap: 6rem;
}

.pingze-container .mark-btn {
  width: 28rem;
  height: 28rem;
  border: 2rem solid #e4e7ed;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14rem;
  color: #dcdfe6;
}

.pingze-container .mark-btn:hover:not(:disabled) {
  transform: scale(1.1);
}

.pingze-container .mark-btn:disabled {
  cursor: default;
}

/* 平声按钮 */
.pingze-container .ping-btn {
  color: #c0c4cc;
}

.pingze-container .ping-btn.active {
  background-color: #409eff;
  border-color: #409eff;
  color: #fff;
  box-shadow: 0 2rem 8rem rgba(64, 158, 255, 0.3);
}

.pingze-container .ping-btn.correct {
  background-color: #67c23a;
  border-color: #67c23a;
  color: #fff;
}

.pingze-container .ping-btn.wrong {
  background-color: #f56c6c;
  border-color: #f56c6c;
  color: #fff;
}

/* 仄声按钮 */
.pingze-container .ze-btn {
  color: #c0c4cc;
}

.pingze-container .ze-btn.active {
  background-color: #f56c6c;
  border-color: #f56c6c;
  color: #fff;
  box-shadow: 0 2rem 8rem rgba(245, 108, 108, 0.3);
}

.pingze-container .ze-btn.correct {
  background-color: #67c23a;
  border-color: #67c23a;
  color: #fff;
}

.pingze-container .ze-btn.wrong {
  background-color: #f56c6c;
  border-color: #f56c6c;
  color: #fff;
}

/* 操作按钮区域 */
.pingze-container .action-buttons {
  display: flex;
  gap: 12rem;
  margin-bottom: 15rem;
}

/* 响应式适配 */
@media screen and (max-width: 375rem) {
  .pingze-container {
    padding: 12rem;
  }

  .pingze-container .char-item {
    gap: 4rem;
  }

  .pingze-container .char-text {
    font-size: 18rem;
    min-width: 24rem;
  }

  .pingze-container .mark-btn {
    width: 26rem;
    height: 26rem;
    font-size: 16rem;
  }

  .pingze-container .poem-line {
    padding: 12rem;
    gap: 10rem;
  }

  .pingze-container .char-row {
    gap: 8rem;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {

  .pingze-container .question-text,
  .pingze-container .poem-title {
    color: #e0e0e0;
  }

  .pingze-container .legend {
    background-color: #2d2d2d;
  }

  .pingze-container .legend-label {
    color: #bbb;
  }

  .pingze-container .line-number {
    background-color: #3d3d3d;
    color: #bbb;
  }

  .pingze-container .poem-line {
    background-color: #2d2d2d;
  }

  .pingze-container .char-text {
    color: #e0e0e0;
  }

  .pingze-container .mark-btn {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #666;
  }

  .pingze-container .mark-btn:hover:not(:disabled) {
    border-color: #409eff;
  }
}


/**
 * 平仄标注组件样式 (新版)
 * 交互：上方有 tabs 切换，点击汉字标注
 * 平声：红边框透明背景圆圈
 * 仄声：灰圈
/* ========== 韵字平仄标注组件 ========== */
.pz-container {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

/* 题目区域 */
.pz-container .pz-header {
  margin-bottom: 16px;
}

.pz-container .pz-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 4px;
}

.pz-container .pz-poem-title {
  font-size: 14px;
  color: #999;
  text-align: center;
}

/* 标注类型选择区 */
.pz-container .pz-select-area {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.pz-container .pz-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.pz-container .pz-options {
  display: flex;
  gap: 8px;
}

.pz-container .pz-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pz-container .pz-option:hover {
  border-color: #ccc;
}

.pz-container .pz-option.active {
  border-width: 2px;
}

.pz-container .pz-option.active.pz-option-ping {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.pz-container .pz-option.active.pz-option-ze {
  border-color: #95a5a6;
  background: rgba(149, 165, 166, 0.1);
}

.pz-container .pz-option.active.pz-option-yun {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.08);
}

.pz-container .pz-option-icon {
  font-size: 16px;
  line-height: 1;
}

.pz-container .pz-icon-ping {
  color: #e74c3c;
}

.pz-container .pz-icon-ze {
  color: #95a5a6;
}

.pz-container .pz-icon-yun {
  color: #27ae60;
}

.pz-container .pz-option-text {
  font-size: 13px;
  color: #333;
}

.pz-container .pz-option.active.pz-option-text {
  font-weight: 500;
}

/* 诗句展示区 */
.pz-container .pz-poem-area {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.pz-container .pz-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.pz-container .pz-line:not(:last-child) {
  border-bottom: 1px dashed #e0e0e0;
}

.pz-container .pz-line-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  border-radius: 50%;
  font-size: 11px;
  color: #666;
  flex-shrink: 0;
}

.pz-container .pz-chars-wrapper {
  flex: 1;
  overflow-x: auto;
}

.pz-container .pz-chars {
  display: flex;
  gap: 6px;
}

/* 汉字项（包含序号和汉字） */
.pz-container .pz-char-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* 汉字序号 */
.pz-container .pz-char-index {
  font-size: 11px;
  color: #999;
  height: 14px;
  line-height: 14px;
}

/* 汉字 */
.pz-container .pz-char {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pz-container .pz-char:hover {
  border-color: #ddd;
}

.pz-container .pz-char-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

.pz-container .pz-char-mark {
  font-size: 10px;
  line-height: 1;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 标记图标颜色 */
.pz-container .pz-mark-ping {
  color: #e74c3c;
}

.pz-container .pz-mark-ze {
  color: #95a5a6;
}

.pz-container .pz-mark-yun {
  color: #27ae60;
}

/* 选中后的边框样式 - 只有边框变色 */
.pz-container .pz-char.pz-char-ping {
  border-color: #e74c3c;
}

.pz-container .pz-char.pz-char-ping .pz-char-text {
  color: #e74c3c;
}

.pz-container .pz-char.pz-char-ze {
  border-color: #95a5a6;
}

.pz-container .pz-char.pz-char-ze .pz-char-text {
  color: #7f8c8d;
}

.pz-container .pz-char.pz-char-yun {
  border-color: #27ae60;
}

.pz-container .pz-char.pz-char-yun .pz-char-text {
  color: #27ae60;
}

/* 操作按钮 */
.pz-container .pz-buttons {
  display: flex;
  gap: 12px;
}

.pz-container .pz-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pz-container .pz-btn-reset {
  background: #f0f0f0;
  color: #666;
}

.pz-container .pz-btn-reset:active {
  background: #e0e0e0;
}

.pz-container .pz-btn-submit {
  background: #4a90e2;
  color: #fff;
}

.pz-container .pz-btn-submit:active {
  background: #3a7bc8;
}

.pz-container .pz-btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 反馈区域 */
.pz-container .pz-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.pz-container .pz-feedback-correct {
  background: #e6f4ea;
  color: #2e8b57;
}

.pz-container .pz-feedback-error {
  background: #fff0f0;
  color: #d9534f;
}

/* 过渡动画 */
.pz-container .pz-fade-enter-active,
.pz-container .pz-fade-leave-active {
  transition: opacity 0.25s ease;
}

.pz-container .pz-fade-enter,
.pz-container .pz-fade-leave-to {
  opacity: 0;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  .pz-container {
    background: #1e1e1e;
  }

  .pz-container .pz-title {
    color: #e0e0e0;
  }

  .pz-container .pz-poem-title {
    color: #888;
  }

  .pz-container .pz-select-area {
    background: #2d2d2d;
  }

  .pz-container .pz-label {
    color: #888;
  }

  .pz-container .pz-option {
    background: #2d2d2d;
    border-color: #4d4d4d;
  }

  .pz-container .pz-option-text {
    color: #e0e0e0;
  }

  .pz-container .pz-poem-area {
    background: #2d2d2d;
  }

  .pz-container .pz-line {
    border-color: #4d4d4d;
  }

  .pz-container .pz-line-num {
    background: #3d3d3d;
    color: #888;
  }

  .pz-container .pz-char {
    background: #2d2d2d;
    border-color: #4d4d4d;
    color: #e0e0e0;
  }

  .pz-container .pz-char:hover {
    border-color: #666;
  }

  .pz-container .pz-char-index {
    color: #666;
  }

  .pz-container .pz-char-text {
    color: #e0e0e0;
  }

  .pz-container .pz-btn-reset {
    background: #3d3d3d;
    color: #aaa;
  }

  .pz-container .pz-feedback-correct {
    background: rgba(46, 139, 87, 0.2);
    color: #5cb878;
  }

  .pz-container .pz-feedback-error {
    background: rgba(217, 83, 79, 0.2);
    color: #e8746f;
  }
}

.option-item.selected .option-radio {
  border-color: #114f74;
  background: #114f74;
}

.option-item.selected {
  border-color: #114f74;
  background: rgba(24, 144, 255, 0.04);
}

.option-item-multi.selected {
  border-color: #114f74;
  background: #e0cda3;
}

/* 按钮条件禁用样式 - 背景色#dfe1e6 文字颜色白色 */
.btn-condition-disabled {
  background-color: #dfe1e6 !important;
  color: #ffffff !important;
  border-color: #d0d3d8 !important;
}

.btn-condition-disabled:hover {
  background-color: #d0d3d8 !important;
  border-color: #c0c3c8 !important;
}

/* ========== 流畅拖动排序样式 ========== */

/* 幽灵元素 - 跟随手指移动的浮动元素 */
.is-drag-ghost {
  position: fixed !important;
  background: linear-gradient(135deg, #2a6283 0%, #1d4a63 100%) !important;
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(42, 98, 131, 0.4) !important;
  cursor: grabbing;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  z-index: 1000;
  pointer-events: none;
}

/* 九宫格组件 - 选中汉字流畅拖动样式 */
.jk-selection-char {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: grab;
}

.jk-selection-char:active {
  transform: scale(0.95);
}

.jk-selection-char.is-drag-ghost {
  background: linear-gradient(135deg, #2a6283 0%, #1d4a63 100%) !important;
  color: #fff !important;
  border-radius: 6px;
  cursor: grabbing;
  box-shadow: 0 10px 30px rgba(42, 98, 131, 0.4);
}

/* 诗词排序组件 - 选中序号流畅拖动样式 */
.poetry-sort-container .poetry-selection-num {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: grab;
}

.poetry-sort-container .poetry-selection-num:active {
  transform: scale(0.95);
}

.poetry-sort-container .poetry-selection-num.is-drag-ghost {
  background: linear-gradient(135deg, #2a6283 0%, #1d4a63 100%) !important;
  color: #fff !important;
  border-radius: 8px;
  cursor: grabbing;
  box-shadow: 0 10px 30px rgba(42, 98, 131, 0.4);
}

/* 拖动时的容器样式 */
.jk-selection-box,
.poetry-selection-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  position: relative;
}

/* 移动端触摸反馈增强 */
@media (hover: none) and (pointer: coarse) {

  .jk-selection-char,
  .poetry-sort-container .poetry-selection-num {
    -webkit-tap-highlight-color: transparent;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {

  .is-drag-ghost,
  .jk-selection-char.is-drag-ghost,
  .poetry-sort-container .poetry-selection-num.is-drag-ghost {
    background: linear-gradient(135deg, #3d6d8a 0%, #2d5a73 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}