 body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f6f8fa;
  }
  .question {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
  }
  .options {
    list-style: none;
    padding: 0;
  }
  .options li {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .options button {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    text-align: left;
  }
  .options button.selected {
    border-color: #1cb0f6;
    background: #e6f7ff;
  }
  .details {
    margin-left: 10px;
    font-size: 14px;
    text-decoration: underline;
    color: #1cb0f6;
    cursor: pointer;
    flex-shrink: 0;
  }
  #check, #next {
    margin-top: 20px;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 12px;
    border: none;
    background: #1cb0f6;
    color: white;
    width: 100%;
  }
  #result {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
  }
.icon-speaker.playing {
    color: #ff6600;
    animation: shake 0.6s infinite;
}

/* ���ʵȼ��� */
.m-level-box {
  margin: 15px 10px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

/* ��������� */
.m-level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.m-level-header span {
  font-size: 15px;
  font-weight: 600;
  color: #38b0e5;
}

.m-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

.m-more:hover {
  color: #38b0e5;
}

/* �б��� */
.m-level-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ���в��� */
  gap: 10px;
}

/* ÿ�������� */
.m-level-list li {
  background: #f8f8f8;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.m-level-list li a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: #444;
  text-decoration: none;
}

.m-level-list li:hover {
  background: #38b0e5;
}

.m-level-list li:hover a {
  color: #fff;
}

/* �ȼ��� */
.levels {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===== ������ϰģ�� ===== */
.m-practice-box {
  background: #ffffff;
  padding: 16px 12px 12px 12px;
  border-radius: 12px;
  margin: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.m-practice-title {
  font-size: 16px;
  font-weight: 600;
  color: #38b0e5;
  text-align: center;
  margin-bottom: 14px;
}

/* ��ť�б� */
.m-practice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ÿ����ť */
.m-level-btn {
  display: block;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
}

/* ��ͬ�ȼ���ɫ���� */
.m-level-1 { background: linear-gradient(45deg, #6ec1e4, #4ca8de); }
.m-level-2 { background: linear-gradient(45deg, #7ecf6a, #57b84d); }
.m-level-3 { background: linear-gradient(45deg, #f4a261, #e76f51); }
.m-level-4 { background: linear-gradient(45deg, #b77ae5, #925fe0); }

.m-level-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* С��Ļ����Ӧ����Ϊһ�� */
@media (max-width: 480px) {
  .m-practice-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .m-level-btn {
    font-size: 15px;
    padding: 12px 0;
  }
}

/* �������� */
.m-word-list-container {
  width: 94%;
  margin: 15px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  padding: 10px 12px 20px;
}

/* ���� */
.m-word-list-container .m-title {
  font-size: 18px;
  font-weight: bold;
  color: #38b0e5;
  margin-bottom: 12px;
  text-align: center;
}

/* �����б� */
.m-word-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ������ */
.m-word-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  transition: background-color 0.2s;
}

.m-word-item:last-child {
  border-bottom: none;
}

.m-word-item:hover {
  background-color: #f9f9f9;
}

/* �ϰ벿�֣����� + ���Ű�ť */
.m-word-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* �������� */
.m-word {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.m-word:hover {
  color: #38b0e5;
}

/* ���Ű�ť */
.m-play-btn {
  background: #38b0e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.2s;
}

.m-play-btn:hover {
  background: #2c8ccf;
  transform: scale(1.05);
}

/* ������Ϣ */
.m-word-info {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

/* �Ѷ� */
.m-level {
  color: #38b0e5;
  font-weight: 500;
}

/* ���� */
.m-translation {
  color: #333;
  font-weight: bold;
}

/* ����ѡ�� */
.m-wrong {
  color: #999;
  font-style: italic;
}

/* ��ҳ */
.m-pagebox {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.m-pagebox a {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 4px;
  color: #38b0e5;
  border: 1px solid #38b0e5;
  text-decoration: none;
}

.m-pagebox a:hover,
.m-pagebox .current {
  background: #38b0e5;
  color: #fff;
}

.mobile-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 0;
    font-size: 14px;
}

.page-btn, .page-number {
    padding: 8px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.page-btn.disabled, .page-number.active {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-dots {
    padding: 8px 5px;
    color: #6c757d;
}

.page-btn:hover:not(.disabled),
.page-number:hover:not(.active) {
    background: #e9ecef;
    border-color: #adb5bd;
}


.page-simple {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.page-simple a {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.page-simple a:hover {
  background: #ddd;
}
