/* 阅读语感训练独立样式（从原 HTML 提取，去掉了全局 body/html 规则，外层已隔离） */

.reading-syn-root .syn-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  color: #1c1c1a;
  font-size: 15px;
  line-height: 1.6;
}

.reading-syn-root .syn-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.reading-syn-root .syn-header .page-back-btn {
  flex-shrink: 0;
}

.reading-syn-root .syn-header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.reading-syn-root .syn-header-main > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reading-syn-root .syn-header-main .syn-tag {
  flex-shrink: 0;
  margin-top: 6px;
}

.reading-syn-root .syn-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1a1a2e;
  letter-spacing: 0.2px;
}

.reading-syn-root .syn-subtitle {
  color: #888;
  font-size: 13px;
  line-height: 1.5;
}

/* 统计条 */
.reading-syn-root .syn-stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.reading-syn-root .syn-stat-chip {
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: #888;
  white-space: nowrap;
}

.reading-syn-root .syn-stat-chip b {
  color: #1a1a2e;
  font-weight: 700;
  margin: 0 2px;
}

/* 卡片 */
.reading-syn-root .syn-card {
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.reading-syn-root .syn-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.reading-syn-root .syn-card-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

/* 标签 */
.reading-syn-root .syn-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #efeaff;
  color: #7c3aed;
  font-weight: 600;
}

.reading-syn-root .syn-tag-warn {
  background: #fff0d6;
  color: #c46b00;
}

.reading-syn-root .syn-tag-ok {
  background: #e1f5ee;
  color: #0f6e56;
}

.reading-syn-root .syn-tag-bad {
  background: #fcebeb;
  color: #a32d2d;
}

/* 模式入口卡片 */
.reading-syn-root .syn-mode-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e8e8ed;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  color: #1c1c1a;
}

.reading-syn-root .syn-mode-card:hover {
  border-color: #7c3aed;
  background: #faf8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.reading-syn-root .syn-mode-top {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a1a2e;
}

.reading-syn-root .syn-mode-title {
  font-size: 15px;
}

.reading-syn-root .syn-mode-num {
  color: #7c3aed;
  font-weight: 700;
  font-size: 14px;
}

.reading-syn-root .syn-mode-desc {
  color: #888;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}

.reading-syn-root .syn-mode-progress {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8e4f0;
}

.reading-syn-root .syn-mode-progress-bar {
  width: 100%;
  height: 6px;
  background: #f0ecf7;
  border-radius: 3px;
  overflow: hidden;
}

.reading-syn-root .syn-mode-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.reading-syn-root .syn-mode-progress-text {
  color: #888;
  font-size: 12px;
  margin-top: 6px;
}

.reading-syn-root .syn-mode-go {
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
}

.reading-syn-root .syn-mode-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.reading-syn-root .syn-mode-btn {
  flex: 1;
  padding: 10px 12px !important;
  font-size: 13px !important;
}

.reading-syn-root .syn-pos {
  color: #a09ac0;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
}

/* 进度条 */
.reading-syn-root .syn-bar {
  height: 6px;
  background: #f0f0f5;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 4px;
}

.reading-syn-root .syn-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #9333ea);
  border-radius: 3px;
  width: 100%;
  transition: width 0.1s linear;
}

.reading-syn-root .syn-bar-hot .syn-bar-fill {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
}

.reading-syn-root .syn-time-text {
  font-size: 12px;
  color: #aaa;
  text-align: right;
  margin-bottom: 8px;
}

/* L1 闪卡 */
.reading-syn-root .syn-l1-front {
  text-align: center;
  padding: 28px 0 12px;
}

.reading-syn-root .syn-l1-back {
  text-align: center;
  padding: 12px 0;
}

.reading-syn-root .syn-l1-divider {
  border-top: 1px dashed #e8e8ed;
  margin: 8px 30%;
}

.reading-syn-root .syn-big-word {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.reading-syn-root .syn-back-word {
  font-size: 24px;
  color: #7c3aed;
}

.reading-syn-root .syn-l1-zh {
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

/* 按钮 */
.reading-syn-root .syn-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.reading-syn-root .syn-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e8e8ed;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: #555;
  font-weight: 600;
  transition: all 0.2s ease;
}

.reading-syn-root .syn-btn:hover:not(:disabled) {
  border-color: #7c3aed;
  color: #7c3aed;
}

.reading-syn-root .syn-btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.reading-syn-root .syn-btn-primary:hover:not(:disabled) {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.reading-syn-root .syn-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reading-syn-root .syn-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.reading-syn-root .syn-btn-full {
  width: 100%;
}

.reading-syn-root .syn-btn-warn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #ea580c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.reading-syn-root .syn-btn-warn:hover:not(:disabled) {
  color: #fff;
  border-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

/* 错题强化/专练标签 */
.reading-syn-root .syn-review-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  vertical-align: middle;
}

.reading-syn-root .syn-review-tag-book {
  color: #c2410c !important;
  background: #ffedd5 !important;
  border-color: #fdba74 !important;
}

/* 错题列表 */
.reading-syn-root .syn-wrong-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.reading-syn-root .syn-wrong-count {
  font-size: 13px;
  color: #ea580c;
  background: #fff7ed;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.reading-syn-root .syn-wrong-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reading-syn-root .syn-wrong-item {
  background: #faf9fc;
  border: 1px solid #ece8f3;
  border-radius: 10px;
  padding: 12px 14px;
}

.reading-syn-root .syn-wrong-num {
  font-size: 12px;
  font-weight: 600;
  color: #ea580c;
  margin-bottom: 8px;
}

.reading-syn-root .syn-wrong-body {
  margin-bottom: 10px;
  line-height: 1.6;
}

.reading-syn-root .syn-wrong-word {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.reading-syn-root .syn-wrong-zh {
  font-size: 13px;
  color: #888;
}

.reading-syn-root .syn-wrong-sentence {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

.reading-syn-root .syn-wrong-l3-label {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  margin: 6px 0 3px;
}

.reading-syn-root .syn-wrong-l3-label:first-child {
  margin-top: 0;
}

.reading-syn-root .syn-wrong-answers {
  padding-top: 10px;
  border-top: 1px dashed #e0dce8;
  font-size: 13px;
  line-height: 1.8;
}

.reading-syn-root .syn-wrong-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.reading-syn-root .syn-wrong-label {
  color: #999;
  flex-shrink: 0;
  min-width: 68px;
}

.reading-syn-root .syn-wrong-bad {
  color: #dc2626;
  font-weight: 600;
}

.reading-syn-root .syn-wrong-ok {
  color: #059669;
  font-weight: 600;
}

.reading-syn-root .syn-all-right-card {
  text-align: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.reading-syn-root .syn-all-right-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #059669;
}

/* 首页模式卡片容器（按钮版） */
.reading-syn-root .syn-mode-card-box {
  cursor: default;
}

.reading-syn-root .syn-mode-card-box:hover {
  transform: none;
  border-color: #e8e8ed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reading-syn-root .syn-btn-wrong {
  background: #fff7ed;
  border-color: #fed7aa !important;
  color: #ea580c !important;
  font-weight: 600;
}

.reading-syn-root .syn-btn-wrong:hover:not(:disabled) {
  background: #ffedd5 !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
  box-shadow: none !important;
  transform: none !important;
}

.reading-syn-root .syn-btn-disabled,
.reading-syn-root .syn-btn:disabled.syn-mode-btn {
  background: #f5f5f7 !important;
  border-color: #e0e0e5 !important;
  color: #bbb !important;
  cursor: not-allowed;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 错题状态行 */
.reading-syn-root .syn-wrong-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px dashed #e0dce8;
  font-size: 12px;
  flex-wrap: wrap;
}

.reading-syn-root .syn-wrong-status-bad {
  color: #dc2626;
  font-weight: 600;
}

.reading-syn-root .syn-wrong-status-ok {
  color: #059669;
  font-weight: 600;
}

.reading-syn-root .syn-wrong-status-mastered {
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
}

.reading-syn-root .syn-wrong-release-btn {
  margin-left: auto;
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.reading-syn-root .syn-wrong-release-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* 幽灵按钮 */
.reading-syn-root .syn-ghost-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  margin-top: 12px;
  transition: color 0.2s;
}

.reading-syn-root .syn-ghost-btn:hover {
  color: #1a1a2e;
}

/* L2 句内识别 */
.reading-syn-root .syn-sentence {
  font-size: 16px;
  line-height: 1.9;
  color: #1c1c1a;
  margin: 12px 0 16px;
}

.reading-syn-root .syn-mark {
  background: #fff0d6;
  color: #c46b00;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

/* L2 选项内 [[关键词]] 高亮：改为紫色 */
.reading-syn-root .syn-opt mark {
  background: #efe7ff;
  color: #6b3fd4;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.reading-syn-root .syn-options {
  margin-top: 8px;
}

.reading-syn-root .syn-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e8e8ed;
  background: #fff;
  font-size: 14.5px;
  margin-top: 8px;
  cursor: pointer;
  font-family: inherit;
  color: #1c1c1a;
  transition: all 0.15s ease;
}

.reading-syn-root .syn-opt:hover:not(:disabled) {
  border-color: #7c3aed;
  background: #faf8ff;
}

.reading-syn-root .syn-opt-letter {
  font-weight: 700;
  color: #7c3aed;
  margin-right: 4px;
}

.reading-syn-root .syn-opt-right {
  background: #e1f5ee;
  border-color: #0f6e56;
  color: #0f6e56;
  font-weight: 600;
}

.reading-syn-root .syn-opt-right .syn-opt-letter {
  color: #0f6e56;
}

.reading-syn-root .syn-opt-wrong {
  background: #fcebeb;
  border-color: #a32d2d;
  color: #a32d2d;
}

.reading-syn-root .syn-opt-wrong .syn-opt-letter {
  color: #a32d2d;
}

.reading-syn-root .syn-opt:disabled {
  cursor: default;
}

/* 反馈 */
.reading-syn-root .syn-fb {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}

.reading-syn-root .syn-fb b {
  font-weight: 600;
}

.reading-syn-root .syn-fb-ok {
  background: #e1f5ee;
  color: #0f6e56;
}

.reading-syn-root .syn-fb-bad {
  background: #fcebeb;
  color: #a32d2d;
}

.reading-syn-root .syn-fb-info {
  background: #efeaff;
  color: #7c3aed;
}

.reading-syn-root .syn-fb-teach {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(15, 110, 86, 0.08);
  font-size: 12.5px;
  line-height: 1.55;
}

.reading-syn-root .syn-fb-analysis {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.08);
  font-size: 12.5px;
  line-height: 1.55;
}

.reading-syn-root .syn-fb-alt {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(234, 88, 12, 0.08);
  color: #9a3412;
  font-size: 12.5px;
  line-height: 1.55;
}

/* L3 */
.reading-syn-root .syn-l3-box {
  border: 1.5px solid #e8e8ed;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  background: #fafbfc;
}

.reading-syn-root .syn-l3-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 500;
}

.reading-syn-root .syn-pick {
  padding: 1px 4px;
  border-radius: 3px;
  cursor: pointer;
  border-bottom: 2px dotted #c5c5c0;
  transition: all 0.15s ease;
}

.reading-syn-root .syn-pick:hover {
  background: #efeaff;
  border-bottom-color: #7c3aed;
}

.reading-syn-root .syn-pick-sel {
  background: #7c3aed;
  border-bottom-color: #7c3aed;
  color: #fff;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.reading-syn-root .syn-pick-right {
  background: #10b981;
  border-bottom-color: #10b981;
  color: #fff;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.reading-syn-root .syn-pick-wrong {
  background: #ef4444;
  border-bottom-color: #ef4444;
  color: #fff;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* 结算表格 */
.reading-syn-root .syn-result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.reading-syn-root .syn-result-table th,
.reading-syn-root .syn-result-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #e8e8ed;
}

.reading-syn-root .syn-result-table th {
  color: #888;
  font-weight: 500;
  font-size: 12.5px;
}

.reading-syn-root .syn-result-table td b {
  font-size: 18px;
  color: #7c3aed;
  font-weight: 700;
}

/* 备注 */
.reading-syn-root .syn-note {
  font-size: 12.5px;
  color: #999;
  margin-top: 12px;
  line-height: 1.5;
}

/* 响应式 */
@media (max-width: 600px) {
  .reading-syn-root .syn-page {
    padding: 16px 12px 50px;
  }

  .reading-syn-root .syn-title {
    font-size: 19px;
  }

  .reading-syn-root .syn-big-word {
    font-size: 26px;
  }

  .reading-syn-root .syn-back-word {
    font-size: 20px;
  }

  .reading-syn-root .syn-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .reading-syn-root .syn-mode-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .reading-syn-root .syn-stats-row {
    gap: 6px;
  }

  .reading-syn-root .syn-stat-chip {
    padding: 4px 10px;
    font-size: 11.5px;
  }
}
