/* =========================================================================
 * style.css — Easy Spelling H5 全局样式
 * 说明：1rem = 1rpx（由 index.html 脚本动态设置根字号）
 * ========================================================================= */

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  font-size: 28rem;
}

#app {
  max-width: 750rem;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f5f5;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

button:active {
  opacity: 0.85;
}

input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

.hide {
  display: none !important;
}

/* ---------- 通用按钮 ---------- */
.btn {
  height: 90rem;
  border-radius: 12rem;
  font-size: 32rem;
  font-weight: bold;
  margin-top: 20rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-full {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}

/* =========================================================================
 * Toast 提示
 * ========================================================================= */
.toast-container {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rem;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 10rem;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 28rem;
  line-height: 1.5;
  padding: 20rem 32rem;
  border-radius: 16rem;
  box-shadow: 0 8rem 30rem rgba(0, 0, 0, 0.2);
  animation: toast-in 0.25s ease;
  transition: opacity 0.3s, transform 0.3s;
}

.toast-item.toast-hide {
  opacity: 0;
  transform: translateY(-16rem);
}

.toast-icon {
  font-size: 30rem;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-20rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
 * 确认弹窗（UI.confirmDialog）
 * ========================================================================= */
.modal-mask.confirm-mask {
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
}

.confirm-dialog {
  width: 620rem;
  border-radius: 24rem !important;
  padding: 48rem 40rem !important;
  max-height: 80vh;
  overflow-y: auto;
}

.confirm-title {
  font-size: 34rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 24rem;
}

.confirm-content {
  font-size: 28rem;
  color: #666;
  line-height: 1.7;
  text-align: center;
  white-space: pre-line;
  margin-bottom: 40rem;
}

.confirm-btns {
  display: flex;
  gap: 20rem;
}

.confirm-btns .btn-plain,
.confirm-btns .btn-primary-mini {
  flex: 1;
  height: 84rem;
  border-radius: 16rem;
  font-size: 30rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-plain {
  background: #f0f0f0;
  color: #666;
}

.btn-primary-mini {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary-mini.danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* =========================================================================
 * 副导航栏（UI.setNavbar）
 * ========================================================================= */
.sub-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4rem 16rem rgba(102, 126, 234, 0.25);
}

.sub-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20rem;
  height: 88rem;
}

.navbar-back-btn {
  width: 72rem;
  height: 72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52rem;
  color: #fff;
  font-weight: bold;
}

.navbar-title {
  font-size: 34rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.navbar-placeholder {
  width: 72rem;
}

/* =========================================================================
 * 首页（pages/index）
 * ========================================================================= */
.page-index .container {
  padding: 60rem 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80rem;
  margin-top: 60rem;
}

.page-index .logo-icon {
  font-size: 100rem;
  margin-bottom: 20rem;
}

.page-index .title {
  font-size: 56rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10rem;
}

.page-index .subtitle {
  font-size: 28rem;
  color: #8892b0;
}

.page-index .author {
  font-size: 24rem;
  color: #aaa;
  margin-top: 10rem;
}

.page-index .version {
  font-size: 22rem;
  color: #ccc;
  margin-top: 6rem;
}

.page-index .count-cards {
  display: flex;
  gap: 30rem;
  margin-bottom: 60rem;
  width: 100%;
  justify-content: center;
}

.page-index .count-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30rem;
  padding: 40rem 60rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8rem 30rem rgba(102, 126, 234, 0.3);
  min-width: 200rem;
}

.page-index .mistake-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8rem 30rem rgba(245, 87, 108, 0.3);
}

.page-index .count-num {
  font-size: 72rem;
  font-weight: bold;
  color: #fff;
}

.page-index .count-label {
  font-size: 26rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10rem;
}

.page-index .btn-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index .btn-group button {
  width: 80%;
  margin: 15rem 0;
}

.page-index .btn-primary,
.page-index .btn-meaning,
.page-index .btn-advanced,
.page-index .btn-secondary,
.page-index .btn-mistake,
.page-index .btn-home {
  color: #fff;
  border: none;
  border-radius: 50rem;
  font-size: 32rem;
  padding: 0 60rem;
  height: 90rem;
  line-height: 90rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4rem 20rem rgba(102, 126, 234, 0.3);
}

.page-index .btn-meaning {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  box-shadow: 0 4rem 20rem rgba(17, 153, 142, 0.3);
}

.page-index .btn-advanced {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
  box-shadow: 0 4rem 20rem rgba(242, 153, 74, 0.3);
}

.page-index .btn-secondary {
  background: linear-gradient(135deg, #a8a8a8 0%, #c8c8c8 100%);
  box-shadow: 0 4rem 20rem rgba(168, 168, 168, 0.3);
}

.page-index .btn-home {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4rem 20rem rgba(79, 172, 254, 0.3);
}

.page-index .tips {
  margin-top: 80rem;
  background: #fff;
  border-radius: 20rem;
  padding: 30rem 40rem;
  width: 85%;
  box-shadow: 0 4rem 20rem rgba(0, 0, 0, 0.05);
}

.page-index .tips-title {
  font-size: 28rem;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 20rem;
}

.page-index .tips-item {
  font-size: 26rem;
  color: #666;
  display: block;
  margin: 10rem 0;
  line-height: 1.6;
}

/* =========================================================================
 * 词库管理（pages/wordbank）
 * ========================================================================= */
.page-wordbank .container {
  min-height: calc(100vh - 88rem);
  background: #f5f5f5;
  padding-bottom: 40rem;
}

.page-wordbank .header-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40rem 30rem 30rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-wordbank .header-title {
  font-size: 40rem;
  font-weight: bold;
  color: #fff;
}

.page-wordbank .word-count {
  font-size: 28rem;
  color: rgba(255, 255, 255, 0.9);
}

.page-wordbank .action-bar {
  padding: 30rem;
  display: flex;
  gap: 20rem;
}

.page-wordbank .btn-add,
.page-wordbank .btn-batch {
  flex: 1;
  height: 90rem;
  font-size: 32rem;
  font-weight: bold;
  border-radius: 16rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.page-wordbank .word-list {
  padding: 0 30rem;
}

.page-wordbank .word-card {
  background: #fff;
  border-radius: 16rem;
  padding: 30rem;
  margin-bottom: 24rem;
  box-shadow: 0 4rem 20rem rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-wordbank .word-text {
  font-size: 36rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10rem;
}

.page-wordbank .syllables-row {
  display: flex;
  gap: 16rem;
  margin-bottom: 16rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-wordbank .syllable-groups-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin-bottom: 16rem;
}

.page-wordbank .syllable-group-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8rem 16rem;
}

.page-wordbank .syllable-group-word {
  font-size: 24rem;
  font-weight: 600;
  color: #667eea;
}

.page-wordbank .syllable-group-syls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8rem 16rem;
  justify-content: center;
}

.page-wordbank .syllable-item {
  font-size: 24rem;
  color: #666;
  background: #f0f0f0;
  padding: 8rem 16rem;
  border-radius: 8rem;
}

.page-wordbank .word-main {
  margin-bottom: 16rem;
  text-align: center;
}

.page-wordbank .meaning-text {
  font-size: 30rem;
  color: #666;
  margin-top: 8rem;
}

.page-wordbank .word-actions {
  display: flex;
  gap: 20rem;
}

.page-wordbank .btn-action {
  width: 72rem;
  height: 64rem;
  font-size: 26rem;
  border-radius: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-wordbank .edit-btn {
  background: #e8f0ff;
  color: #667eea;
  border: 1rem solid #667eea;
}

.page-wordbank .delete-btn {
  background: #fff0f0;
  color: #ff6b6b;
  border: 1rem solid #ff6b6b;
}

.page-wordbank .empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120rem 0;
}

.page-wordbank .empty-icon {
  font-size: 100rem;
  margin-bottom: 30rem;
}

.page-wordbank .empty-text {
  font-size: 32rem;
  color: #666;
  margin-bottom: 16rem;
}

.page-wordbank .empty-hint {
  font-size: 26rem;
  color: #999;
}

/* --- wordbank 弹窗（底部抽屉） --- */
.modal-mask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750rem;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-content {
  width: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 32rem 32rem 0 0;
  padding: 40rem 30rem 60rem;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40rem;
}

.modal-title {
  font-size: 36rem;
  font-weight: bold;
  color: #333;
}

.modal-close {
  font-size: 50rem;
  color: #999;
  padding: 10rem 20rem;
  cursor: pointer;
}

.form-item {
  margin-bottom: 30rem;
}

.form-label {
  font-size: 28rem;
  color: #666;
  margin-bottom: 12rem;
  display: block;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-input {
  width: 100%;
  height: 90rem;
  background: #f8f8f8;
  border-radius: 12rem;
  padding: 0 24rem;
  font-size: 32rem;
  color: #333;
  box-sizing: border-box;
  border: 2rem solid transparent;
}

.form-input:focus {
  background: #fff;
  border-color: #667eea;
}

.ai-btn {
  font-size: 24rem;
  padding: 8rem 20rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 20rem;
  line-height: 1.5;
}

.syllable-btns {
  display: flex;
  align-items: center;
  gap: 20rem;
  background: #f0f0f0;
  padding: 10rem 20rem;
  border-radius: 8rem;
}

.syllable-btn {
  font-size: 36rem;
  color: #667eea;
  font-weight: bold;
  padding: 0 10rem;
  cursor: pointer;
}

.syllable-count {
  font-size: 32rem;
  color: #333;
  font-weight: bold;
  min-width: 40rem;
  text-align: center;
}

.syllable-input-list {
  margin-bottom: 30rem;
}

/* 词组音节分组（编辑单词弹窗：每个单词一组） */
.syllable-group {
  border: 1px dashed #d5daf5;
  border-radius: 12rem;
  padding: 20rem;
  margin-bottom: 24rem;
  background: #fafbfe;
}

.syllable-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16rem;
  gap: 16rem;
}

.syllable-group-label {
  font-size: 28rem;
  font-weight: bold;
  color: #667eea;
  word-break: break-all;
  flex: 1;
}

.syllable-tip {
  font-size: 22rem;
  color: #999;
}

.syllable-group:last-of-type .syllable-input-list {
  margin-bottom: 0;
}

.syllable-input-item {
  margin-bottom: 20rem;
}

.input-label {
  font-size: 26rem;
  color: #999;
  margin-bottom: 8rem;
  display: block;
}

/* 批量弹窗 */
.batch-hint {
  background: #f8f9fa;
  border-radius: 12rem;
  padding: 24rem;
  margin-bottom: 30rem;
  border-left: 6rem solid #667eea;
}

.hint-title {
  font-size: 28rem;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 12rem;
}

.hint-content {
  font-size: 24rem;
  color: #666;
  display: block;
  line-height: 1.8;
  white-space: pre-line;
}

.batch-textarea {
  width: 100%;
  min-height: 400rem;
  background: #f8f8f8;
  border-radius: 12rem;
  padding: 24rem;
  font-size: 28rem;
  color: #333;
  box-sizing: border-box;
  border: 2rem solid #e0e0e0;
}

/* 底部功能按钮 */
.bottom-actions {
  padding: 30rem;
  background: #f5f5f5;
  margin-top: 20rem;
  padding-bottom: calc(30rem + env(safe-area-inset-bottom));
}

.btn-generate-qr,
.btn-delete-all {
  width: 100%;
  height: 90rem;
  font-size: 32rem;
  font-weight: bold;
  border-radius: 16rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-generate-qr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-delete-all {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  margin-top: 20rem;
}

/* 导入词库弹窗（全屏大窗） */
.import-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750rem;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.import-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.import-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.import-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

.import-modal-title {
  font-size: 36rem;
  font-weight: bold;
  color: #fff;
}

.import-modal-close {
  font-size: 60rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1;
  cursor: pointer;
}

.import-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30rem;
  overflow: hidden;
}

.import-hint {
  flex-shrink: 0;
  margin-bottom: 20rem;
}

.import-hint-text {
  font-size: 28rem;
  color: #666;
}

.import-textarea {
  flex: 1;
  width: 100%;
  min-height: 400rem;
  background: #f8f8f8;
  border-radius: 12rem;
  padding: 20rem;
  font-size: 26rem;
  color: #333;
  box-sizing: border-box;
  border: 2rem solid #e0e0e0;
  word-break: break-all;
}

.import-submit-btn {
  flex-shrink: 0;
  width: 100%;
  height: 90rem;
  margin-top: 30rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 32rem;
  font-weight: bold;
  border-radius: 12rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 分享码弹窗 */
.share-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.share-modal-content {
  position: relative;
  width: 90%;
  max-width: 600rem;
  background: #fff;
  border-radius: 24rem;
  overflow: hidden;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-modal-title {
  font-size: 36rem;
  font-weight: bold;
  color: #fff;
}

.share-modal-close {
  font-size: 60rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1;
  cursor: pointer;
}

.share-modal-body {
  padding: 30rem;
}

.share-code-box {
  margin-bottom: 30rem;
}

.share-code-label {
  display: block;
  font-size: 28rem;
  color: #666;
  margin-bottom: 16rem;
}

.share-code-textarea {
  width: 100%;
  height: 200rem;
  background: #f8f8f8;
  border-radius: 12rem;
  padding: 20rem;
  font-size: 24rem;
  color: #333;
  box-sizing: border-box;
  border: 2rem solid #e0e0e0;
  white-space: nowrap;
  overflow: auto;
  word-break: break-all;
}

.share-btn {
  width: 100%;
  height: 90rem;
  font-size: 32rem;
  font-weight: bold;
  border-radius: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20rem;
}

.copy-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}

/* 批量确认弹窗 */
.batch-review-modal {
  z-index: 1001;
}

.review-hint {
  background: #fff8e1;
  border-radius: 12rem;
  padding: 24rem;
  margin-bottom: 30rem;
  border-left: 6rem solid #f2c94c;
}

.review-translating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12rem;
  background: #e3f2fd;
  border-radius: 12rem;
  padding: 20rem;
  margin-bottom: 24rem;
}

.review-translating-icon {
  font-size: 32rem;
}

.review-translating-text {
  font-size: 26rem;
  color: #1976d2;
}

.review-retry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff3e0;
  border-radius: 12rem;
  padding: 16rem 24rem;
  margin-bottom: 24rem;
  border: 1rem solid #ffe0b2;
}

.review-retry-hint {
  font-size: 26rem;
  color: #e65100;
  flex: 1;
}

.review-retry-btn {
  font-size: 26rem;
  color: #fff;
  background: #ff6f00;
  border-radius: 10rem;
  padding: 12rem 28rem;
  border: none;
  white-space: nowrap;
}

.review-ai-btn {
  font-size: 22rem;
  color: #1976d2;
  background: #e3f2fd;
  border-radius: 8rem;
  padding: 4rem 16rem;
  border: 1rem solid #bbdefb;
  line-height: 1.4;
}

.review-list {
  margin-bottom: 30rem;
  max-height: 60vh;
  overflow-y: auto;
}

.review-item {
  margin-bottom: 10rem;
}

.review-word-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rem;
}

.review-word {
  font-size: 36rem;
  font-weight: bold;
  color: #667eea;
}

.review-index {
  font-size: 24rem;
  color: #999;
  background: #f0f0f0;
  padding: 4rem 16rem;
  border-radius: 20rem;
}

.review-field {
  margin-bottom: 20rem;
}

.review-label {
  font-size: 26rem;
  color: #666;
  display: block;
  margin-bottom: 10rem;
}

.review-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10rem;
}

.review-label-row .review-label {
  margin-bottom: 0;
}

.review-input {
  width: 100%;
  height: 80rem;
  background: #f8f8f8;
  border-radius: 12rem;
  padding: 0 20rem;
  font-size: 30rem;
  color: #333;
  box-sizing: border-box;
  border: 2rem solid transparent;
}

.review-input:focus {
  background: #fff;
  border-color: #667eea;
}

.review-syl-btns {
  display: flex;
  align-items: center;
  gap: 16rem;
  background: #f0f0f0;
  padding: 6rem 16rem;
  border-radius: 8rem;
}

.review-syl-btn {
  font-size: 32rem;
  font-weight: bold;
  color: #667eea;
  padding: 0 8rem;
  cursor: pointer;
}

.review-syl-count {
  font-size: 28rem;
  color: #333;
  font-weight: bold;
  min-width: 36rem;
  text-align: center;
}

.review-syl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem;
}

.review-syl-input {
  flex: 1;
  min-width: 140rem;
  height: 75rem;
  background: #f8f8f8;
  border-radius: 10rem;
  padding: 0 16rem;
  font-size: 28rem;
  color: #333;
  box-sizing: border-box;
  border: 2rem solid transparent;
}

.review-syl-input:focus {
  background: #fff;
  border-color: #667eea;
}

/* 批量确认：词组按单词上下分开 */
.review-phrase-words {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.review-phrase-word {
  font-size: 30rem;
  font-weight: bold;
  color: #667eea;
  line-height: 1.3;
}

.review-syl-group {
  margin-bottom: 10rem;
}

.review-syl-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6rem;
}

.review-syl-group-label {
  display: block;
  font-size: 22rem;
  color: #667eea;
  font-weight: 600;
}

.review-syl-group-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem;
}

.review-divider {
  height: 1rem;
  background: #e8e8e8;
  margin: 20rem 0 10rem;
}

/* 404 页 */
.page-404 {
  text-align: center;
  padding: 200rem 40rem;
}

.page-404 h2 {
  font-size: 40rem;
  color: #666;
  margin-bottom: 40rem;
}

.page-404 button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 40rem;
  padding: 20rem 60rem;
  font-size: 30rem;
}
