/* ================= CATTI 备考 ================= */

#appCatti {
  padding: 0 0 56px;
}

/* 分栏条 */

.catti-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.catti-bar-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.catti-kicker {
  color: var(--amber-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.catti-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catti-tabs::-webkit-scrollbar {
  display: none;
}

.catti-tab {
  position: relative;
  padding: 8px 14px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.catti-tab::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.16s ease;
}

.catti-tab:hover {
  color: var(--ink-soft);
}

.catti-tab.active {
  color: var(--ink);
}

.catti-tab.active::after {
  background: var(--amber);
}

.catti-bar-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
}

.catti-sync {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.catti-sync.is-error {
  color: #c25b4a;
}

.catti-refresh {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-soft);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.catti-refresh:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.catti-refresh:disabled {
  opacity: 0.55;
  cursor: default;
}

.catti-refresh svg {
  width: 14px;
  height: 14px;
}

.catti-refresh.is-loading svg {
  animation: catti-spin 1s linear infinite;
}

@keyframes catti-spin {
  to {
    transform: rotate(360deg);
  }
}

.catti-panels {
  padding: 22px clamp(20px, 3.6vw, 48px) 0;
}

.catti-panel {
  animation: catti-fade 0.28s ease;
}

@keyframes catti-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.catti-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}

.catti-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.catti-section-head p {
  max-width: 740px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.catti-section-meta {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

/* 倒计时 */

.catti-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.countdown-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--forest) 0%, var(--forest-deep) 70%);
  color: var(--countdown-ink);
  box-shadow: var(--shadow-md);
}

.countdown-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--amber-rgb), 0.28), transparent 70%);
  pointer-events: none;
}

.countdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.level-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.level-switch button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(var(--countdown-ink-rgb), 0.72);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.level-switch button.active {
  background: var(--amber);
  color: var(--on-accent);
}

.countdown-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.countdown-badge.official {
  background: rgba(var(--amber-rgb), 0.2);
  color: #ffe2c2;
}

.countdown-badge.estimated {
  background: rgba(var(--countdown-ink-rgb), 0.14);
  color: rgba(var(--countdown-ink-rgb), 0.86);
}

.countdown-days {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 2px;
}

.countdown-days b {
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.countdown-days span {
  color: rgba(var(--countdown-ink-rgb), 0.72);
  font-size: 14px;
}

.countdown-clock {
  color: rgba(var(--countdown-ink-rgb), 0.72);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.countdown-date {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.countdown-basis {
  margin-top: 6px;
  color: rgba(var(--countdown-ink-rgb), 0.66);
  font-size: 10.5px;
  line-height: 1.6;
}

.countdown-source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--countdown-ink-rgb), 0.14);
  color: rgba(var(--countdown-ink-rgb), 0.6);
  font-size: 10px;
}

.countdown-source a {
  color: #ffd9b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 报名 / 准考证等硬信息 */

.catti-facts {
  display: grid;
  gap: 10px;
  align-content: start;
}

.catti-fact {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.catti-fact-label {
  color: var(--amber-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.catti-fact b {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.catti-fact p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.catti-fact-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.catti-fact-source:hover {
  color: var(--amber-deep);
}

.catti-fact-source svg {
  width: 11px;
  height: 11px;
}

.skeleton-block {
  min-height: 84px;
  background: linear-gradient(100deg, var(--paper-tint), var(--white) 40%, var(--paper-tint));
  background-size: 220% 100%;
  animation: catti-sheen 1.4s ease-in-out infinite;
}

@keyframes catti-sheen {
  to {
    background-position: -120% 0;
  }
}

/* 快捷入口 */

.catti-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.catti-shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.catti-shortcut:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}

.catti-shortcut-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 14px;
}

.catti-shortcut b {
  font-size: 13px;
}

.catti-shortcut small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.catti-shortcut-arrow {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 13px;
  height: 13px;
  color: var(--faint);
}

/* 卡片 */

.catti-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.catti-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.catti-panel > .catti-card + .catti-card {
  margin-top: 14px;
}

.catti-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.catti-card-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.catti-card-note {
  color: var(--muted);
  font-size: 9.5px;
}

.catti-notice-list {
  display: flex;
  flex-direction: column;
}

.catti-notice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  transition: color 0.16s ease;
}

.catti-notice:last-child {
  border-bottom: 0;
}

.catti-notice:hover .catti-notice-title {
  color: var(--amber-deep);
}

.catti-notice-title {
  display: -webkit-box;
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catti-notice-date {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 9.5px;
  white-space: nowrap;
}

.catti-notice-arrow {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  color: var(--faint);
}

.catti-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 2px;
}

.catti-lang-name {
  font-size: 12.5px;
  font-weight: 600;
}

.catti-lang-links {
  display: flex;
  gap: 14px;
}

.catti-lang-links a {
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.catti-lang-links a:hover {
  color: var(--amber-deep);
}

.catti-lang-more {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.catti-history {
  margin-top: 4px;
}

.catti-history-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.catti-history-row:last-child {
  border-bottom: 0;
}

.catti-history-row b {
  font-size: 12px;
}

.catti-history-row a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.catti-history-row a:hover {
  color: var(--amber-deep);
}

.catti-empty {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* 公众号信息源 */

.catti-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.catti-source {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-tint);
}

.catti-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catti-source-head b {
  font-size: 12.5px;
}

.catti-source-level {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.catti-source-level.official {
  background: var(--amber);
  color: var(--on-accent);
}

.catti-source-level.study {
  background: var(--forest-soft);
  color: var(--forest);
}

.catti-source-owner {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.catti-source-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.catti-source-articles {
  display: flex;
  flex-direction: column;
  margin: 3px 0 0;
}

.catti-wechat-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  text-decoration: none;
}

.catti-wechat-account {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 9px;
}

.catti-wechat-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catti-wechat-article:hover .catti-wechat-title {
  color: var(--amber-deep);
}

.catti-wechat-date {
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
}

.catti-source-empty {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.55;
}

.catti-source-search {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.catti-source-search:hover {
  color: var(--amber-deep);
}

.catti-source-search svg {
  width: 10px;
  height: 10px;
}

.catti-wechat-list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.catti-foot {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

/* ================= 学习分栏：综合 / 实务 ================= */

.study-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.study-tabs button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.study-tabs button:hover {
  border-color: var(--line-strong);
}

.study-tabs button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

.study-primary {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 1px solid var(--forest);
  border-radius: 10px;
  background: var(--forest);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.study-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.study-ghost {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.study-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.study-ghost.small {
  padding: 5px 11px;
  font-size: 10.5px;
}

.study-ghost:disabled {
  opacity: 0.5;
  cursor: default;
}

.study-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.study-intro-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
}

.study-intro-copy p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.study-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.study-metrics b {
  margin-right: 3px;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.study-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.study-list-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

/* 词汇自测 */

.vocab-card {
  padding: 26px clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.vocab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.vocab-step {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.vocab-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 9.5px;
  font-weight: 600;
}

.vocab-tag.ghost {
  background: var(--paper-deep);
  color: var(--muted);
}

.vocab-stem {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
}

.vocab-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.vocab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-tint);
  font-size: 13px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.vocab-option:hover:not(:disabled) {
  border-color: var(--amber);
}

.vocab-option b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 10px;
}

.vocab-option.correct {
  border-color: #3f8f6a;
  background: rgba(63, 143, 106, 0.1);
}

.vocab-option.correct b {
  background: #3f8f6a;
  color: #ffffff;
}

.vocab-option.wrong {
  border-color: #c25b4a;
  background: rgba(194, 91, 74, 0.1);
}

.vocab-option.wrong b {
  background: #c25b4a;
  color: #ffffff;
}

.vocab-option.muted {
  opacity: 0.5;
}

.vocab-explain {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.vocab-verdict {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.vocab-verdict.right {
  color: #3f8f6a;
}

.vocab-verdict.wrong {
  color: #c25b4a;
}

.vocab-explain p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.vocab-result {
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.vocab-result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.vocab-result-score b {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.vocab-result-score span {
  color: var(--muted);
  font-size: 16px;
}

.vocab-result p {
  margin: 14px 0 20px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.vocab-result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* 错题本 */

.mistake-card {
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.mistake-meta {
  display: flex;
  gap: 8px;
  color: var(--faint);
  font-size: 9.5px;
}

.mistake-stem {
  margin: 7px 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
}

.mistake-answer {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.mistake-answer b {
  color: #3f8f6a;
}

.mistake-explain {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* 双语精读 */

.reading-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.reading-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.reading-card:hover {
  border-color: var(--line-strong);
}

.reading-card.active {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
}

.reading-card-topic {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.reading-card b {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.4;
}

.reading-card-zh {
  color: var(--ink-soft);
  font-size: 10.5px;
}

.reading-card-meta {
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.reading-stage {
  padding: 26px clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.reading-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.reading-kicker {
  color: var(--amber-deep);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.reading-head h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
}

.reading-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.reading-modes {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-tint);
}

.reading-modes button {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
}

.reading-modes button.active {
  background: var(--forest);
  color: var(--paper);
}

.reading-body {
  margin: 6px 0 18px;
}

.reading-sentence {
  padding: 12px 0 14px;
  border-bottom: 1px dashed var(--line);
}

.reading-sentence:last-child {
  border-bottom: 0;
}

.rs-en {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.85;
}

.rs-zh {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.mode-en .rs-zh,
.mode-zh .rs-en {
  display: none;
}

.rs-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 8px;
}

.rs-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
}

.rs-play:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.rs-play svg {
  width: 11px;
  height: 11px;
}

.rs-terms {
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.6;
}

.rs-terms em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 600;
}

.rs-term {
  padding: 0 1px;
  border: 0;
  border-bottom: 1px dotted var(--amber);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.rs-term:hover {
  background: var(--amber-soft);
}

.reading-foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reading-note > span {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.reading-note textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-tint);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
}

.reading-note textarea:focus {
  outline: none;
  border-color: var(--amber);
}

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

/* 精读查词浮层 */

.reading-look {
  position: fixed;
  z-index: 90;
  width: 290px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.look-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.look-head b {
  font-family: var(--serif);
  font-size: 17px;
}

.look-head button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.look-head svg {
  width: 12px;
  height: 12px;
}

.look-ipa {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.look-defs {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.look-loading,
.look-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.look-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.look-source {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.5;
}

/* 实务参考公众号 */

.catti-channels {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.channels-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.channels-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.channels-head p {
  max-width: 780px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.channel-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-group-label {
  color: var(--amber-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.channel-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-tint);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.channel-card:hover {
  border-color: var(--line-strong);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.channel-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.channel-card.is-active {
  border-color: var(--amber);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.channel-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  transition: background 0.18s ease;
}

.channel-card.is-active .channel-avatar {
  background: var(--amber-deep);
}

.channel-body {
  min-width: 0;
  flex: 1;
}

.channel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
}

.channel-title b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
}

.channel-title span {
  color: var(--muted);
  font-size: 9.5px;
}

.channel-note {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.channel-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--amber-deep);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-cta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.channel-card:hover .channel-cta svg {
  transform: translateX(2px);
}

.channel-card.is-active .channel-cta {
  color: var(--muted);
}

.channel-card.is-active .channel-cta svg {
  transform: none;
}

.channel-cta.is-loading svg {
  display: none;
}

.channel-cta.is-loading::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--amber-deep);
  border-radius: 50%;
  animation: channel-spin 0.7s linear infinite;
}

@keyframes channel-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 公众号最新文章聚合 */

.catti-feed {
  margin: -6px 0 18px;
}

.feed-card {
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.feed-heading {
  min-width: 0;
}

.feed-heading b {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
}

.feed-heading span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.feed-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.feed-btn {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.feed-btn:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.feed-wrap:last-child {
  border-bottom: 0;
}

.feed-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 2px 112px;
}

.feed-op {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 9.5px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.feed-op:hover {
  border-color: var(--amber);
  background: var(--hover-tint);
  color: var(--amber-deep);
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.feed-item:hover {
  background: var(--hover-tint);
}

.feed-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 64px;
  flex: 0 0 92px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-deep);
}

.feed-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-cover i {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
}

.feed-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.feed-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-summary {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--faint);
  font-size: 9.5px;
}

.feed-open {
  margin-left: auto;
  color: var(--amber-deep);
  font-weight: 600;
}

.feed-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.65;
}

.feed-state {
  padding: 26px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.feed-state b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.feed-state p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.feed-state.is-error b {
  color: #b0442c;
}

.feed-retry {
  padding: 5px 13px;
  border: 1px solid var(--forest);
  border-radius: 7px;
  background: var(--forest);
  color: var(--paper);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

.feed-item.is-skeleton {
  cursor: default;
}

.feed-item.is-skeleton .feed-cover,
.sk-line {
  background: linear-gradient(90deg, var(--paper-deep) 25%, var(--paper-tint) 37%, var(--paper-deep) 63%);
  background-size: 400% 100%;
  animation: feed-shimmer 1.3s ease infinite;
}

.feed-item.is-skeleton .feed-cover {
  border-radius: 8px;
}

.sk-line {
  display: block;
  height: 9px;
  border-radius: 6px;
}

.sk-line.sk-title {
  height: 12px;
  width: 72%;
}

.sk-line.sk-short {
  width: 38%;
}

@keyframes feed-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 实务翻译 */

.prac-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.prac-list {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-tint);
}

.prac-list-label {
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.prac-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.prac-item:hover {
  background: var(--white);
}

.prac-item.active {
  border-color: var(--amber);
  background: var(--white);
}

.prac-item b {
  font-size: 11.5px;
  font-weight: 600;
}

.prac-item span {
  color: var(--faint);
  font-size: 9.5px;
}

.prac-stage {
  padding: 24px clamp(18px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.prac-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.prac-kicker {
  color: var(--amber-deep);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.prac-head h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 23px);
}

.prac-source {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 9.5px;
  white-space: nowrap;
}

.prac-text {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--paper-tint);
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.85;
  white-space: pre-wrap;
}

.prac-terms {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.prac-terms summary {
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.prac-terms ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 2px 13px 12px;
  list-style: none;
}

.prac-terms li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.prac-input > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.prac-input textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-tint);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
  resize: vertical;
}

.prac-input textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.prac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.prac-result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.prac-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.prac-result-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
}

.prac-result-head span {
  color: var(--faint);
  font-size: 9px;
}

.prac-reference {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  font-size: 12.5px;
  line-height: 1.85;
}

.prac-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
}

.prac-checks b {
  color: var(--ink);
}

.prac-tips {
  margin-top: 14px;
}

.prac-tips h4 {
  margin: 0 0 6px;
  font-size: 11px;
}

.prac-tips ul {
  margin: 0;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.prac-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 9px;
}

.prac-record {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 9.5px;
}

/* 我的 */

.mine-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.mine-stat {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.mine-stat > span {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.mine-stat b {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.mine-stat b i {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.mine-stat small {
  color: var(--faint);
  font-size: 9px;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.mine-words,
.mine-history {
  max-height: 320px;
  overflow-y: auto;
}

.mine-word {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.mine-word:last-child {
  border-bottom: 0;
}

.mine-word b {
  font-family: var(--serif);
  font-size: 13.5px;
}

.mine-word-ipa {
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
}

.mine-word p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.55;
}

.mine-word button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
}

.mine-word button:hover {
  border-color: var(--line);
  color: #c25b4a;
}

.mine-word button svg {
  width: 12px;
  height: 12px;
}

.mine-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
}

.mine-history-row:last-child {
  border-bottom: 0;
}

.mine-history-row b {
  min-width: 48px;
  font-size: 10.5px;
}

.mine-history-row span {
  color: var(--muted);
}

.mine-history-row em {
  margin-left: auto;
  color: var(--faint);
  font-size: 9.5px;
  font-style: normal;
}

.mine-hint {
  margin: 10px 0 0;
  color: var(--amber-deep);
  font-size: 10px;
}

.mine-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}

.mine-danger h2 {
  margin: 0;
  font-size: 13px;
}

.mine-danger p {
  max-width: 640px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.mine-reset {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid #c25b4a;
  border-radius: 9px;
  background: transparent;
  color: #c25b4a;
  font-size: 11px;
  font-weight: 600;
}

.mine-reset:hover {
  background: rgba(194, 91, 74, 0.1);
}

/* 深色主题微调 */

[data-theme="dark"] .countdown-card {
  background: linear-gradient(140deg, #0f2a22 0%, #0a1a16 72%);
}

[data-theme="dark"] .catti-fact,
[data-theme="dark"] .catti-card {
  background: var(--white);
}

[data-theme="dark"] .vocab-option.correct {
  background: rgba(63, 143, 106, 0.16);
}

[data-theme="dark"] .vocab-option.wrong {
  background: rgba(194, 91, 74, 0.16);
}

[data-theme="dark"] .mine-word button:hover {
  color: #e08a7a;
}

/* 响应式 */

@media (max-width: 1180px) {
  .catti-shortcuts,
  .reading-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mine-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .catti-hero,
  .catti-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .vocab-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .mine-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prac-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prac-list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .prac-item {
    min-width: 126px;
  }
}

@media (max-width: 760px) {
  .catti-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
  }

  .catti-tabs {
    width: 100%;
  }

  .catti-tab {
    padding: 8px 10px 10px;
  }

  .catti-bar-tools {
    padding-bottom: 8px;
  }

  .catti-shortcuts,
  .reading-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .study-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mine-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-head {
    flex-direction: column;
  }

  .mine-danger {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown-days b {
    font-size: 60px;
  }

  .feed-item {
    gap: 9px;
    padding: 10px 4px;
  }

  .feed-cover {
    width: 72px;
    height: 54px;
    flex-basis: 72px;
  }

  .feed-head {
    flex-direction: column;
    gap: 8px;
  }

  .feed-open {
    display: none;
  }

  .feed-ops {
    padding-left: 85px;
  }
}
