:root {
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-dark: #4F46E5;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ Header ============ */
.header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-top {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.greeting-text h1 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

.greeting-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.7;
}

.icon-btn:hover {
  opacity: 1;
}

.icon-btn:active {
  transform: scale(0.92);
  opacity: 1;
}

/* Progress */
.progress-section {
  padding: 0 20px 14px;
}

.progress-card {
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: white;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 13px;
  opacity: 0.9;
}

.progress-value {
  font-size: 22px;
  font-weight: 700;
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: white;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.8;
}

/* Category Tabs */
.category-scroll {
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  gap: 8px;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.cat-chip:active {
  transform: scale(0.95);
}

.cat-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ============ Main ============ */
.main {
  padding: 0 16px 100px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeUp 0.3s ease-out;
}

.sub-section {
  display: none;
}

.sub-section.active {
  display: block;
  animation: fadeUp 0.3s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Calc */
.calc-hero {
  background: linear-gradient(135deg, #818CF8, #A78BFA);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: white;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.calc-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.calc-mode-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.calc-expression {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.calc-hint {
  font-size: 13px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.calc-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-input {
  flex: 1;
  height: 50px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.2s;
  color: var(--text);
  background: var(--surface);
}

.calc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.calc-input.correct {
  border-color: var(--success);
  background: var(--success-light);
}

.calc-input.wrong {
  border-color: var(--danger);
  background: var(--danger-light);
}

.calc-submit-btn {
  height: 50px;
  padding: 0 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-submit-btn:active {
  transform: scale(0.96);
  background: var(--primary-dark);
}

.calc-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.calc-mode-btn {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.calc-mode-btn:active {
  transform: scale(0.95);
}

.calc-mode-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Stats */
.calc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Idiom Hero */
.idiom-hero {
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border-radius: var(--radius);
  padding: 24px 20px;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #C7D2FE;
}

.idiom-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 180px;
  height: 180px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 50%;
}

.idiom-main {
  position: relative;
  z-index: 1;
}

.idiom-chars {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.idiom-pinyin {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.idiom-divider {
  height: 1px;
  background: #C7D2FE;
  margin: 14px 0;
}

.idiom-meaning {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.idiom-example {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid #A5B4FC;
}

.idiom-source {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.idiom-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.idiom-nav-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid #A5B4FC;
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.idiom-nav-btn:active {
  transform: scale(0.95);
  background: #EEF2FF;
}

.idiom-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.calc-start-btn {
  padding: 12px 36px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.calc-start-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.4);
}

/* News */
.news-expandable {
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
}

.news-expandable:last-child {
  border-bottom: none;
}

.news-expandable .news-item {
  padding: 14px 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-expandable .news-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
}

/* 覆盖时政题目中后端返回的内联样式 */
.news-expandable .news-title * {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

.news-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 8px;
}

.news-expandable.expanded .news-arrow {
  transform: rotate(90deg);
}

.news-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 0;
}

/* 覆盖解析/详情中后端返回的内联样式 */
.news-detail * {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--text-secondary) !important;
}

.news-detail p,
.news-detail div,
.news-detail span {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
}

.news-detail p:last-child,
.news-detail div:last-child {
  margin-bottom: 0 !important;
}

.news-expandable.expanded .news-detail {
  max-height: 800px;
  padding: 0 0 14px 0;
}

/* 时政答题 - 题目导航 */
.news-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* 时政答题 - 题目题干区域（保留后端HTML格式） */
.news-stem {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.news-stem p {
  margin: 0 0 10px 0;
}

.news-stem p:last-child {
  margin-bottom: 0;
}

.news-stem br {
  display: block;
  content: "";
  margin: 0;
  height: 0;
}

.news-stem strong {
  font-weight: 700;
}

.news-stem img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}

.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--bg);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item:first-child {
  padding-top: 0;
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.tag-hot {
  background: #FEE2E2;
  color: #DC2626;
}

.tag-policy {
  background: #DBEAFE;
  color: #2563EB;
}

.tag-tech {
  background: #D1FAE5;
  color: #059669;
}

.tag-rural {
  background: #EDE9FE;
  color: #7C3AED;
}

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.news-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Key Points */
.key-point-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg);
}

.key-point-item:last-child {
  border-bottom: none;
}

.key-point-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.key-point-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* 申论日期选择器 */
.essay-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.essay-date-select {
  flex: 1;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: white;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.essay-date-arrow {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: white;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.essay-date-arrow:active {
  background: var(--bg);
}

/* 申论内容段落 */
.essay-paragraph {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
  text-indent: 2em;
}

.essay-paragraph:last-child {
  margin-bottom: 0;
}

/* 解析框 */
.essay-analysis-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
  border-left: 3px solid var(--primary);
}

.essay-analysis-box .analysis-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.essay-analysis-box .analysis-item {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.essay-analysis-box .analysis-item:last-child {
  margin-bottom: 0;
}

.essay-analysis-box .analysis-tag {
  flex-shrink: 0;
  padding: 0px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  line-height: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.essay-analysis-box .analysis-text {
  color: var(--text-secondary);
}

/* 要闻简报 */
.essay-policy-brief {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg);
}

.essay-policy-brief:last-child {
  border-bottom: none;
}

.essay-policy-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
}

.essay-policy-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* 规范词卡片 */
.essay-vocab-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--bg);
}

.essay-vocab-item:last-child {
  border-bottom: none;
}

.essay-vocab-term {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.essay-vocab-explain {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 核心语录 */
.essay-quote-box {
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}

.essay-quote-box .quote-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.essay-quote-box .quote-themes {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.essay-quote-box .quote-theme-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

/* 热点/榜样图片 */
.essay-section-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
  object-fit: cover;
  max-height: 200px;
}

.essay-img-caption {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Essay */
.essay-hero {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  border-radius: var(--radius);
  padding: 24px 20px;
  color: white;
  margin-bottom: 12px;
}

.essay-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.essay-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.essay-meta {
  font-size: 12px;
  opacity: 0.7;
}

.essay-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
  width: fit-content;
  margin: 0 auto;
}

.essay-read-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.essay-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.essay-body p {
  margin-bottom: 14px;
  text-indent: 2em;
}

.essay-body p:last-child {
  margin-bottom: 0;
}

.essay-body div {
  text-indent: 0;
}

.essay-highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(99, 102, 241, 0.15) 60%);
  padding: 0 2px;
  font-weight: 500;
}

.quote-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  cursor: pointer;
}

.quote-item:last-child {
  margin-bottom: 0;
}

.quote-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.quote-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Quiz & Reading */
.question-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.q-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.q-dot.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.q-dot.answered {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

.q-dot.wrong-dot {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.question-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.option-item {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-item:active {
  transform: scale(0.98);
}

.option-item.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.option-item.correct {
  border-color: var(--success);
  background: var(--success-light);
}

.option-item.wrong {
  border-color: var(--danger);
  background: var(--danger-light);
}

.option-letter {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-item.selected .option-letter {
  background: var(--primary);
  color: white;
}

.option-item.correct .option-letter {
  background: var(--success);
  color: white;
}

.option-item.wrong .option-letter {
  background: var(--danger);
  color: white;
}

.option-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.explain-box {
  margin-top: 16px;
  padding: 16px;
  background: var(--warning-light);
  border-radius: var(--radius-sm);
  display: none;
}

.explain-box.show {
  display: block;
  animation: fadeUp 0.3s ease-out;
}

.explain-header {
  font-size: 14px;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.explain-body {
  font-size: 13px;
  color: #78350F;
  line-height: 1.7;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.nav-btn {
  flex: 1;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-btn:active {
  transform: scale(0.97);
  background: var(--bg);
}

.nav-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.nav-btn.primary:active {
  background: var(--primary-dark);
}

.timer-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.passage-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}

.blank-slot {
  display: inline-block;
  min-width: 60px;
  border-bottom: 2px dashed var(--primary);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

/* Words */
.words-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  flex: 1;
  min-width: 45%;
}

.word-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.word-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.word-cat {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.word-explanation {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.word-usage {
  font-size: 11px;
  color: var(--primary);
  margin-top: 4px;
}

.words-pagination {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* My Page */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stats-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stats-item .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stats-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chart-container {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.chart-bar-track {
  flex: 1;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  min-width: 30px;
}

.chart-bar-value {
  font-size: 12px;
  color: var(--text-secondary);
  width: 40px;
  text-align: left;
  flex-shrink: 0;
}

.streak-card {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ncai-room-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  margin-left: auto;
}

.ncai-room-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.4);
}

.calc-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.calc-timer-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.calc-avg-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.calc-question-num {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
}

.hotboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hotboard-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hotboard-card-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}

.calc-start-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.4);
}

.hotboard-card-icon {
  font-size: 16px;
}

.hotboard-card-title {
  font-size: 14px;
  font-weight: 700;
}

.hotboard-card-body {
  padding: 8px 10px;
  max-height: 260px;
  overflow-y: auto;
}

.hotboard-card-body::-webkit-scrollbar {
  width: 3px;
}

.hotboard-card-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.hotboard-loading {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.hotboard-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
}

.hotboard-item:last-child {
  border-bottom: none;
}

.hotboard-item:active {
  opacity: 0.7;
}

.hotboard-idx {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}

.hotboard-idx.top1 {
  background: #EF4444;
}

.hotboard-idx.top2 {
  background: #F59E0B;
}

.hotboard-idx.top3 {
  background: #6366F1;
}

.hotboard-idx.top-other {
  background: #CBD5E1;
}

.hotboard-item-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Reader */
.article-reader {
  padding: 0 0 20px;
}

.article-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 8px;
}

.article-back-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.article-back-btn:active {
  transform: scale(0.95);
  background: var(--bg);
}

.article-reader-source {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.article-reader-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 0 4px;
}

.article-reader-body {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.article-reader-body p {
  margin-bottom: 14px;
  text-indent: 2em;
}

.article-reader-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
  text-indent: 0;
}

.article-reader-body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: #F8FAFC;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Words Filter */
.words-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.words-filter-row::-webkit-scrollbar {
  display: none;
}

.words-filter-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.words-filter-btn:active {
  transform: scale(0.95);
}

.words-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.news-feed-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  transition: background 0.2s;
}

.news-feed-item:last-child {
  border-bottom: none;
}

.news-feed-idx {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.news-feed-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.streak-icon {
  font-size: 48px;
}

.streak-info .streak-num {
  font-size: 32px;
  font-weight: 700;
}

.streak-info .streak-label {
  font-size: 13px;
  opacity: 0.9;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg);
}

.history-item:last-child {
  border-bottom: none;
}

.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.history-date {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.history-time {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* Bottom Tab */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.tab-item.active {
  color: var(--primary);
}

.tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-label {
  font-size: 10px;
  font-weight: 500;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  text-align: center;
  max-width: 80%;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Animations */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  20% {
    transform: translateX(-4px)
  }

  40% {
    transform: translateX(4px)
  }

  60% {
    transform: translateX(-3px)
  }

  80% {
    transform: translateX(3px)
  }
}

@keyframes pulse {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.02)
  }

  100% {
    transform: scale(1)
  }
}

.shake {
  animation: shake 0.4s ease;
}

.pulse {
  animation: pulse 0.3s ease;
}

/* 累计总览 */
.cumulative-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cum-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.cum-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.cum-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 学习日历 */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.calendar-header span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
  text-align: center;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-nav-btn:active {
  background: var(--border);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.calendar-weekdays span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  color: var(--text-muted);
  position: relative;
}

.cal-day.today {
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cal-day.has-study {
  background: var(--success-light);
  color: var(--success);
  font-weight: 600;
}

.cal-day.empty {
  color: transparent;
}

.cal-day .cal-dot {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--success);
}

/* 薄弱板块提示 */
.weak-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #FEF2F2;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--danger);
  margin-bottom: 10px;
}

.weak-item:last-child {
  margin-bottom: 0;
}

.weak-item .weak-icon {
  font-size: 20px;
}

.weak-item .weak-info {
  flex: 1;
}

.weak-item .weak-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.weak-item .weak-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.weak-item .weak-rate {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
}

/* 本周趋势图 */
.trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding: 10px 0;
  gap: 6px;
}

.trend-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.trend-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  transition: height 0.5s ease;
  min-height: 4px;
}

.trend-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.trend-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
}

/* Responsive */
@media (min-width: 768px) {
  .main {
    max-width: 480px;
    margin: 0 auto;
  }

  .header {
    max-width: 480px;
    margin: 0 auto;
  }

  .tab-bar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* ============ Dark Mode ============ */
body.dark {
  --primary: #818CF8;
  --primary-light: #A5B4FC;
  --primary-dark: #6366F1;
  --success: #34D399;
  --success-light: #064E3B;
  --warning: #FBBF24;
  --warning-light: #78350F;
  --danger: #F87171;
  --danger-light: #7F1D1D;
  --bg: #0F172A;
  --surface: #1E293B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

body.dark .idiom-hero {
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  border-color: #4338CA;
}

body.dark .idiom-divider {
  background: #4338CA;
}

body.dark .idiom-nav-btn {
  background: #1E293B;
  border-color: #6366F1;
  color: var(--primary);
}

body.dark .idiom-nav-btn:active {
  background: #312E81;
}

body.dark .idiom-example {
  border-left-color: #6366F1;
}

body.dark .progress-card {
  background: linear-gradient(135deg, #4338CA, #6D28D9);
}

body.dark .calc-hero {
  background: linear-gradient(135deg, #6366F1, #7C3AED);
}

body.dark .stat-card {
  background: #0F172A;
}

body.dark .cat-chip.active {
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.3);
}

body.dark .quiz-option {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}

body.dark .tab-bar {
  background: #1E293B;
  border-color: #334155;
}

body.dark .tab-item.active {
  color: var(--primary);
}

body.dark input,
body.dark select {
  background: #1E293B;
  color: #F1F5F9;
  border-color: #334155;
}

body.dark .essay-section-img img {
  filter: brightness(0.85);
}

/* ============ 速算结果卡片 ============ */
.calc-result-card {
  animation: fadeUp 0.4s ease-out;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.calc-result-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.calc-result-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.calc-result-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-result-compare {
  margin-top: 4px;
}

.calc-result-compare-inner {
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
}

.calc-result-btn {
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-result-btn:active {
  transform: scale(0.96);
}

body.dark .calc-result-compare-inner {
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  color: var(--primary-light);
}

/* ============ 分数显示 ============ */
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  vertical-align: middle;
  margin: 0 4px;
  font-weight: 600;
  position: relative;
}

.frac-num {
  border-bottom: 2px solid var(--text);
  padding: 0 6px 3px;
  line-height: 1.2;
  text-align: center;
}

.frac-den {
  padding: 3px 6px 0;
  line-height: 1.2;
  text-align: center;
}

.frac-line {
  display: none;
}

/* ============ 时政知识点内容 ============ */
.keypoint-content {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.keypoint-content p {
  margin: 0 0 8px 0;
}

.keypoint-content p:last-child {
  margin-bottom: 0;
}

.keypoint-content span {
  font-size: inherit !important;
  line-height: inherit !important;
}

.keypoint-content strong {
  font-weight: 700;
}

/* ============ 反馈弹窗 ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feedback-dialog {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: fadeUp 0.3s ease-out;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.feedback-close {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.feedback-body {
  padding: 20px;
}

.feedback-field {
  margin-bottom: 14px;
}

.feedback-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.feedback-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.feedback-input:focus {
  border-color: var(--primary);
}

.feedback-textarea {
  width: 100%;
  height: 100px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.feedback-textarea:focus {
  border-color: var(--primary);
}

.feedback-submit {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.feedback-submit:active {
  transform: scale(0.97);
}

.feedback-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============ 资料分析公式填空 ============ */
.formula-blank {
  display: inline-block;
  min-width: 60px;
  border-bottom: 2px dashed var(--warning);
  margin: 0 4px;
  text-align: center;
  color: transparent;
  font-weight: 600;
}

body.dark .formula-blank {
  border-bottom-color: var(--warning);
}

.formula-option {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.formula-option:active {
  transform: scale(0.97);
}

.formula-option.correct {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.formula-option.wrong {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}