:root {
  --primary: #FF6B6B;
  --secondary: #4ECDC4;
  --warning: #FFE66D;
  --success: #51CF66;
  --bg: #FFF5E6;
  --card-bg: #fff;
  --text: #333;
  --text-secondary: #888;
  --border: #E0E0E0;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 20px;
}

[data-theme="dark"] {
  --bg: #1a1a2e;
  --card-bg: #16213e;
  --text: #e0e0e0;
  --text-secondary: #999;
  --border: #2a2a4a;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

#app>div:first-child {
  height: 100%;
  overflow: auto;
  padding: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 1em;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all .2s;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15)
}

.btn:active {
  transform: translateY(0)
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4)
}

.btn-secondary {
  background: var(--secondary);
  color: #fff
}

.btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4)
}

.btn-warning {
  background: var(--warning);
  color: #8B6914
}

.btn-warning:hover {
  box-shadow: 0 4px 12px rgba(255, 230, 109, 0.4)
}

.btn-danger {
  background: #E03131;
  color: #fff
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(224, 49, 49, 0.4)
}

.btn-sm {
  padding: 6px 14px;
  font-size: .85em
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1em
}

.btn-block {
  display: flex;
  width: 100%
}

.btn.disabled,
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text)
}

html,
body,
#app,
.admin-layout {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  padding: 20px 0;
  position: relative
}

header h1 {
  font-size: 2em;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1)
}

header .subtitle {
  font-size: 1em;
  color: var(--text-secondary);
  margin-top: 5px
}

.back-btn {
  position: absolute;
  left: 0;
  top: 20px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: all .2s;
  font-weight: bold
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4)
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform .2s
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12)
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px
}

@media(min-width:600px) {
  .home-grid {
    grid-template-columns: 1fr 1fr 1fr
  }
}

.home-card {
  text-align: center;
  padding: 12px;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all .3s;
  border: 3px solid transparent
}

.home-card.done {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--card-bg), #F0FFF4)
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15)
}

.home-card .icon {
  font-size: 4em;
  margin-bottom: 15px
}

.home-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.home-card .desc {
  color: var(--text-secondary);
  font-size: .95em;
  margin-bottom: 15px
}

.stars {
  font-size: 1.5em;
  letter-spacing: 5px
}

.stars .filled {
  color: var(--warning)
}

.stars .empty {
  color: #E0E0E0
}

.exam-section {
  text-align: center;
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, var(--bg), #FFE0E6);
  border-radius: var(--radius);
  border: 2px dashed var(--primary)
}

.exam-section.locked {
  opacity: .6;
  border-color: #ccc
}

.exam-section .exam-icon {
  font-size: 3em;
  margin-bottom: 10px
}

.exam-section h2 {
  font-size: 1.8em;
  color: var(--primary);
  margin-bottom: 10px
}

.exam-checklist {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap
}

.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1em;
  font-weight: bold;
  color: #999;
  padding: 8px 16px;
  border-radius: 50px;
  background: #F5F5F5
}

.check-item.done {
  color: #2B8A3E;
  background: #E9F9EE
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.tab {
  background: #F0F0F0;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  font-weight: bold;
  color: #666
}

.tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3)
}

.tab:hover:not(.active) {
  background: #E0E0E0
}

.math-question {
  text-align: center;
}

.math-question .big {
  font-size: 4em;
  font-weight: bold;
  color: var(--text);
  margin: 20px 0
}

.math-question .prompt {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 10px
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 400px;
  margin: 20px auto
}

.option-btn {
  background: #F8F8F8;
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit
}

.option-btn:hover {
  border-color: var(--secondary);
  background: #F0FFFE
}

.option-btn.correct {
  border-color: var(--success);
  background: #E9F9EE;
  color: #2B8A3E
}

.option-btn.wrong {
  border-color: var(--primary);
  background: #FFE9E9;
  color: #C92A2A
}

.option-btn:disabled {
  cursor: default
}

.shape-option {
  font-size: 3em;
  padding: 10px
}

.feedback {
  margin-top: 20px;
  padding: 15px;
  border-radius: 16px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center
}

.feedback.correct {
  background: #E9F9EE;
  color: #2B8A3E;
  border: 2px solid var(--success)
}

.feedback.wrong {
  background: #FFE9E9;
  color: #C92A2A;
  border: 2px solid var(--primary)
}

.progress-bar {
  background: #F0F0F0;
  border-radius: 50px;
  height: 20px;
  overflow: hidden;
  margin: 15px 0
}

.progress-bar .fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--secondary), var(--warning));
  transition: width .5s ease
}

.progress-text {
  text-align: center;
  font-size: .9em;
  color: var(--text-secondary);
  margin-top: 5px
}

.pinyin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px
}

.pinyin-card {
  background: #F8F8F8;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit
}

.pinyin-card:hover {
  border-color: var(--secondary);
  background: #F0FFFE;
  transform: translateY(-2px)
}

.pinyin-card .pinyin {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text)
}

.pinyin-card .example {
  font-size: .8em;
  color: var(--text-secondary);
  margin-top: 5px
}

.pinyin-card .play-hint {
  font-size: .7em;
  color: var(--secondary);
  margin-top: 3px
}

.hanzi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px
}

.hanzi-card {
  background: #F8F8F8;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s
}

.hanzi-card:hover {
  border-color: var(--primary);
  background: #FFF5F5;
  transform: translateY(-2px)
}

.hanzi-card .char {
  font-size: 2em;
  font-weight: bold;
  color: var(--text)
}

.hanzi-card .pinyin-label {
  font-size: .75em;
  color: var(--text-secondary);
  margin-top: 5px
}

.hanzi-card .poly-badge {
  font-size: .6em;
  background: var(--warning);
  color: #8B6914;
  border-radius: 50px;
  padding: 2px 8px;
  margin-top: 3px;
  display: inline-block
}

.hanzi-detail {
  text-align: center
}

.hanzi-detail .big-char {
  font-size: 6em;
  font-weight: bold;
  color: var(--text);
  margin: 10px 0;
  line-height: 1.2
}

.hanzi-detail .pinyin-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap
}

.hanzi-detail .pinyin-tag {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 1.2em;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  font-weight: bold
}

.hanzi-detail .pinyin-tag.active {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3)
}

.hanzi-detail .pinyin-tag:hover {
  transform: translateY(-2px)
}

.hanzi-detail .meaning {
  font-size: 1.1em;
  color: #666;
  margin: 10px 0
}

.hanzi-detail .examples {
  font-size: 1em;
  color: var(--text-secondary);
  margin: 5px 0
}

.hanzi-detail .info-row {
  font-size: .9em;
  color: #999;
  margin: 5px 0
}

#hanzi-writer-container {
  width: 250px;
  height: 250px;
  margin: 10px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.control-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap
}

.exam-progress {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px
}

.exam-progress .num {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary)
}

.exam-question {
  text-align: center;
  padding: 30px 20px
}

.exam-question .q-label {
  font-size: .9em;
  color: #999;
  margin-bottom: 5px
}

.exam-question .q-text {
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 0;
  line-height: 1.4
}

.exam-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
  margin: 20px auto
}

.exam-option {
  background: #F8F8F8;
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  font-size: 1.3em;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  font-weight: bold;
  text-align: center
}

.exam-option:hover {
  border-color: var(--secondary);
  background: #F0FFFE
}

.exam-option.selected {
  border-color: var(--primary);
  background: #FFF5F5
}

.exam-option:disabled {
  cursor: default
}

.exam-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px
}

.exam-nav .dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center
}

.exam-nav .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E0E0E0;
  transition: all .2s
}

.exam-nav .dot.answered {
  background: var(--secondary)
}

.exam-nav .dot.current {
  background: var(--primary);
  transform: scale(1.3)
}

.result-page {
  text-align: center;
  padding: 20px
}

.result-page .score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--warning), #FFF0A0);
  border: 4px solid var(--warning)
}

.result-page .score-circle .score-num {
  font-size: 3.5em;
  font-weight: bold;
  color: #8B6914
}

.result-page .score-circle .score-label {
  font-size: 1em;
  color: #8B6914
}

.result-page .grade {
  font-size: 1.5em;
  font-weight: bold;
  margin: 15px 0
}

.result-page .grade.excellent {
  color: var(--success)
}

.result-page .grade.good {
  color: var(--secondary)
}

.result-page .grade.fair {
  color: var(--warning)
}

.result-page .grade.poor {
  color: var(--primary)
}

.result-detail {
  margin-top: 20px;
  text-align: left
}

.result-detail .cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0
}

.result-detail .cat-row .cat-name {
  font-weight: bold
}

.result-detail .cat-row .cat-score {
  font-size: 1.1em
}

.wrong-review {
  margin-top: 20px;
  text-align: left
}

.wrong-review .wrong-item {
  background: #FFF5F5;
  border: 2px solid #FFE0E0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px
}

.wrong-review .wrong-item .wi-q {
  font-weight: bold;
  margin-bottom: 5px
}

.wrong-review .wrong-item .wi-a {
  color: var(--success)
}

.wrong-review .wrong-item .wi-y {
  color: var(--primary);
  text-decoration: line-through
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-in {
  animation: fadeIn .3s ease
}

@keyframes bounce {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.05)
  }
}

.bounce {
  animation: bounce .3s ease
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1
  }

  100% {
    transform: translateY(200px) rotate(720deg);
    opacity: 0
  }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  animation: confetti 2s ease forwards;
  z-index: 999
}

.admin-table {
  width: 100%;
  border-collapse: collapse
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border)
}

.admin-table th {
  background: #F5F5F5;
  font-weight: bold;
  color: var(--text-secondary)
}

.admin-table tr:hover {
  background: #F8F8F8
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center
}

.admin-toolbar .search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1em;
  font-family: inherit
}

.admin-toolbar .search-input:focus {
  outline: none;
  border-color: var(--secondary)
}

.admin-content {
  max-width: 1200px;
  margin: 0 auto
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px
}

.login-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px
}

.login-card h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 1.8em
}

.form-group {
  margin-bottom: 20px
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-secondary)
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color .2s
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary)
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text)
}

.form-group select:focus {
  outline: none;
  border-color: var(--secondary)
}

.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
  min-height: 80px
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary)
}

.admin-layout {
  display: flex;
  min-height: calc(100vh - 40px)
}

.admin-sidebar {
  width: 220px;
  background: var(--card-bg);
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.sidebar-header h3 {
  color: var(--primary);
  font-size: 1.2em;
  margin: 0
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0
}

.logout-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 2px 12px;
  font-size: .75em;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  margin-left: 8px;
  vertical-align: middle
}

.logout-btn:hover {
  background: var(--primary);
  color: #fff
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 8px
}

.sidebar-close:hover {
  background: #F0F0F0
}

.admin-sidebar a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 5px;
  transition: all .2s;
  cursor: pointer
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--bg);
  color: var(--primary);
  font-weight: bold
}

.admin-main {
  flex: 1;
  padding: 30px;
  position: relative;
  height: 100%;
  overflow: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--text);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10
}

.menu-toggle:hover {
  background: #F0F0F0
}

.sidebar-overlay {
  display: none
}

.admin-main h2 {
  color: var(--primary);
  margin-bottom: 20px
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto
}

.modal-content h3 {
  color: var(--primary);
  margin-bottom: 20px
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary)
}

.empty-state .icon {
  font-size: 3em;
  margin-bottom: 10px
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap
}

.page-btn {
  background: #F0F0F0;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .85em;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all .2s;
  min-width: 32px;
  text-align: center
}

.page-btn:hover {
  background: #E0E0E0
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: bold
}

.page-btn:disabled {
  opacity: .4;
  cursor: default
}

.page-info {
  font-size: .85em;
  color: var(--text-secondary);
  margin-right: 8px
}

@media(max-width:600px) {
  #app {
    padding: 10px
  }

  header h1 {
    font-size: 1.4em;
    padding: 0 50px
  }

  .back-btn {
    font-size: .85em;
    padding: 8px 14px;
  }

  .card {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px
  }

  .home-card .icon {
    font-size: 2.5em
  }

  .home-card h3 {
    font-size: 1.1em
  }

  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .exam-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .math-question .big {
    font-size: 2.8em
  }

  .admin-layout {
    flex-direction: column
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 1001;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15)
  }

  .admin-sidebar.show {
    transform: translateX(0)
  }

  .sidebar-header {
    margin-bottom: 20px
  }

  .sidebar-close {
    display: block
  }

  .admin-sidebar a {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: .9em;
    flex-shrink: 0
  }

  .admin-sidebar h3 {
    display: block
  }

  .admin-main {
    padding: 12px;
    padding-top: 0
  }

  .admin-main h2 {
    font-size: 1.3em;
    margin-bottom: 14px;
    padding-right: 40px
  }

  .menu-toggle {
    display: block
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000
  }

  .admin-toolbar {
    flex-direction: column
  }

  .admin-toolbar .search-input {
    min-width: 0;
    width: 100%
  }

  .admin-toolbar .btn {
    width: 100%;
    justify-content: center
  }

  .card:has(.admin-table) {
    overflow-x: auto;
    padding: 0
  }

  .card:has(.admin-table) .admin-table {
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
    font-size: .82em
  }

  .admin-table .btn-sm {
    padding: 4px 10px;
    font-size: .78em
  }

  .modal-content {
    padding: 20px;
    max-height: 90vh
  }

  .modal-actions {
    flex-direction: column
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center
  }

  .home-grid.dashboard-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px
  }

  .pinyin-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr))
  }

  .hanzi-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr))
  }

  .hanzi-detail .big-char {
    font-size: 3.5em
  }

  .exam-nav .dots {
    display: none
  }

  .result-page .score-circle {
    width: 140px;
    height: 140px
  }

  .result-page .score-circle .score-num {
    font-size: 2.8em
  }

  #app>div:first-child {
    padding: 0;
  }
}