@charset "UTF-8";
:root {
  --color-bg-primary: #faf8f3;
  --color-bg-secondary: white;
  --color-bg-tertiary: #f5f0e8;
  --color-bg-hover: rgba(245, 240, 232, 0.5);
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #404040;
  --color-text-tertiary: #6b6b6b;
  --color-text-muted: #959595;
  --color-text-inverse: white;
  --color-border-primary: rgba(149, 149, 149, 0.2);
  --color-border-secondary: rgba(149, 149, 149, 0.1);
  --color-border-hover: #c73e1d;
  --color-accent-primary: #c73e1d;
  --color-accent-secondary: #4a7c59;
  --color-accent-tertiary: #d4a574;
  --color-success: #4a7c59;
  --color-success-light: #6fa383;
  --color-success-dark: #345540;
  --color-error: #c73e1d;
  --color-error-light: #d9634a;
  --color-error-dark: #9e2f14;
  --color-warning: #d4a574;
  --color-warning-light: #e2c19f;
  --color-warning-dark: #b08456;
  --color-info: #4a6fa5;
  --shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-sm: 0 2px 4px rgba(26, 26, 26, 0.08);
  --shadow-base: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
  --gradient-ink-wash: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.03) 30%, rgba(26, 26, 26, 0.08) 70%, rgba(26, 26, 26, 0.12) 100%);
  --gradient-paper-texture: radial-gradient(ellipse at center, rgba(250, 248, 243, 0.8) 0%, rgba(237, 231, 220, 0.6) 100%);
  --card-bg: white;
  --card-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  --card-shadow-hover: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
  --navbar-bg: white;
  --navbar-shadow: 0 2px 8px rgba(26, 26, 26, 0.08);
  --sidebar-bg: white;
  --sidebar-border: rgba(149, 149, 149, 0.2);
  --input-bg: white;
  --input-border: #959595;
  --input-focus-border: #c73e1d;
  --input-focus-shadow: 0 0 0 3px rgba(199, 62, 29, 0.1);
  --button-primary-bg: #c73e1d;
  --button-primary-hover: #9e2f14;
  --button-secondary-bg: white;
  --button-secondary-border: #959595;
  --button-secondary-hover-border: #c73e1d;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.card {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
}

.navbar {
  background-color: var(--navbar-bg);
  box-shadow: var(--navbar-shadow);
}
.navbar .nav-link {
  color: var(--color-text-secondary);
}
.navbar .nav-link:hover {
  color: var(--color-accent-primary);
}
.navbar .nav-link.active {
  color: var(--color-accent-primary);
  background-color: var(--color-bg-hover);
}

.sidebar {
  background-color: var(--sidebar-bg);
  border-right-color: var(--sidebar-border);
}
.sidebar .menu-item a {
  color: var(--color-text-secondary);
}
.sidebar .menu-item a:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-text-primary);
}
.sidebar .menu-item a.active {
  background-color: var(--color-bg-hover);
  color: var(--color-accent-primary);
}

.btn.btn-primary {
  background-color: var(--button-primary-bg);
  color: white;
}
.btn.btn-primary:hover {
  background-color: var(--button-primary-hover);
}
.btn.btn-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--color-text-primary);
  border: 2px solid var(--button-secondary-border);
}
.btn.btn-secondary:hover {
  border-color: var(--button-secondary-hover-border);
  color: var(--color-accent-primary);
}
.btn.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}
.btn.btn-ghost:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-text-primary);
}

input,
textarea,
select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--color-text-primary);
}
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--color-text-muted);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}

.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent-primary);
}

.text-success {
  color: var(--color-success);
}

.text-error {
  color: var(--color-error);
}

.text-warning {
  color: var(--color-warning);
}

.text-info {
  color: var(--color-info);
}

.bg-primary {
  background-color: var(--color-bg-primary);
}

.bg-secondary {
  background-color: var(--color-bg-secondary);
}

.bg-tertiary {
  background-color: var(--color-bg-tertiary);
}

.bg-accent {
  background-color: var(--color-accent-primary);
}

.border {
  border-color: var(--color-border-primary);
}

.border-secondary {
  border-color: var(--color-border-secondary);
}

@media print {
  :root {
    --color-bg-primary: white !important;
    --color-text-primary: black !important;
    --color-border-primary: #ccc !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
}
.character-animated {
  position: relative;
  display: inline-block;
}
.character-animated svg {
  width: 100%;
  height: 100%;
}
.character-animated path {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stroke-reveal path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: strokeReveal 1s ease-in-out forwards;
}
.stroke-reveal path:nth-child(1) {
  animation-delay: 0.15s;
}
.stroke-reveal path:nth-child(2) {
  animation-delay: 0.3s;
}
.stroke-reveal path:nth-child(3) {
  animation-delay: 0.45s;
}
.stroke-reveal path:nth-child(4) {
  animation-delay: 0.6s;
}
.stroke-reveal path:nth-child(5) {
  animation-delay: 0.75s;
}
.stroke-reveal path:nth-child(6) {
  animation-delay: 0.9s;
}
.stroke-reveal path:nth-child(7) {
  animation-delay: 1.05s;
}
.stroke-reveal path:nth-child(8) {
  animation-delay: 1.2s;
}
.stroke-reveal path:nth-child(9) {
  animation-delay: 1.35s;
}
.stroke-reveal path:nth-child(10) {
  animation-delay: 1.5s;
}
.stroke-reveal path:nth-child(11) {
  animation-delay: 1.65s;
}
.stroke-reveal path:nth-child(12) {
  animation-delay: 1.8s;
}

@keyframes strokeReveal {
  to {
    stroke-dashoffset: 0;
  }
}
.brush-stroke path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: brushStroke 1.5s ease-out forwards;
  stroke-width: 3;
}
.brush-stroke path:nth-child(1) {
  animation-delay: 0.2s;
  stroke-width: 2.9;
}
.brush-stroke path:nth-child(2) {
  animation-delay: 0.4s;
  stroke-width: 2.8;
}
.brush-stroke path:nth-child(3) {
  animation-delay: 0.6s;
  stroke-width: 2.7;
}
.brush-stroke path:nth-child(4) {
  animation-delay: 0.8s;
  stroke-width: 2.6;
}
.brush-stroke path:nth-child(5) {
  animation-delay: 1s;
  stroke-width: 2.5;
}
.brush-stroke path:nth-child(6) {
  animation-delay: 1.2s;
  stroke-width: 2.4;
}
.brush-stroke path:nth-child(7) {
  animation-delay: 1.4s;
  stroke-width: 2.3;
}
.brush-stroke path:nth-child(8) {
  animation-delay: 1.6s;
  stroke-width: 2.2;
}
.brush-stroke path:nth-child(9) {
  animation-delay: 1.8s;
  stroke-width: 2.1;
}
.brush-stroke path:nth-child(10) {
  animation-delay: 2s;
  stroke-width: 2;
}
.brush-stroke path:nth-child(11) {
  animation-delay: 2.2s;
  stroke-width: 1.9;
}
.brush-stroke path:nth-child(12) {
  animation-delay: 2.4s;
  stroke-width: 1.8;
}

@keyframes brushStroke {
  0% {
    stroke-dashoffset: 1000;
    stroke-width: 1;
    opacity: 0;
  }
  20% {
    stroke-width: 4;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    stroke-width: 2;
    opacity: 1;
  }
}
.calligraphy-fade {
  opacity: 0;
  animation: calligraphyFade 2s ease-out forwards;
}
.calligraphy-fade path {
  stroke-dasharray: 100;
  animation: calligraphyStroke 2s ease-out forwards;
}

@keyframes calligraphyFade {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes calligraphyStroke {
  0% {
    stroke-dashoffset: 100;
    stroke-width: 0;
  }
  50% {
    stroke-width: 5;
  }
  100% {
    stroke-dashoffset: 0;
    stroke-width: 2;
  }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.05s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-down {
  opacity: 0;
  animation: fadeInDown 0.5s ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.05s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.stagger-children > * {
  opacity: 0;
  animation: staggerFadeIn 0.5s ease-out forwards;
}
.stagger-children > *:nth-child(1) {
  animation-delay: 0.05s;
}
.stagger-children > *:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger-children > *:nth-child(3) {
  animation-delay: 0.15s;
}
.stagger-children > *:nth-child(4) {
  animation-delay: 0.2s;
}
.stagger-children > *:nth-child(5) {
  animation-delay: 0.25s;
}
.stagger-children > *:nth-child(6) {
  animation-delay: 0.3s;
}
.stagger-children > *:nth-child(7) {
  animation-delay: 0.35s;
}
.stagger-children > *:nth-child(8) {
  animation-delay: 0.4s;
}
.stagger-children > *:nth-child(9) {
  animation-delay: 0.45s;
}
.stagger-children > *:nth-child(10) {
  animation-delay: 0.5s;
}
.stagger-children > *:nth-child(11) {
  animation-delay: 0.55s;
}
.stagger-children > *:nth-child(12) {
  animation-delay: 0.6s;
}
.stagger-children > *:nth-child(13) {
  animation-delay: 0.65s;
}
.stagger-children > *:nth-child(14) {
  animation-delay: 0.7s;
}
.stagger-children > *:nth-child(15) {
  animation-delay: 0.75s;
}
.stagger-children > *:nth-child(16) {
  animation-delay: 0.8s;
}
.stagger-children > *:nth-child(17) {
  animation-delay: 0.85s;
}
.stagger-children > *:nth-child(18) {
  animation-delay: 0.9s;
}
.stagger-children > *:nth-child(19) {
  animation-delay: 0.95s;
}
.stagger-children > *:nth-child(20) {
  animation-delay: 1s;
}

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
.ink-drop {
  position: relative;
  overflow: hidden;
}
.ink-drop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.1);
  transform: translate(-50%, -50%);
  animation: inkSpread 0.6s ease-out;
}

@keyframes inkSpread {
  to {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}
.ink-wash-animated {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.05) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: inkWashFlow 8s ease-in-out infinite;
}

@keyframes inkWashFlow {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}
.success-check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}
.error-shake {
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}
.success-pulse {
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(74, 124, 89, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 124, 89, 0);
  }
}
.coin-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 165, 116, 0.3);
  border-top-color: #d4a574;
  border-radius: 50%;
  position: relative;
  animation: coinSpin 1s linear infinite;
}
.coin-spinner::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(212, 165, 116, 0.5);
  border-radius: 3px;
}

@keyframes coinSpin {
  to {
    transform: rotate(360deg);
  }
}
.dots-loader {
  display: inline-flex;
  gap: 4px;
}
.dots-loader .dot {
  width: 8px;
  height: 8px;
  background: #c73e1d;
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.dots-loader .dot:nth-child(1) {
  animation-delay: -0.32s;
}
.dots-loader .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dotPulse {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  30% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}
.bamboo-loader {
  width: 4px;
  height: 40px;
  background: linear-gradient(to top, #4a7c59, #6fa383);
  position: relative;
  animation: bambooGrow 1.5s ease-in-out infinite;
  transform-origin: bottom;
}
.bamboo-loader::before, .bamboo-loader::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: #345540;
  left: -4px;
}
.bamboo-loader::before {
  top: 30%;
}
.bamboo-loader::after {
  top: 60%;
}

@keyframes bambooGrow {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.3);
  }
}
.hover-float {
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-float:hover {
  transform: translateY(-4px);
}

.hover-lift {
  transition: all 250ms;
  cursor: pointer;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
}

.hover-glow {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-glow:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(199, 62, 29, 0.15);
}

.hover-tilt {
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.hover-tilt:hover {
  transform: rotateX(-5deg) rotateY(5deg) scale(1.02);
}

.parallax-slow {
  transition: transform 0.8s ease-out;
}

.parallax-medium {
  transition: transform 0.5s ease-out;
}

.parallax-fast {
  transition: transform 0.3s ease-out;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.cherry-blossom {
  position: fixed;
  top: -10px;
  color: #ffb3ba;
  font-size: 20px;
  animation: fall 8s linear infinite;
}
.cherry-blossom:nth-child(1) {
  left: 10%;
  animation-delay: 4s;
  animation-duration: 12s;
}
.cherry-blossom:nth-child(2) {
  left: 20%;
  animation-delay: 3s;
  animation-duration: 11s;
}
.cherry-blossom:nth-child(3) {
  left: 30%;
  animation-delay: 1s;
  animation-duration: 9s;
}
.cherry-blossom:nth-child(4) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 10s;
}
.cherry-blossom:nth-child(5) {
  left: 50%;
  animation-delay: 5s;
  animation-duration: 11s;
}
.cherry-blossom:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
  animation-duration: 9s;
}
.cherry-blossom:nth-child(7) {
  left: 70%;
  animation-delay: 1s;
  animation-duration: 10s;
}
.cherry-blossom:nth-child(8) {
  left: 80%;
  animation-delay: 5s;
  animation-duration: 12s;
}
.cherry-blossom:nth-child(9) {
  left: 90%;
  animation-delay: 1s;
  animation-duration: 12s;
}
.cherry-blossom:nth-child(10) {
  left: 100%;
  animation-delay: 2s;
  animation-duration: 9s;
}

@keyframes fall {
  to {
    transform: translateY(calc(100vh + 10px)) rotate(360deg);
  }
}
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}
.transition-all {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

.delay-900 {
  animation-delay: 0.9s;
}

.delay-1000 {
  animation-delay: 1s;
}

.duration-fast {
  animation-duration: 150ms;
}

.duration-base {
  animation-duration: 250ms;
}

.duration-slow {
  animation-duration: 400ms;
}

.duration-slower {
  animation-duration: 600ms;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in-down,
  .scale-in,
  .slide-in-left,
  .slide-in-right,
  .stagger-children > *,
  .hover-lift,
  .hover-grow,
  .ripple,
  .pulse,
  .shake,
  .bounce,
  .character-animated,
  .calligraphy-fade,
  .scroll-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.navbar {
  background: white;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.08);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c73e1d 0%, #c73e1d 25%, #d4a574 25%, #d4a574 50%, #c73e1d 50%, #c73e1d 75%, #d4a574 75%, #d4a574 100%);
  background-size: 20px 100%;
}
.navbar .navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 150ms;
}
.navbar .navbar-brand:hover {
  transform: scale(1.05);
}
.navbar .navbar-brand .brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c73e1d, #9e2f14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
  position: relative;
}
.navbar .navbar-brand .brand-logo .logo-char {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}
.navbar .navbar-brand .brand-logo::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #d4a574;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: rotate 3s linear infinite;
  opacity: 0;
  transition: opacity 250ms;
}
.navbar .navbar-brand .brand-logo:hover::after {
  opacity: 1;
}
.navbar .navbar-brand .brand-text {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.navbar .navbar-brand .brand-text .brand-chinese {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 0.9375rem;
  color: #6b6b6b;
  display: block;
  margin-top: -4px;
}
.navbar .navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .navbar-menu .nav-link {
  padding: 0.5rem 0.75rem;
  color: #404040;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
}
.navbar .navbar-menu .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #c73e1d;
  transition: width 150ms cubic-bezier(0, 0, 0.2, 1);
}
.navbar .navbar-menu .nav-link:hover {
  color: #c73e1d;
}
.navbar .navbar-menu .nav-link:hover::before {
  width: 80%;
}
.navbar .navbar-menu .nav-link.active {
  color: #c73e1d;
  background: rgba(199, 62, 29, 0.05);
}
.navbar .navbar-menu .nav-link.active::before {
  width: 80%;
}
.navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar .navbar-actions .user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(250, 248, 243, 0.5);
  border-radius: 9999px;
}
.navbar .navbar-actions .user-info .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a7c59, #6fa383);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}
.navbar .navbar-actions .user-info .user-name {
  font-size: 0.9375rem;
  color: #1a1a1a;
  font-weight: 500;
}

.sidebar {
  width: 280px;
  min-height: calc(100vh - 64px);
  background: white;
  border-right: 1px solid rgba(149, 149, 149, 0.2);
  position: sticky;
  top: 64px;
  overflow-y: auto;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #c73e1d 0%, transparent 20%, transparent 80%, #c73e1d 100%);
}
.sidebar .sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(149, 149, 149, 0.1);
}
.sidebar .sidebar-header h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.sidebar .sidebar-header .sidebar-subtitle {
  font-size: 0.9375rem;
  color: #6b6b6b;
}
.sidebar .sidebar-menu {
  padding: 0.75rem 0;
}
.sidebar .sidebar-menu .menu-section {
  margin-bottom: 1rem;
}
.sidebar .sidebar-menu .menu-section .menu-title {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar .sidebar-menu .menu-item {
  position: relative;
}
.sidebar .sidebar-menu .menu-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #404040;
  text-decoration: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.sidebar .sidebar-menu .menu-item a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #c73e1d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms cubic-bezier(0, 0, 0.2, 1);
}
.sidebar .sidebar-menu .menu-item a .menu-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 150ms;
}
.sidebar .sidebar-menu .menu-item a .menu-text {
  flex: 1;
  font-weight: 500;
}
.sidebar .sidebar-menu .menu-item a .menu-badge {
  padding: 0.25rem 0.5rem;
  background: #c73e1d;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}
.sidebar .sidebar-menu .menu-item a:hover {
  background: rgba(250, 248, 243, 0.5);
  color: #1a1a1a;
}
.sidebar .sidebar-menu .menu-item a:hover::before {
  transform: scaleX(1);
}
.sidebar .sidebar-menu .menu-item a:hover .menu-icon {
  opacity: 1;
}
.sidebar .sidebar-menu .menu-item a.active {
  background: rgba(199, 62, 29, 0.05);
  color: #c73e1d;
}
.sidebar .sidebar-menu .menu-item a.active::before {
  transform: scaleX(1);
}
.sidebar .sidebar-menu .menu-item a.active .menu-icon {
  opacity: 1;
  color: #c73e1d;
}
.sidebar .sidebar-menu .menu-item .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar .sidebar-menu .menu-item .submenu.open {
  max-height: 500px;
}
.sidebar .sidebar-menu .menu-item .submenu .submenu-item a {
  padding-left: calc(1rem + 32px);
  font-size: 0.9375rem;
}
.sidebar.collapsed {
  width: 60px;
}
.sidebar.collapsed .sidebar-header {
  padding: 0.75rem;
}
.sidebar.collapsed .sidebar-header h3, .sidebar.collapsed .sidebar-header .sidebar-subtitle {
  display: none;
}
.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-badge {
  display: none;
}
.sidebar.collapsed .menu-item a {
  justify-content: center;
}

.main-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}
.main-layout .main-content {
  flex: 1;
  padding: 2rem;
  background: #faf8f3;
  position: relative;
}
.main-layout .main-content::before {
  content: "";
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #faf8f3, rgba(250, 248, 243, 0));
  pointer-events: none;
  z-index: 1;
}
.main-layout .main-content .content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.main-layout.has-sidebar .main-content {
  margin-left: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb .breadcrumb-item a {
  color: #6b6b6b;
  text-decoration: none;
  transition: color 150ms;
}
.breadcrumb .breadcrumb-item a:hover {
  color: #c73e1d;
}
.breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: #959595;
  margin-left: 0.5rem;
}
.breadcrumb .breadcrumb-item.active {
  color: #1a1a1a;
  font-weight: 500;
}

.tabs {
  border-bottom: 2px solid rgba(149, 149, 149, 0.2);
  margin-bottom: 2rem;
  position: relative;
}
.tabs::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: #c73e1d;
  transition: all 250ms cubic-bezier(0, 0, 0.2, 1);
  width: var(--tab-indicator-width, 0);
  transform: translateX(var(--tab-indicator-offset, 0));
}
.tabs .tab-list {
  display: flex;
  gap: 0.25rem;
}
.tabs .tab-list .tab {
  padding: 0.75rem 1rem;
  color: #6b6b6b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms;
  position: relative;
  font-weight: 500;
}
.tabs .tab-list .tab:hover {
  color: #1a1a1a;
  background: rgba(250, 248, 243, 0.5);
}
.tabs .tab-list .tab.active {
  color: #c73e1d;
  border-bottom-color: #c73e1d;
}
.tabs .tab-list .tab .tab-badge {
  margin-left: 0.5rem;
  padding: 2px 6px;
  background: rgba(199, 62, 29, 0.1);
  color: #c73e1d;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.page-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
  position: relative;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20L0 0v20h20zm0 0l20 20V20H20z' fill='%23c73e1d' fill-opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header h1 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 3rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  position: relative;
}
.page-header .page-description {
  font-size: 1.25rem;
  color: #6b6b6b;
  line-height: 1.8;
}
.page-header .page-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.floating-nav {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 9999px;
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.18);
  padding: 0.5rem;
  z-index: 200;
}
@media (max-width: 768px) {
  .floating-nav {
    display: flex;
  }
}
.floating-nav .float-nav-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
  transition: all 150ms;
  position: relative;
}
.floating-nav .float-nav-item:hover {
  background: rgba(199, 62, 29, 0.1);
  color: #c73e1d;
}
.floating-nav .float-nav-item.active {
  background: #c73e1d;
  color: white;
}
.floating-nav .float-nav-item .nav-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #c73e1d;
  border-radius: 50%;
  border: 2px solid white;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.card, .action-card, .floating-card, .flip-card .flip-card-content, .info-card, .achievement-card, .progress-card, .chapter-card, .lesson-card, .vocab-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  position: relative;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.card::before, .action-card::before, .floating-card::before, .flip-card .flip-card-content::before, .info-card::before, .achievement-card::before, .progress-card::before, .chapter-card::before, .lesson-card::before, .vocab-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 600px at 50% 0%, rgba(250, 248, 243, 0.3), transparent), url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.card .card-body, .action-card .card-body, .floating-card .card-body, .flip-card .flip-card-content .card-body, .info-card .card-body, .achievement-card .card-body, .progress-card .card-body, .chapter-card .card-body, .lesson-card .card-body, .vocab-card .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.card.card-sm .card-body, .card-sm.action-card .card-body, .card-sm.floating-card .card-body, .flip-card .card-sm.flip-card-content .card-body, .card-sm.info-card .card-body, .card-sm.achievement-card .card-body, .card-sm.progress-card .card-body, .card-sm.chapter-card .card-body, .card-sm.lesson-card .card-body, .card-sm.vocab-card .card-body {
  padding: 0.75rem;
}
.card.card-lg .card-body, .card-lg.action-card .card-body, .card-lg.floating-card .card-body, .flip-card .card-lg.flip-card-content .card-body, .card-lg.info-card .card-body, .card-lg.achievement-card .card-body, .card-lg.progress-card .card-body, .card-lg.chapter-card .card-body, .card-lg.lesson-card .card-body, .card-lg.vocab-card .card-body {
  padding: 2rem;
}
.card.card-interactive, .card-interactive.action-card, .card-interactive.floating-card, .flip-card .card-interactive.flip-card-content, .card-interactive.info-card, .card-interactive.achievement-card, .card-interactive.progress-card, .chapter-card, .lesson-card, .card-interactive.vocab-card {
  cursor: pointer;
}
.card.card-interactive:hover, .card-interactive.action-card:hover, .card-interactive.floating-card:hover, .flip-card .card-interactive.flip-card-content:hover, .card-interactive.info-card:hover, .card-interactive.achievement-card:hover, .card-interactive.progress-card:hover, .chapter-card:hover, .lesson-card:hover, .card-interactive.vocab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
}
.card.card-interactive:hover::after, .card-interactive.action-card:hover::after, .card-interactive.floating-card:hover::after, .flip-card .card-interactive.flip-card-content:hover::after, .card-interactive.info-card:hover::after, .card-interactive.achievement-card:hover::after, .card-interactive.progress-card:hover::after, .chapter-card:hover::after, .lesson-card:hover::after, .card-interactive.vocab-card:hover::after {
  opacity: 1;
}
.card.card-interactive:active, .card-interactive.action-card:active, .card-interactive.floating-card:active, .flip-card .card-interactive.flip-card-content:active, .card-interactive.info-card:active, .card-interactive.achievement-card:active, .card-interactive.progress-card:active, .chapter-card:active, .lesson-card:active, .card-interactive.vocab-card:active {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
}
.card.card-interactive::after, .card-interactive.action-card::after, .card-interactive.floating-card::after, .flip-card .card-interactive.flip-card-content::after, .card-interactive.info-card::after, .card-interactive.achievement-card::after, .card-interactive.progress-card::after, .chapter-card::after, .lesson-card::after, .card-interactive.vocab-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 400ms;
  pointer-events: none;
}

.vocab-card {
  min-height: 200px;
}
.vocab-card .vocab-header {
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}
.vocab-card .vocab-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #c73e1d;
}
.vocab-card .vocab-header .vocab-character {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 3rem;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.vocab-card .vocab-header .vocab-traditional {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  color: #6b6b6b;
  margin-left: 0.75rem;
}
.vocab-card .vocab-body .vocab-pinyin {
  font-size: 1.25rem;
  color: #404040;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.vocab-card .vocab-body .vocab-pinyin .tone-mark {
  position: relative;
  font-weight: 500;
}
.vocab-card .vocab-body .vocab-pinyin .tone-mark.tone-1::after {
  content: "¯";
  position: absolute;
  top: -0.3em;
  left: 0;
  right: 0;
  text-align: center;
  color: #c73e1d;
}
.vocab-card .vocab-body .vocab-pinyin .tone-mark.tone-2::after {
  content: "´";
  position: absolute;
  top: -0.3em;
  left: 0;
  right: 0;
  text-align: center;
  color: #4a7c59;
}
.vocab-card .vocab-body .vocab-pinyin .tone-mark.tone-3::after {
  content: "ˇ";
  position: absolute;
  top: -0.3em;
  left: 0;
  right: 0;
  text-align: center;
  color: #4a6fa5;
}
.vocab-card .vocab-body .vocab-pinyin .tone-mark.tone-4::after {
  content: "`";
  position: absolute;
  top: -0.3em;
  left: 0;
  right: 0;
  text-align: center;
  color: #b08456;
}
.vocab-card .vocab-body .vocab-definition {
  color: #404040;
  line-height: 1.8;
}
.vocab-card .vocab-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(149, 149, 149, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vocab-card .vocab-footer .vocab-tags {
  display: flex;
  gap: 0.5rem;
}
.vocab-card .vocab-footer .vocab-tags .tag {
  padding: 0.25rem 0.5rem;
  background: rgba(149, 149, 149, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #404040;
}
.vocab-card .vocab-footer .vocab-tags .tag.tag-hsk {
  background: rgba(199, 62, 29, 0.1);
  color: #9e2f14;
}
.vocab-card .vocab-footer .vocab-tags .tag.tag-new {
  background: rgba(74, 124, 89, 0.1);
  color: #345540;
}
.vocab-card .vocab-footer .vocab-actions {
  display: flex;
  gap: 0.5rem;
}
.vocab-card .vocab-footer .vocab-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #959595;
  background: white;
  color: #6b6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms;
}
.vocab-card .vocab-footer .vocab-actions button:hover {
  border-color: #c73e1d;
  color: #c73e1d;
  transform: scale(1.1);
}

.chapter-card .card-number, .lesson-card .card-number {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c73e1d, #9e2f14);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
  z-index: 2;
}
.chapter-card .card-title, .lesson-card .card-title {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  padding-right: 3rem;
}
.chapter-card .card-description, .lesson-card .card-description {
  color: #6b6b6b;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.chapter-card .card-stats, .lesson-card .card-stats {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(149, 149, 149, 0.1);
}
.chapter-card .card-stats .stat, .lesson-card .card-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chapter-card .card-stats .stat .stat-icon, .lesson-card .card-stats .stat .stat-icon {
  width: 20px;
  height: 20px;
  color: #6b6b6b;
}
.chapter-card .card-stats .stat .stat-value, .lesson-card .card-stats .stat .stat-value {
  font-weight: 500;
  color: #404040;
}

.progress-card .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.progress-card .progress-header h4 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.25rem;
  color: #1a1a1a;
}
.progress-card .progress-header .progress-percentage {
  font-size: 2rem;
  font-weight: 700;
  color: #4a7c59;
}
.progress-card .progress-bar-container {
  height: 8px;
  background: rgba(149, 149, 149, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-card .progress-bar-container .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a7c59, #6fa383);
  border-radius: inherit;
  position: relative;
  transition: width 400ms cubic-bezier(0, 0, 0.2, 1);
}
.progress-card .progress-bar-container .progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}
.progress-card .progress-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.progress-card .progress-details .detail .detail-label {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 0.25rem;
}
.progress-card .progress-details .detail .detail-value {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
}

.achievement-card {
  text-align: center;
  padding: 1.5rem;
}
.achievement-card.unlocked {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), rgba(226, 193, 159, 0.05));
  border: 2px solid #d4a574;
}
.achievement-card.unlocked .achievement-icon {
  color: #d4a574;
}
.achievement-card.locked {
  opacity: 0.6;
  filter: grayscale(100%);
}
.achievement-card.locked .achievement-icon {
  color: #959595;
}
.achievement-card .achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.achievement-card .achievement-icon::before, .achievement-card .achievement-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #d4a574;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.achievement-card .achievement-icon::after {
  animation-delay: 1s;
}
.achievement-card .achievement-name {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.achievement-card .achievement-description {
  font-size: 0.9375rem;
  color: #6b6b6b;
  line-height: 1.6;
}
.achievement-card .achievement-date {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #959595;
}

.info-card {
  border-left: 4px solid #4a6fa5;
  background: rgba(74, 111, 165, 0.05);
}
.info-card .info-icon {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: 0.75rem;
  background: #4a6fa5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.info-card .info-content {
  overflow: hidden;
}
.info-card .info-content h4 {
  font-size: 1.25rem;
  color: #436495;
  margin-bottom: 0.5rem;
}
.info-card .info-content p {
  color: #404040;
  line-height: 1.8;
}

.flip-card {
  width: 100%;
  height: 300px;
  perspective: 1000px;
}
.flip-card .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 250ms;
}
.flip-card .flip-card-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  max-width: 320px;
  animation: slideUp 400ms cubic-bezier(0, 0, 0.2, 1);
}
.floating-card.floating-left {
  right: auto;
  left: 2rem;
}
.floating-card .floating-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
}
.floating-card .floating-close:hover {
  background: #c73e1d;
  color: white;
  transform: scale(1.1);
}

.lesson-card {
  padding: 1.5rem;
  transition: all 250ms;
  cursor: pointer;
}
.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
  border-color: #d4a574;
}
.lesson-card .lesson-header {
  margin-bottom: 1rem;
}
.lesson-card .lesson-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}
.lesson-card .lesson-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #6b6b6b;
  font-size: 0.9375rem;
}
.lesson-card .lesson-meta .meta-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(250, 248, 243, 0.5);
  border-radius: 0.25rem;
}
.lesson-card .lesson-meta .meta-divider {
  color: #d4a574;
}
.lesson-card .lesson-description {
  color: #404040;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.lesson-card .lesson-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(149, 149, 149, 0.2);
}

.chapter-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}
.chapter-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c73e1d, #d4a574);
}
.chapter-card .chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.chapter-card .chapter-info {
  flex: 1;
}
.chapter-card .chapter-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chapter-card .chapter-title .order-badge {
  font-size: 0.9375rem;
  padding: 0.25rem 0.5rem;
  background: #faf8f3;
  border-radius: 0.25rem;
  color: #6b6b6b;
}
.chapter-card .chapter-meta {
  font-size: 0.9375rem;
  color: #6b6b6b;
}
.chapter-card .chapter-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chapter-card .lessons-container {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #faf8f3;
}
.chapter-card .lessons-container .lesson-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(250, 248, 243, 0.3);
  border-radius: 0.75rem;
}
.chapter-card .lessons-container .lesson-item .lesson-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chapter-card .lessons-container .lesson-item .lesson-info {
  flex: 1;
}
.chapter-card .lessons-container .lesson-item .lesson-name {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}
.chapter-card .lessons-container .lesson-item .lesson-description {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin: 0;
}
.chapter-card .lessons-container .lesson-item .lesson-actions {
  display: flex;
  gap: 0.25rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 250ms;
}
.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.18);
}
.action-card:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}
.action-card .action-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 250ms;
}
.action-card .action-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}
.action-card .action-content p {
  font-size: 1rem;
  color: #6b6b6b;
  margin: 0;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.vocab-grid .vocab-card {
  min-height: 180px;
  padding: 1rem;
}
.vocab-grid .vocab-card .vocab-chinese {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  text-align: center;
}
.vocab-grid .vocab-card .vocab-chinese .traditional-char {
  font-size: 1rem;
  color: #6b6b6b;
}
.vocab-grid .vocab-card .vocab-pinyin {
  font-size: 1rem;
  color: #c73e1d;
  text-align: center;
  margin-bottom: 0.75rem;
}
.vocab-grid .vocab-card .vocab-pinyin .zhuyin-text {
  color: #6b6b6b;
}
.vocab-grid .vocab-card .vocab-meaning {
  font-size: 0.9375rem;
  color: #404040;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.vocab-grid .vocab-card .vocab-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(149, 149, 149, 0.2);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.student-grid .student-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(149, 149, 149, 0.2);
}
.student-grid .student-card .student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c73e1d, #d4a574);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.student-grid .student-card .student-info {
  flex: 1;
  font-size: 0.9375rem;
  color: #1a1a1a;
}

.class-card {
  padding: 1rem;
}
.class-card .class-card-header .class-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}
.class-card .class-card-header .invitation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 0.25rem;
  font-size: 0.9375rem;
}
.class-card .class-card-header .invitation-badge .badge-label {
  color: #6b6b6b;
}
.class-card .class-card-header .invitation-badge .badge-code {
  font-weight: 600;
  color: #d4a574;
}
.class-card .class-card-footer {
  padding: 1rem;
  border-top: 1px solid rgba(149, 149, 149, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.class-card .class-card-footer .class-stats {
  font-size: 0.9375rem;
  color: #6b6b6b;
}
.class-card .class-card-footer .class-stats .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.invitation-box {
  background: rgba(212, 165, 116, 0.05);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.invitation-box .invitation-label {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}
.invitation-box .invitation-code-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.invitation-box .invitation-code-container .invitation-code-display {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4a574;
  background: white;
  padding: 0.75rem;
  border-radius: 0.25rem;
  text-align: center;
  letter-spacing: 0.1em;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dashboard-container, .detail-container {
  min-height: calc(100vh - 64px);
  background: #faf8f3;
  position: relative;
  padding: 2rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
.dashboard-container::before, .detail-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(ellipse at top left, #1a1a1a 0%, transparent 50%), radial-gradient(ellipse at bottom right, #6b6b6b 0%, transparent 50%);
  z-index: 0;
}
.dashboard-container .dashboard-content, .detail-container .dashboard-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.detail-container .detail-header .detail-title {
  flex: 1;
}
.detail-container .detail-header .detail-actions {
  display: flex;
  gap: 0.75rem;
}
.detail-container .detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-header, .detail-container .detail-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
  position: relative;
}
.dashboard-header::after, .detail-container .detail-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4a574 20%, #c73e1d 50%, #d4a574 80%, transparent 100%);
}
.dashboard-header .header-content, .detail-container .detail-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-header .dashboard-title, .detail-container .detail-header .dashboard-title {
  flex: 1;
  min-width: 0;
}
.dashboard-header .dashboard-title .page-title, .detail-container .detail-header .dashboard-title .page-title {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.dashboard-header .dashboard-title .page-subtitle, .detail-container .detail-header .dashboard-title .page-subtitle {
  font-size: 1.25rem;
  color: #6b6b6b;
  margin: 0;
}
.dashboard-header .dashboard-actions, .detail-container .detail-header .dashboard-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.dashboard-header h1, .detail-container .detail-header h1 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  position: relative;
}
.dashboard-header h1 .welcome-text, .detail-container .detail-header h1 .welcome-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: #6b6b6b;
  display: block;
  margin-bottom: 0.5rem;
}
.dashboard-header h1 .user-name, .detail-container .detail-header h1 .user-name {
  color: #c73e1d;
  font-weight: 600;
}
.dashboard-header .header-actions, .detail-container .detail-header .header-actions {
  display: flex;
  gap: 0.75rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card,
.detail-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(149, 149, 149, 0.2);
  transition: all 250ms;
}
.dashboard-card:hover,
.detail-card:hover {
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
  border-color: rgba(212, 165, 116, 0.5);
}
.dashboard-card .card-header,
.detail-card .card-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.8), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dashboard-card .card-header .card-title,
.detail-card .card-header .card-title {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 600;
}
.dashboard-card .card-header .card-subtitle,
.detail-card .card-header .card-subtitle {
  color: #6b6b6b;
  font-size: 1rem;
  margin-top: 0.25rem;
}
.dashboard-card .card-header .card-actions,
.detail-card .card-header .card-actions {
  display: flex;
  gap: 0.5rem;
}
.dashboard-card .card-body,
.detail-card .card-body {
  padding: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
  border: 1px solid rgba(149, 149, 149, 0.2);
  transition: all 250ms;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
  border-color: rgba(212, 165, 116, 0.5);
}
.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: saturate(0.8);
}
.stat-card .stat-content .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.stat-card .stat-content .stat-label {
  font-size: 0.9375rem;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b6b6b;
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}
.empty-state p {
  margin-bottom: 1rem;
}
.empty-state .empty-action {
  margin-top: 1.5rem;
}

.dashboard-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.dashboard-quick-stats .quick-stat {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(149, 149, 149, 0.1);
}
.dashboard-quick-stats .quick-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #d4a574 0%, #e2c19f 100%);
}
.dashboard-quick-stats .quick-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
}
.dashboard-quick-stats .quick-stat:hover .stat-icon {
  transform: rotate(10deg) scale(1.1);
}
.dashboard-quick-stats .quick-stat .stat-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 250ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.dashboard-quick-stats .quick-stat .stat-icon svg, .dashboard-quick-stats .quick-stat .stat-icon .icon-char {
  width: 24px;
  height: 24px;
  color: #b08456;
}
.dashboard-quick-stats .quick-stat .stat-icon .icon-char {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.5rem;
}
.dashboard-quick-stats .quick-stat .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.dashboard-quick-stats .quick-stat .stat-label {
  font-size: 0.9375rem;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dashboard-quick-stats .quick-stat .stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(74, 124, 89, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #345540;
}
.dashboard-quick-stats .quick-stat .stat-trend.trend-down {
  background: rgba(199, 62, 29, 0.1);
  color: #9e2f14;
}
.dashboard-quick-stats .quick-stat.stat-students::before {
  background: linear-gradient(135deg, #4a7c59 0%, #6fa383 100%);
}
.dashboard-quick-stats .quick-stat.stat-students .stat-icon {
  background: rgba(74, 124, 89, 0.1);
}
.dashboard-quick-stats .quick-stat.stat-students .stat-icon .icon-char {
  color: #345540;
}
.dashboard-quick-stats .quick-stat.stat-lessons::before {
  background: linear-gradient(135deg, #4a6fa5, #577cb3);
}
.dashboard-quick-stats .quick-stat.stat-lessons .stat-icon {
  background: rgba(74, 111, 165, 0.1);
}
.dashboard-quick-stats .quick-stat.stat-lessons .stat-icon .icon-char {
  color: #436495;
}
.dashboard-quick-stats .quick-stat.stat-progress::before {
  background: linear-gradient(135deg, #c73e1d 0%, #d9634a 100%);
}
.dashboard-quick-stats .quick-stat.stat-progress .stat-icon {
  background: rgba(199, 62, 29, 0.1);
}
.dashboard-quick-stats .quick-stat.stat-progress .stat-icon .icon-char {
  color: #9e2f14;
}

.dashboard-classes {
  margin-bottom: 3rem;
}
.dashboard-classes .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.dashboard-classes .section-header h2 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2rem;
  color: #1a1a1a;
  position: relative;
}
.dashboard-classes .section-header h2 .chinese-subtitle {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  color: #6b6b6b;
  font-weight: 300;
  margin-left: 0.75rem;
}
.dashboard-classes .section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #c73e1d;
}
.dashboard-classes .section-header .section-actions {
  display: flex;
  gap: 0.5rem;
}
.dashboard-classes .class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.class-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(149, 149, 149, 0.1);
}
.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
}
.class-card:hover .class-header {
  background-position: center 40%;
}
.class-card:hover .class-image-overlay {
  opacity: 0.7;
}
.class-card .class-header {
  height: 120px;
  background: linear-gradient(135deg, #c73e1d 0%, #9e2f14 100%);
  position: relative;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  transition: background-position 400ms;
  background-size: 110%;
  background-position: center 50%;
}
.class-card .class-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
  pointer-events: none;
}
.class-card .class-header .class-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent);
  opacity: 0.5;
  transition: opacity 250ms;
}
.class-card .class-header .class-code {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(26, 26, 26, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: "JetBrains Mono", "SF Mono", "Monaco", monospace;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}
.class-card .class-header h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(26, 26, 26, 0.3);
}
.class-card .class-body {
  padding: 1.5rem;
}
.class-card .class-body .class-description {
  color: #6b6b6b;
  line-height: 1.8;
  margin-bottom: 1rem;
  min-height: 3em;
}
.class-card .class-body .class-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(149, 149, 149, 0.2);
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
  margin-bottom: 1rem;
}
.class-card .class-body .class-stats .stat {
  text-align: center;
}
.class-card .class-body .class-stats .stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
}
.class-card .class-body .class-stats .stat .stat-label {
  font-size: 0.875rem;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.class-card .class-body .class-actions {
  display: flex;
  gap: 0.5rem;
}
.class-card .class-body .class-actions .btn {
  flex: 1;
}

.dashboard-activity {
  margin-bottom: 3rem;
}
.dashboard-activity .activity-timeline {
  position: relative;
  padding-left: 3rem;
}
.dashboard-activity .activity-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #c73e1d 0%, rgba(199, 62, 29, 0.5) 50%, transparent 100%);
}
.dashboard-activity .activity-timeline .activity-item {
  position: relative;
  margin-bottom: 1.5rem;
  animation: fadeInUp 250ms cubic-bezier(0, 0, 0.2, 1);
}
.dashboard-activity .activity-timeline .activity-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: white;
  border: 3px solid #c73e1d;
  border-radius: 50%;
  z-index: 1;
}
.dashboard-activity .activity-timeline .activity-item:hover .activity-card {
  transform: translateX(5px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
}
.dashboard-activity .activity-timeline .activity-item .activity-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-header .activity-title {
  font-weight: 500;
  color: #1a1a1a;
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-header .activity-time {
  font-size: 0.875rem;
  color: #6b6b6b;
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-description {
  color: #404040;
  line-height: 1.6;
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(149, 149, 149, 0.2);
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  color: #6b6b6b;
}
.dashboard-activity .activity-timeline .activity-item .activity-card .activity-meta .meta-item .meta-icon {
  width: 16px;
  height: 16px;
}
.dashboard-activity .activity-timeline .activity-item.activity-study::before {
  border-color: #4a7c59;
}
.dashboard-activity .activity-timeline .activity-item.activity-lesson::before {
  border-color: #4a6fa5;
}
.dashboard-activity .activity-timeline .activity-item.activity-achievement::before {
  border-color: #d4a574;
}

.dashboard-empty-state {
  text-align: center;
  padding: 5rem 1rem;
}
.dashboard-empty-state .empty-illustration {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  background: radial-gradient(ellipse, rgba(149, 149, 149, 0.1), transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dashboard-empty-state .empty-illustration::before {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  height: 40%;
  background: linear-gradient(to top, #959595, transparent);
  clip-path: polygon(0 100%, 30% 40%, 50% 60%, 70% 30%, 100% 100%);
  opacity: 0.3;
}
.dashboard-empty-state .empty-illustration .empty-icon {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 3rem;
  color: #959595;
}
.dashboard-empty-state h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}
.dashboard-empty-state p {
  color: #6b6b6b;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-progress-chart {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  margin-bottom: 2rem;
}
.dashboard-progress-chart .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.dashboard-progress-chart .chart-header h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.5rem;
  color: #1a1a1a;
}
.dashboard-progress-chart .chart-header .chart-controls {
  display: flex;
  gap: 0.5rem;
}
.dashboard-progress-chart .chart-header .chart-controls button {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid #959595;
  border-radius: 0.5rem;
  color: #404040;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 150ms;
}
.dashboard-progress-chart .chart-header .chart-controls button:hover {
  border-color: #c73e1d;
  color: #c73e1d;
}
.dashboard-progress-chart .chart-header .chart-controls button.active {
  background: #c73e1d;
  color: white;
  border-color: #c73e1d;
}
.dashboard-progress-chart .chart-container {
  height: 300px;
  position: relative;
}
.dashboard-progress-chart .chart-container .chart-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(74, 124, 89, 0.1), rgba(212, 165, 116, 0.1), rgba(199, 62, 29, 0.1));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
}

.assignments-dashboard {
  padding: 2rem 0;
  background: linear-gradient(to bottom, #faf8f3 0%, #f5f0e8 100%);
  min-height: calc(100vh - 64px);
  position: relative;
}
.assignments-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.03) 30%, rgba(26, 26, 26, 0.08) 70%, rgba(26, 26, 26, 0.12) 100%);
  pointer-events: none;
  opacity: 0.3;
}
.assignments-dashboard .dashboard-header, .assignments-dashboard .detail-container .detail-header, .detail-container .assignments-dashboard .detail-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.assignments-dashboard .dashboard-header h1, .assignments-dashboard .detail-container .detail-header h1, .detail-container .assignments-dashboard .detail-header h1 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 3rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.assignments-dashboard .dashboard-header h1 .chinese-title, .assignments-dashboard .detail-container .detail-header h1 .chinese-title, .detail-container .assignments-dashboard .detail-header h1 .chinese-title {
  display: block;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2rem;
  color: #404040;
  font-weight: 300;
  margin-top: 0.5rem;
}
.assignments-dashboard .dashboard-header .study-motto, .assignments-dashboard .detail-container .detail-header .study-motto, .detail-container .assignments-dashboard .detail-header .study-motto {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.125rem;
  color: #6b6b6b;
  font-style: italic;
}
.assignments-dashboard .dashboard-header .study-motto::before, .assignments-dashboard .detail-container .detail-header .study-motto::before, .detail-container .assignments-dashboard .detail-header .study-motto::before, .assignments-dashboard .dashboard-header .study-motto::after, .assignments-dashboard .detail-container .detail-header .study-motto::after, .detail-container .assignments-dashboard .detail-header .study-motto::after {
  content: "〜";
  margin: 0 0.5rem;
  color: #d4a574;
}
.assignments-dashboard .container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.assignments-dashboard .dashboard-actions {
  margin-top: 2rem;
  text-align: center;
}

.assignments-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}
.assignments-stats .stat-card {
  background: #faf8f3;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(149, 149, 149, 0.1);
  overflow: hidden;
}
.assignments-stats .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 165, 116, 0.1) 50%);
}
.assignments-stats .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
}
.assignments-stats .stat-card .card-body {
  position: relative;
  z-index: 1;
}
.assignments-stats .stat-card .stat-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}
.assignments-stats .stat-card .stat-value {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1;
}
.assignments-stats .stat-card .stat-sublabel {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-top: 0.5rem;
  display: block;
}
.assignments-stats .stat-card.stat-success {
  border-left: 3px solid #4a7c59;
}
.assignments-stats .stat-card.stat-success .stat-value {
  color: #345540;
}
.assignments-stats .stat-card.stat-warning {
  border-left: 3px solid #d4a574;
}
.assignments-stats .stat-card.stat-warning .stat-value {
  color: #b08456;
}
.assignments-stats .stat-card.stat-danger {
  border-left: 3px solid #c73e1d;
}
.assignments-stats .stat-card.stat-danger .stat-value {
  color: #9e2f14;
}

.study-dashboard {
  padding: 2rem 0;
  background: linear-gradient(to bottom, #faf8f3 0%, #f5f0e8 100%);
  min-height: calc(100vh - 64px);
  position: relative;
}
.study-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.03) 30%, rgba(26, 26, 26, 0.08) 70%, rgba(26, 26, 26, 0.12) 100%);
  pointer-events: none;
  opacity: 0.3;
}
.study-dashboard .dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.study-dashboard .dashboard-header h1 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 3rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.study-dashboard .dashboard-header h1 .chinese-title {
  display: block;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2rem;
  color: #404040;
  font-weight: 300;
  margin-top: 0.5rem;
}
.study-dashboard .dashboard-header .study-motto {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.125rem;
  color: #6b6b6b;
  font-style: italic;
}
.study-dashboard .dashboard-header .study-motto::before, .study-dashboard .dashboard-header .study-motto::after {
  content: "〜";
  margin: 0 0.5rem;
  color: #d4a574;
}

.study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}
.study-stats .stat-card {
  background: #faf8f3;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(149, 149, 149, 0.1);
  overflow: hidden;
}
.study-stats .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 165, 116, 0.1) 50%);
}
.study-stats .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1), 0 2px 4px rgba(26, 26, 26, 0.08);
}
.study-stats .stat-card .stat-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.study-stats .stat-card .stat-value {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1;
}
.study-stats .stat-card .stat-value.has-chinese {
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 3rem;
}
.study-stats .stat-card .stat-sublabel {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-top: 0.5rem;
}
.study-stats .stat-card.stat-success {
  border-left: 3px solid #4a7c59;
}
.study-stats .stat-card.stat-success .stat-value {
  color: #345540;
}
.study-stats .stat-card.stat-warning {
  border-left: 3px solid #d4a574;
}
.study-stats .stat-card.stat-warning .stat-value {
  color: #b08456;
}
.study-stats .stat-card.stat-danger {
  border-left: 3px solid #c73e1d;
}
.study-stats .stat-card.stat-danger .stat-value {
  color: #9e2f14;
}

.study-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
  margin-bottom: 3rem;
}
.study-modes .study-mode-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  transition: all 400ms cubic-bezier(0, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
}
.study-modes .study-mode-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 165, 116, 0.02) 10px, rgba(212, 165, 116, 0.02) 20px);
  transform: rotate(45deg);
  pointer-events: none;
  transition: opacity 250ms;
  opacity: 0;
}
.study-modes .study-mode-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
  border-color: rgba(199, 62, 29, 0.2);
}
.study-modes .study-mode-card:hover::after {
  opacity: 1;
}
.study-modes .study-mode-card:hover .mode-icon {
  transform: scale(1.1) rotate(5deg);
}
.study-modes .study-mode-card .mode-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  transition: transform 250ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: linear-gradient(135deg, #d4a574 0%, #e2c19f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.study-modes .study-mode-card h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}
.study-modes .study-mode-card p {
  color: #6b6b6b;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.study-modes .study-mode-card .mode-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.study-modes .study-mode-card .mode-action .card-count {
  font-size: 0.9375rem;
  color: #6b6b6b;
}
.study-modes .study-mode-card .mode-action .card-count strong {
  color: #c73e1d;
  font-size: 1.25rem;
}

.flashcard-container {
  max-width: 600px;
  margin: 0 auto;
}
.flashcard-container .flashcard {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
  min-height: 400px;
  padding-bottom: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.flashcard-container .flashcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(250, 248, 243, 0.4), transparent 40%), radial-gradient(ellipse at bottom right, rgba(237, 231, 220, 0.3), transparent 40%);
  border-radius: inherit;
  pointer-events: none;
}
.flashcard-container .flashcard::after {
  content: "学";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #c73e1d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
  transform: rotate(-15deg);
}
.flashcard-container .flashcard .character-display {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1;
  position: relative;
}
.flashcard-container .flashcard .character-display:hover .stroke-hint {
  opacity: 1;
}
.flashcard-container .flashcard .character-display .stroke-hint {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9375rem;
  color: #959595;
  opacity: 0;
  transition: opacity 250ms;
}
.flashcard-container .flashcard .traditional-display {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
}
.flashcard-container .flashcard .pinyin-display {
  font-size: 2rem;
  color: #404040;
  margin-bottom: 0.75rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
}
.flashcard-container .flashcard .pinyin-display .tone-1 {
  color: #c73e1d;
}
.flashcard-container .flashcard .pinyin-display .tone-2 {
  color: #4a7c59;
}
.flashcard-container .flashcard .pinyin-display .tone-3 {
  color: #4a6fa5;
}
.flashcard-container .flashcard .pinyin-display .tone-4 {
  color: #b08456;
}
.flashcard-container .flashcard .pinyin-display .tone-5 {
  color: #6b6b6b;
}
.flashcard-container .flashcard .definition-display {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  color: #404040;
  line-height: 1.8;
  max-width: 80%;
}

.answer-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(250, 248, 243, 0.5);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}
.answer-section .answer-prompt {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #404040;
}
.answer-section .answer-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.answer-section .answer-choices .choice-btn {
  padding: 1rem;
  background: white;
  border: 2px solid #959595;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.answer-section .answer-choices .choice-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(199, 62, 29, 0.1), transparent);
  transform: translate(-50%, -50%);
  transition: width 250ms, height 250ms;
}
.answer-section .answer-choices .choice-btn:hover {
  border-color: #c73e1d;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}
.answer-section .answer-choices .choice-btn:hover::before {
  width: 100%;
  height: 100%;
}
.answer-section .answer-choices .choice-btn.selected {
  background: rgba(199, 62, 29, 0.05);
  border-color: #c73e1d;
}
.answer-section .answer-choices .choice-btn.correct {
  background: rgba(74, 124, 89, 0.05);
  border-color: #4a7c59;
  color: #345540;
}
.answer-section .answer-choices .choice-btn.incorrect {
  background: rgba(199, 62, 29, 0.05);
  border-color: #c73e1d;
  color: #9e2f14;
}
.answer-section .answer-input {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
.answer-section .answer-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  border: 2px solid #959595;
  border-radius: 0.5rem;
  background: white;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.answer-section .answer-input input:focus {
  outline: none;
  border-color: #c73e1d;
  box-shadow: 0 0 0 3px rgba(199, 62, 29, 0.1);
}
.answer-section .answer-input input.input-chinese {
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 1.5rem;
}

.study-progress {
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.study-progress .progress-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: #6b6b6b;
}
.study-progress .progress-stats .progress-label {
  font-weight: 500;
}
.study-progress .progress-stats .progress-value {
  color: #1a1a1a;
  font-weight: 700;
}
.study-progress .progress-bar {
  height: 12px;
  background: rgba(149, 149, 149, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.study-progress .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #d4a574 0%, #e2c19f 100%);
  border-radius: inherit;
  transition: width 400ms cubic-bezier(0, 0, 0.2, 1);
  position: relative;
}
.study-progress .progress-bar .progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}
.study-progress .progress-bar .milestone {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: #959595;
}
.study-progress .progress-bar .milestone.milestone-25 {
  left: 25%;
}
.study-progress .progress-bar .milestone.milestone-50 {
  left: 50%;
}
.study-progress .progress-bar .milestone.milestone-75 {
  left: 75%;
}

.study-feedback {
  text-align: center;
  padding: 2rem;
  animation: fadeIn 250ms cubic-bezier(0, 0, 0.2, 1);
}
.study-feedback.feedback-correct .feedback-icon {
  color: #4a7c59;
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounceIn 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.study-feedback.feedback-correct .feedback-message {
  color: #345540;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.study-feedback.feedback-incorrect .feedback-icon {
  color: #c73e1d;
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: shake 250ms;
}
.study-feedback.feedback-incorrect .feedback-message {
  color: #9e2f14;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.study-feedback.feedback-incorrect .correct-answer {
  padding: 1rem;
  background: rgba(250, 248, 243, 0.8);
  border-radius: 0.5rem;
  border-left: 4px solid #4a7c59;
  margin: 1rem 0;
}
.study-feedback.feedback-incorrect .correct-answer .label {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}
.study-feedback.feedback-incorrect .correct-answer .value {
  font-size: 1.5rem;
  color: #345540;
  font-weight: 500;
}
.study-feedback.feedback-incorrect .correct-answer .value.value-chinese {
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 2rem;
}
.study-feedback .feedback-explanation {
  color: #404040;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.study-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.study-controls .study-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.study-controls .study-btn.btn-primary {
  background: #c73e1d;
  color: white;
}
.study-controls .study-btn.btn-primary:hover {
  background: #9e2f14;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
}
.study-controls .study-btn.btn-secondary {
  background: white;
  color: #1a1a1a;
  border: 2px solid #959595;
}
.study-controls .study-btn.btn-secondary:hover {
  border-color: #c73e1d;
  color: #c73e1d;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}
.study-controls .study-btn.btn-skip {
  background: transparent;
  color: #6b6b6b;
}
.study-controls .study-btn.btn-skip:hover {
  color: #1a1a1a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.srs-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(250, 248, 243, 0.8);
  border-radius: 9999px;
  font-size: 0.9375rem;
}
.srs-indicator .srs-label {
  color: #6b6b6b;
}
.srs-indicator .srs-value {
  font-weight: 700;
}
.srs-indicator .srs-value.srs-new {
  color: #4a6fa5;
}
.srs-indicator .srs-value.srs-learning {
  color: #d4a574;
}
.srs-indicator .srs-value.srs-review {
  color: #4a7c59;
}
.srs-indicator .srs-value.srs-relearning {
  color: #c73e1d;
}
.srs-indicator .srs-dots {
  display: flex;
  gap: 4px;
}
.srs-indicator .srs-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #959595;
}
.srs-indicator .srs-dots .dot.active {
  background: #4a7c59;
}

.page-title {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #6b6b6b;
  margin: 0;
}

.section-title {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2rem;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #404040;
  margin: 0 0 0.75rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: #faf8f3;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #404040;
  margin-left: 0.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(149, 149, 149, 0.2);
  padding-bottom: 0;
}
.tab-nav .tab-btn {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b6b6b;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
  margin-bottom: -2px;
}
.tab-nav .tab-btn:hover {
  color: #1a1a1a;
  background: rgba(250, 248, 243, 0.5);
}
.tab-nav .tab-btn.active {
  color: #c73e1d;
  border-bottom-color: #c73e1d;
  font-weight: 600;
}

.tab-content {
  padding: 1rem 0;
}
.tab-content:not(:first-of-type) {
  display: none;
}
.tab-content.active {
  display: block;
}

.filter-section {
  margin-bottom: 2rem;
}
.filter-section .filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.mastery-legend {
  margin-top: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}
.mastery-legend .legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}
.mastery-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mastery-legend .legend-item .legend-color {
  width: 24px;
  height: 24px;
  border-radius: 0.25rem;
  border: 1px solid rgba(149, 149, 149, 0.3);
}
.mastery-legend .legend-item .legend-color.mastery-mastered {
  background: linear-gradient(135deg, #4a7c59, #6fa383);
}
.mastery-legend .legend-item .legend-color.mastery-familiar {
  background: linear-gradient(135deg, #4a6fa5, #577cb3);
}
.mastery-legend .legend-item .legend-color.mastery-learning {
  background: linear-gradient(135deg, #d4a574, #d8ae82);
}
.mastery-legend .legend-item .legend-color.mastery-struggling {
  background: linear-gradient(135deg, #c73e1d, #df4621);
}
.mastery-legend .legend-item .legend-text {
  font-size: 0.9375rem;
  color: #404040;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
}
.heatmap-grid .vocab-tile {
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 250ms;
  border: 1px solid rgba(149, 149, 149, 0.2);
  position: relative;
  overflow: hidden;
}
.heatmap-grid .vocab-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
}
.heatmap-grid .vocab-tile .vocab-character {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.heatmap-grid .vocab-tile .vocab-pinyin {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 0.25rem;
}
.heatmap-grid .vocab-tile .mastery-indicator {
  font-size: 1.25rem;
  opacity: 0.8;
}
.heatmap-grid .vocab-tile.mastery-mastered {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.1), rgba(74, 124, 89, 0.05));
  border-color: rgba(74, 124, 89, 0.3);
}
.heatmap-grid .vocab-tile.mastery-mastered .vocab-character {
  color: #345540;
}
.heatmap-grid .vocab-tile.mastery-familiar {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05));
  border-color: rgba(74, 111, 165, 0.3);
}
.heatmap-grid .vocab-tile.mastery-familiar .vocab-character {
  color: #436495;
}
.heatmap-grid .vocab-tile.mastery-learning {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05));
  border-color: rgba(212, 165, 116, 0.3);
}
.heatmap-grid .vocab-tile.mastery-learning .vocab-character {
  color: #cc955b;
}
.heatmap-grid .vocab-tile.mastery-struggling {
  background: linear-gradient(135deg, rgba(199, 62, 29, 0.1), rgba(199, 62, 29, 0.05));
  border-color: rgba(199, 62, 29, 0.3);
}
.heatmap-grid .vocab-tile.mastery-struggling .vocab-character {
  color: #c73e1d;
}

.text-muted {
  color: #6b6b6b !important;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.m-1 {
  margin: 0.25rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.p-1 {
  padding: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.m-2 {
  margin: 0.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.m-3 {
  margin: 0.75rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pl-3 {
  padding-left: 0.75rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.p-3 {
  padding: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.m-4 {
  margin: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pr-4 {
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.p-4 {
  padding: 1rem;
}

.mt-5 {
  margin-top: 1.5rem;
}

.mb-5 {
  margin-bottom: 1.5rem;
}

.ml-5 {
  margin-left: 1.5rem;
}

.mr-5 {
  margin-right: 1.5rem;
}

.mx-5 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.my-5 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.m-5 {
  margin: 1.5rem;
}

.pt-5 {
  padding-top: 1.5rem;
}

.pb-5 {
  padding-bottom: 1.5rem;
}

.pl-5 {
  padding-left: 1.5rem;
}

.pr-5 {
  padding-right: 1.5rem;
}

.px-5 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-5 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.p-5 {
  padding: 1.5rem;
}

.mt-6 {
  margin-top: 2rem;
}

.mb-6 {
  margin-bottom: 2rem;
}

.ml-6 {
  margin-left: 2rem;
}

.mr-6 {
  margin-right: 2rem;
}

.mx-6 {
  margin-left: 2rem;
  margin-right: 2rem;
}

.my-6 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.m-6 {
  margin: 2rem;
}

.pt-6 {
  padding-top: 2rem;
}

.pb-6 {
  padding-bottom: 2rem;
}

.pl-6 {
  padding-left: 2rem;
}

.pr-6 {
  padding-right: 2rem;
}

.px-6 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-6 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.p-6 {
  padding: 2rem;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.flex-row {
  flex-direction: row;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.align-stretch {
  align-items: stretch;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.5rem;
}

.gap-6 {
  gap: 2rem;
}

.border {
  border: 1px solid rgba(149, 149, 149, 0.2);
}

.border-top {
  border-top: 1px solid rgba(149, 149, 149, 0.2);
}

.border-bottom {
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
}

.border-left {
  border-left: 1px solid rgba(149, 149, 149, 0.2);
}

.border-right {
  border-right: 1px solid rgba(149, 149, 149, 0.2);
}

.border-0 {
  border: none;
}

.rounded {
  border-radius: 0.5rem;
}

.rounded-sm {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.75rem;
}

.rounded-lg {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 50%;
}

.rounded-0 {
  border-radius: 0;
}

.shadow-sm {
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}

.shadow {
  box-shadow: 0 4px 8px rgba(26, 26, 26, 0.12);
}

.shadow-md {
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
}

.shadow-lg {
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.18);
}

.shadow-none {
  box-shadow: none;
}

.w-100 {
  width: 100%;
}

.w-75 {
  width: 75%;
}

.w-50 {
  width: 50%;
}

.w-25 {
  width: 25%;
}

.w-auto {
  width: auto;
}

.h-100 {
  height: 100%;
}

.h-75 {
  height: 75%;
}

.h-50 {
  height: 50%;
}

.h-25 {
  height: 25%;
}

.h-auto {
  height: auto;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.position-sticky {
  position: sticky;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal[style*="display: none"] {
  display: none !important;
}
.modal .modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  position: relative;
}
.modal .modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(149, 149, 149, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal .modal-header h2 {
  margin: 0;
  font-family: "Crimson Pro", "Georgia", serif;
  color: #1a1a1a;
  font-size: 1.5rem;
}
.modal .modal-header .close-btn {
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  color: #6b6b6b;
  transition: color 150ms;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
}
.modal .modal-header .close-btn:hover {
  color: #c73e1d;
  transform: rotate(90deg);
}
.modal form {
  padding: 1.5rem;
}
.modal .form-group {
  margin-bottom: 1rem;
}
.modal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #959595;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 150ms;
  background: white;
}
.modal .form-group input:focus,
.modal .form-group textarea:focus,
.modal .form-group select:focus {
  outline: none;
  border-color: #c73e1d;
  box-shadow: 0 0 0 3px rgba(199, 62, 29, 0.1);
}
.modal .form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}
.modal .modal-actions {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(149, 149, 149, 0.2);
  background: rgba(250, 248, 243, 0.5);
}
.modal .modal-actions .btn {
  min-width: 100px;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal.modal-fullscreen .modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.modal.modal-sm .modal-content {
  max-width: 400px;
}
.modal.modal-lg .modal-content {
  max-width: 900px;
}

.modal .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  color: #6b6b6b;
  transition: all 150ms;
  line-height: 1;
  z-index: 10;
  background: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}
.modal .modal-close:hover {
  color: #c73e1d;
  transform: rotate(90deg);
}
.modal .modal-simplified {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  font-weight: 700;
}
.modal .modal-traditional {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 2rem;
  color: #404040;
  margin-left: 0.5rem;
}
.modal .modal-pinyin {
  font-size: 1.25rem;
  color: #c73e1d;
  margin-top: 0.5rem;
  font-weight: 500;
}
.modal .modal-definition {
  font-size: 1rem;
  color: #404040;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.modal .modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.5), rgba(245, 240, 232, 0.3));
  border-radius: 0.75rem;
  margin: 1rem 1.5rem;
}
.modal .modal-stats .modal-stat {
  text-align: center;
  padding: 0.5rem;
}
.modal .modal-stats .modal-stat strong {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b6b6b;
  margin-bottom: 0.25rem;
}
.modal .modal-stats .modal-stat span {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}
.modal .modal-body {
  padding: 1.5rem;
}
.modal .modal-body h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c73e1d;
}
.modal .timeline {
  position: relative;
  padding-left: 2rem;
  max-height: 400px;
  overflow-y: auto;
}
.modal .timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #c73e1d, transparent);
}
.modal .timeline .timeline-item {
  position: relative;
  margin-bottom: 1rem;
  animation: fadeInLeft 0.3s ease-out;
}
.modal .timeline .timeline-item:hover .timeline-badge {
  transform: scale(1.2);
}
.modal .timeline .timeline-item:hover .timeline-content {
  transform: translateX(5px);
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}
.modal .timeline .timeline-date {
  font-size: 0.875rem;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.modal .timeline .timeline-badge {
  position: absolute;
  left: -21px;
  top: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 3px solid #c73e1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  transition: transform 150ms;
}
.modal .timeline .timeline-badge.correct {
  background: #4a7c59;
  border-color: #4a7c59;
}
.modal .timeline .timeline-badge.incorrect {
  background: #c73e1d;
  border-color: #c73e1d;
}
.modal .timeline .timeline-content {
  background: white;
  border: 1px solid #959595;
  border-radius: 0.75rem;
  padding: 0.75rem;
  transition: all 150ms;
}
.modal .timeline .timeline-content div {
  font-size: 0.9375rem;
  color: #404040;
  margin: 0.25rem 0;
}
.modal .timeline .timeline-content div:first-child {
  font-weight: 500;
  color: #1a1a1a;
}
.modal .timeline .empty {
  text-align: center;
  color: #6b6b6b;
  font-style: italic;
  padding: 2rem 1rem;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 640px) {
  .modal {
    padding: 0.75rem;
  }
  .modal .modal-content {
    width: 100%;
    max-height: calc(100vh - 2rem);
  }
  .modal .modal-header {
    padding: 1rem;
  }
  .modal form {
    padding: 1rem;
  }
  .modal .modal-actions {
    padding: 0.75rem 1rem;
    flex-direction: column;
  }
  .modal .modal-actions .btn {
    width: 100%;
  }
  .modal .modal-stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 0.75rem;
    gap: 0.5rem;
  }
  .modal .modal-stats .modal-stat {
    padding: 0.5rem;
  }
  .modal .modal-stats .modal-stat strong {
    font-size: 10px;
  }
  .modal .modal-stats .modal-stat span {
    font-size: 1rem;
  }
  .modal .modal-body {
    padding: 1rem;
  }
  .modal .timeline {
    padding-left: 1.5rem;
  }
  .modal .timeline .timeline-badge {
    left: -18px;
    width: 24px;
    height: 24px;
  }
  .modal .timeline .timeline-content {
    padding: 0.5rem;
  }
}
.hero {
  background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
  padding: 3rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -200px;
  width: 400px;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L10 90 M30 20 L30 80 M50 15 L50 85' stroke='%23D4B6A6' stroke-width='2' fill='none' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  opacity: 0.3;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero .hero-title {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}
@media (min-width: 768px) {
  .hero .hero-title {
    font-size: 3rem;
  }
}
.hero .hero-subtitle {
  font-size: 1.25rem;
  color: #404040;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.1s;
  animation-fill-mode: both;
}
.hero .hero-welcome {
  font-size: 1rem;
  color: #c73e1d;
  margin-bottom: 1rem;
  font-weight: 500;
  animation: fadeInUp 0.6s ease-out 0.15s;
  animation-fill-mode: both;
}
.hero .hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.2s;
  animation-fill-mode: both;
}
.hero .hero-actions .btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.25rem;
  min-width: 160px;
}

.features {
  padding: 3rem 0;
  background: white;
}
.features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.features h2 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.features h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #c73e1d;
  border-radius: 2px;
}
.features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.features .feature-card {
  background: white;
  border: 1px solid #959595;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 250ms;
  position: relative;
  overflow: hidden;
}
.features .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c73e1d, #9e2f14);
  transform: translateX(-100%);
  transition: transform 250ms;
}
.features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
  border-color: #d9634a;
}
.features .feature-card:hover::before {
  transform: translateX(0);
}
.features .feature-card:hover h3 {
  color: #c73e1d;
}
.features .feature-card h3 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  transition: color 150ms;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.features .feature-card h3::before {
  content: "";
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d9634a, #c73e1d);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.features .feature-card:nth-child(1) h3::before {
  content: "📚";
  background: linear-gradient(135deg, #FFE5E5, #FFD6D6);
}
.features .feature-card:nth-child(2) h3::before {
  content: "🌏";
  background: linear-gradient(135deg, #E5F4FF, #D6EAFF);
}
.features .feature-card:nth-child(3) h3::before {
  content: "🎯";
  background: linear-gradient(135deg, #FFE5F5, #FFD6EC);
}
.features .feature-card:nth-child(4) h3::before {
  content: "✏️";
  background: linear-gradient(135deg, #E5FFE5, #D6FFD6);
}
.features .feature-card:nth-child(5) h3::before {
  content: "📊";
  background: linear-gradient(135deg, #FFF5E5, #FFEAD6);
}
.features .feature-card:nth-child(6) h3::before {
  content: "🎓";
  background: linear-gradient(135deg, #F5E5FF, #ECD6FF);
}
.features .feature-card p {
  color: #404040;
  line-height: 1.6;
  font-size: 1rem;
}

.cta {
  background: linear-gradient(135deg, #d9634a 0%, #c73e1d 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 20L20 0L40 20L20 40z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.cta .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}
.cta h2 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}
.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease-out 0.1s;
  animation-fill-mode: both;
}
.cta .btn {
  background: white;
  color: #c73e1d;
  padding: 0.75rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
  animation: fadeInUp 0.6s ease-out 0.2s;
  animation-fill-mode: both;
}
.cta .btn:hover {
  background: #faf8f3;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12), 0 4px 8px rgba(26, 26, 26, 0.08);
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
    min-height: 50vh;
  }
  .hero .hero-title {
    font-size: 2rem;
  }
  .hero .hero-subtitle {
    font-size: 1rem;
  }
  .hero .hero-actions {
    flex-direction: column;
  }
  .hero .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .features {
    padding: 2rem 0;
  }
  .features h2 {
    font-size: 1.5rem;
  }
  .features .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cta {
    padding: 2rem 0;
  }
  .cta h2 {
    font-size: 1.5rem;
  }
  .cta p {
    font-size: 1rem;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 1.5rem 0;
  }
  .hero::before {
    display: none;
  }
  .hero .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .hero .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }
  .features .feature-card {
    padding: 1rem;
  }
  .features .feature-card h3 {
    font-size: 1rem;
  }
  .features .feature-card h3::before {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .features .feature-card p {
    font-size: 0.9375rem;
  }
}
.feature-grid .feature-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}
.feature-grid .feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-grid .feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-grid .feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-grid .feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-grid .feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-grid .feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

.btn,
.nav-link,
.menu-item a,
.choice-btn {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .navbar-container {
  padding: 0 0.75rem;
}
.navbar .navbar-menu {
  display: none;
}
@media (min-width: 768px) {
  .navbar .navbar-menu {
    display: flex;
  }
}
.navbar .mobile-menu-toggle {
  display: block;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
@media (min-width: 768px) {
  .navbar .mobile-menu-toggle {
    display: none;
  }
}
.navbar .mobile-menu-toggle .hamburger {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  position: relative;
  transition: all 250ms;
}
.navbar .mobile-menu-toggle .hamburger::before, .navbar .mobile-menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-text-primary);
  transition: all 250ms;
}
.navbar .mobile-menu-toggle .hamburger::before {
  transform: translateY(-8px);
}
.navbar .mobile-menu-toggle .hamburger::after {
  transform: translateY(8px);
}
.navbar .mobile-menu-toggle.active .hamburger {
  background: transparent;
}
.navbar .mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
}
.navbar .mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-content {
  padding: 1rem;
}
.mobile-menu .mobile-menu-content .mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--color-bg-secondary);
  border-radius: 0.5rem;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 150ms;
}
.mobile-menu .mobile-menu-content .mobile-nav-link:active {
  transform: scale(0.98);
  background: var(--color-bg-tertiary);
}
.mobile-menu .mobile-menu-content .mobile-nav-link.active {
  background: var(--color-accent-primary);
  color: white;
}

@media (hover: none) {
  .card-interactive:hover,
  .btn:hover,
  .nav-link:hover {
    transform: none;
    box-shadow: none;
  }
  .card-interactive:active {
    transform: scale(0.98);
  }
  .btn:active {
    transform: scale(0.95);
  }
}
.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.scrollable::-webkit-scrollbar {
  width: 6px;
}
.scrollable::-webkit-scrollbar-track {
  background: var(--color-bg-tertiary);
}
.scrollable::-webkit-scrollbar-thumb {
  background: var(--color-border-primary);
  border-radius: 9999px;
}

html {
  font-size: 14px;
}
@media (min-width: 640px) {
  html {
    font-size: 15px;
  }
}
@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}

.character-display,
.vocab-character {
  font-size: 3rem;
}
@media (min-width: 640px) {
  .character-display,
  .vocab-character {
    font-size: 4rem;
  }
}
@media (min-width: 1024px) {
  .character-display,
  .vocab-character {
    font-size: 5rem;
  }
}

.container {
  padding: 0 0.75rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

.main-layout {
  flex-direction: column;
}
@media (min-width: 1024px) {
  .main-layout {
    flex-direction: row;
  }
}
.main-layout .sidebar {
  width: 100%;
  position: static;
  border-right: none;
  border-bottom: 1px solid var(--sidebar-border);
}
@media (min-width: 1024px) {
  .main-layout .sidebar {
    width: 280px;
    position: sticky;
    border-bottom: none;
    border-right: 1px solid var(--sidebar-border);
  }
}
.main-layout .main-content {
  padding: 1rem;
}
@media (min-width: 640px) {
  .main-layout .main-content {
    padding: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .main-layout .main-content {
    padding: 2rem;
  }
}

.dashboard-quick-stats {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .dashboard-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .dashboard-quick-stats {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.class-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .class-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.study-modes {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .study-modes {
    grid-template-columns: repeat(2, 1fr);
  }
}
.study-modes .study-mode-card {
  padding: 1rem;
}
@media (min-width: 640px) {
  .study-modes .study-mode-card {
    padding: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .study-modes .study-mode-card {
    padding: 2rem;
  }
}

.flashcard-container .flashcard {
  min-height: 300px;
}
@media (min-width: 640px) {
  .flashcard-container .flashcard {
    min-height: 350px;
  }
}
@media (min-width: 1024px) {
  .flashcard-container .flashcard {
    min-height: 400px;
  }
}

.answer-choices {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .answer-choices {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .answer-choices {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-primary);
  z-index: 200;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}
.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
}
.mobile-bottom-nav .nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  color: var(--color-text-tertiary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 150ms;
}
.mobile-bottom-nav .nav-item a .icon {
  width: 24px;
  height: 24px;
}
.mobile-bottom-nav .nav-item a.active {
  color: var(--color-accent-primary);
}

.pull-to-refresh {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--color-bg-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
  transition: transform 250ms;
  z-index: 600;
}
.pull-to-refresh.visible {
  transform: translateX(-50%) translateY(20px);
}
.pull-to-refresh .spinner {
  animation: spin 1s linear infinite;
}

.swipeable-card {
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.swipeable-card:active {
  cursor: grabbing;
}
.swipeable-card.swiping {
  transition: none;
}
.swipeable-card.swipe-left {
  transform: translateX(-100%) rotate(-10deg);
  opacity: 0;
}
.swipeable-card.swipe-right {
  transform: translateX(100%) rotate(10deg);
  opacity: 0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive table {
  min-width: 600px;
}
@media (max-width: 640px) {
  .table-responsive table, .table-responsive thead, .table-responsive tbody, .table-responsive th, .table-responsive td, .table-responsive tr {
    display: block;
  }
  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .table-responsive tr {
    margin-bottom: 0.75rem;
    background: var(--color-bg-secondary);
    border-radius: 0.5rem;
    padding: 0.75rem;
  }
  .table-responsive td {
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  .table-responsive td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .navbar {
    height: 50px;
  }
  .flashcard-container .flashcard {
    min-height: 200px;
  }
  .mobile-bottom-nav {
    padding: 0.25rem 0;
  }
  .mobile-bottom-nav .nav-item a {
    padding: 0.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.hide-mobile {
  display: none !important;
}
@media (min-width: 640px) {
  .hide-mobile {
    display: block !important;
  }
}

.show-mobile {
  display: block !important;
}
@media (min-width: 640px) {
  .show-mobile {
    display: none !important;
  }
}

.text-center-mobile {
  text-align: center;
}
@media (min-width: 640px) {
  .text-center-mobile {
    text-align: left;
  }
}

.p-mobile-3 {
  padding: 0.75rem;
}
@media (min-width: 640px) {
  .p-mobile-3 {
    padding: 1rem;
  }
}
@media (min-width: 1024px) {
  .p-mobile-3 {
    padding: 1.5rem;
  }
}

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

html {
  visibility: visible;
  opacity: 1;
  background: var(--color-bg-primary);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.chinese-content {
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  line-height: 1.75;
}

:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

::selection {
  background: rgba(199, 62, 29, 0.2);
  color: var(--color-text-primary);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-primary);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Crimson Pro", "Georgia", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color 150ms;
}
a:hover {
  color: var(--color-accent-secondary);
}

.chinese-text {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  line-height: 1.75;
}

.pinyin-text {
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  min-height: calc(100vh - 64px);
  padding: 2rem 0;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:active::after {
  width: 300px;
  height: 300px;
}
.btn-primary {
  background: var(--button-primary-bg);
  color: white;
}
.btn-primary:hover {
  background: var(--button-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
}
.btn-secondary {
  background: var(--button-secondary-bg);
  color: var(--color-text-primary);
  border: 2px solid var(--button-secondary-border);
}
.btn-secondary:hover {
  border-color: var(--button-secondary-hover-border);
  color: var(--color-accent-primary);
}
.btn-success {
  background: var(--color-success);
  color: white;
}
.btn-success:hover {
  background: var(--color-success-dark);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent-primary);
  border: 2px solid var(--color-accent-primary);
}
.btn-outline:hover {
  background: var(--color-accent-primary);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
}
.btn-ghost:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}
.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-bg-secondary);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
}
.form-container h1, .form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--color-text-primary);
  transition: all 150ms;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-error {
  color: var(--color-error);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.table {
  width: 100%;
  background: var(--color-bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
}
.table thead {
  background: var(--color-bg-tertiary);
}
.table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-primary);
  border-bottom: 2px solid var(--color-border-primary);
}
.table tbody tr {
  border-top: 1px solid var(--color-border-secondary);
  transition: background 150ms;
}
.table tbody tr:hover {
  background: var(--color-bg-hover);
}
.table tbody td {
  padding: 1rem;
  color: var(--color-text-secondary);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-tertiary);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700;
  opacity: 0;
  transition: opacity 250ms;
}
.loading-overlay.visible {
  opacity: 1;
}
.loading-overlay .loading-content {
  background: var(--color-bg-secondary);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.18);
  text-align: center;
}
.loading-overlay .loading-content p {
  margin-top: 1rem;
  color: var(--color-text-primary);
}

.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.m-1 {
  margin: 0.25rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.p-1 {
  padding: 0.25rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.m-2 {
  margin: 0.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.m-3 {
  margin: 0.75rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.p-3 {
  padding: 0.75rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pl-3 {
  padding-left: 0.75rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.m-4 {
  margin: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.p-4 {
  padding: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pr-4 {
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.m-5 {
  margin: 1.5rem;
}

.mt-5 {
  margin-top: 1.5rem;
}

.mb-5 {
  margin-bottom: 1.5rem;
}

.ml-5 {
  margin-left: 1.5rem;
}

.mr-5 {
  margin-right: 1.5rem;
}

.mx-5 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.my-5 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.p-5 {
  padding: 1.5rem;
}

.pt-5 {
  padding-top: 1.5rem;
}

.pb-5 {
  padding-bottom: 1.5rem;
}

.pl-5 {
  padding-left: 1.5rem;
}

.pr-5 {
  padding-right: 1.5rem;
}

.px-5 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-5 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.m-6 {
  margin: 2rem;
}

.mt-6 {
  margin-top: 2rem;
}

.mb-6 {
  margin-bottom: 2rem;
}

.ml-6 {
  margin-left: 2rem;
}

.mr-6 {
  margin-right: 2rem;
}

.mx-6 {
  margin-left: 2rem;
  margin-right: 2rem;
}

.my-6 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.p-6 {
  padding: 2rem;
}

.pt-6 {
  padding-top: 2rem;
}

.pb-6 {
  padding-bottom: 2rem;
}

.pl-6 {
  padding-left: 2rem;
}

.pr-6 {
  padding-right: 2rem;
}

.px-6 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-6 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-inline-block {
  display: inline-block;
}

.d-flex {
  display: flex;
}

.d-inline-flex {
  display: inline-flex;
}

.d-grid {
  display: grid;
}

.flex-row {
  flex-direction: row;
}

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

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.border {
  border: 1px solid var(--color-border-primary);
}

.border-top {
  border-top: 1px solid var(--color-border-primary);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border-primary);
}

.border-left {
  border-left: 1px solid var(--color-border-primary);
}

.border-right {
  border-right: 1px solid var(--color-border-primary);
}

.border-0 {
  border: none;
}

.rounded {
  border-radius: 0.5rem;
}

.rounded-sm {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 50%;
}

.rounded-pill {
  border-radius: 9999px;
}

.shadow-sm {
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08);
}

.shadow {
  box-shadow: 0 4px 8px rgba(26, 26, 26, 0.12);
}

.shadow-md {
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.15);
}

.shadow-lg {
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.18);
}

.shadow-xl {
  box-shadow: 0 24px 48px rgba(26, 26, 26, 0.22);
}

.shadow-none {
  box-shadow: none;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-scroll {
  overflow: scroll;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.position-sticky {
  position: sticky;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    font-size: 12pt;
  }
  a {
    text-decoration: underline;
  }
  .btn {
    border: 1px solid currentColor;
  }
}

/*# sourceMappingURL=style.css.map */
