/* ========================================
   English Learning Website - Main Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --danger-color: #ef4444;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-light: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #1f2937;
  
  --border-color: #e5e7eb;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  
  --container-max: 1280px;
  --header-height: 64px;
}

/* Dark Mode */
[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  
  --border-color: #374151;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}
.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #777ef4;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.auth-btns {
	gap: 10px;
}



.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #f40909;
  background: transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 10px;
}

.nav-icon-btn:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }
  
  .nav-main.active {
    transform: translateX(0);
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
  flex: 1;
  padding-top: calc(var(--header-height) + 1.5rem);
/*   padding-bottom: 2rem; */
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-light);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-success {
  background: var(--success-color);
  color: var(--text-light);
}

.btn-danger {
  background: var(--danger-color);
  color: var(--text-light);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
 
}

/* Word Card */
.word-card {
  display: flex;
  flex-direction: column;
}

.word-card .word-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.word-card .word-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.word-card .phonetic {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.word-card .meaning {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.word-card .audio-btns {
  display: flex;
  gap: 0.5rem;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.audio-btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.audio-btn.playing {
  background: var(--primary-color);
  color: var(--text-light);
}

/* ========================================
   Grid Layouts
   ======================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  border-radius: var(--border-radius-xl);
  margin-bottom: 2rem;
}


.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ========================================
   Search Box
   ======================================== */
.search-box {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-radius: 35px;
}

.search-box input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box .btn {
  border-radius: 25px;
  padding: 1rem 1.5rem;
  margin: 3px;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-more {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========================================
   Category Cards
   ======================================== */
.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-icon.nce1 { background: #dbeafe; color: #2563eb; }
.category-icon.nce2 { background: #dcfce7; color: #16a34a; }
.category-icon.nce3 { background: #fef3c7; color: #d97706; }
.category-icon.nce4 { background: #fce7f3; color: #db2777; }
.category-icon.cet4 { background: #e0e7ff; color: #4f46e5; }
.category-icon.cet6 { background: #f3e8ff; color: #9333ea; }
.category-icon.ielts { background: #ccfbf1; color: #0d9488; }
.category-icon.toefl { background: #fee2e2; color: #dc2626; }

.category-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   Lesson Card
   ======================================== */
.lesson-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.lesson-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lesson-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.lesson-content {
  padding: 1rem;
}

.lesson-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lesson-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lesson-progress {
  margin-top: 0.75rem;
}

.progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--secondary-color);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-item {
  display: flex;
}

.page-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary-color);
}

/* ========================================
   Tabs
   ======================================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ========================================
   Stats Cards
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.yellow { background: #fef3c7; color: #d97706; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.fa.fa-eye {
	color: #a1a1a8;
}






/* 点赞弹层提示样式 */
/* 帝国CMS点赞优化 - 修正版样式 */
.digg-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    /* 调整背景：稍微亮一点的深灰色，透明度更高 */
    background: rgba(40, 40, 40, 0.9);
    backdrop-filter: blur(4px); /* 添加一点点模糊，增加质感 */
    padding: 10px 20px; /* 稍微减小内边距 */
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    min-width: auto;
    pointer-events: none;
}

.digg-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.digg-toast .message {
    font-size: 14px;
    color: #fff;
    font-weight: 400; /* 字体不加粗，看起来更细腻 */
    white-space: nowrap;
}

.digg-toast svg {
    width: 18px; /* 图标稍微调小 */
    height: 18px;
    flex-shrink: 0;
    display: block; /* 防止因为行高产生的间隙 */
}

/* 成功图标颜色 */
.digg-toast.success svg {
    fill: #52c41a;
}

/* 错误图标颜色 */
.digg-toast.error svg {
    fill: #ff4d4f;
}
/* ========================================
   Word Detail
   ======================================== */
.word-detail {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.word-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.word-main h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.word-phonetics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.phonetic-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phonetic-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.phonetic-text {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.word-actions {
  display: flex;
  gap: 0.5rem;
}

/* .word-section {
  margin-bottom: 2rem;
} */

.word-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.meaning-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meaning-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.meaning-pos {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.meaning-def {
  margin-bottom: 0.5rem;
}

.meaning-example {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   Practice Modes
   ======================================== */
.practice-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .practice-modes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .practice-modes {
    grid-template-columns: 1fr;
  }
}

.practice-mode-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.practice-mode-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.practice-mode-card.active {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
}

.practice-mode-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

.practice-mode-icon.translate { background: #dbeafe; color: #2563eb; }
.practice-mode-icon.listening { background: #dcfce7; color: #16a34a; }
.practice-mode-icon.dictation { background: #fef3c7; color: #d97706; }
.practice-mode-icon.speaking { background: #fce7f3; color: #db2777; }

.practice-mode-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.practice-mode-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Practice Area */
.practice-area {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.practice-question {
  text-align: center;
  margin-bottom: 2rem;
}

.practice-prompt {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.practice-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.practice-input-area {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.practice-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.25rem;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}

.practice-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.practice-input.correct {
  border-color: var(--success-color);
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
  font-weight: 600;
}

.practice-input.incorrect {
  border-color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.practice-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.practice-option {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.practice-option:hover:not([disabled]) {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-2px);
}

.practice-option.selected {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
  font-weight: 600;
}

.practice-option.correct {
  border-color: var(--success-color) !important;
  background: rgba(34, 197, 94, 0.15) !important;
  pointer-events: none;
}

.practice-option.incorrect {
  border-color: var(--danger-color) !important;
  background: rgba(239, 68, 68, 0.15) !important;
  pointer-events: none;
}

.practice-option[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.practice-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ========================================
   Audio Player Controls
   ======================================== */
.audio-player {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.audio-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.audio-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.audio-play-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.audio-progress {
  flex: 1;
}

.audio-timeline {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.5rem;
}

.audio-timeline-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.audio-settings {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.audio-setting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-setting label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.audio-setting select {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
}
.f-link.br.card {
	width: 100%;
	float: left;
	height: auto;
	margin-bottom: 20px;
	overflow: hidden;
	padding: 0.5em 1.5em;
}
.f-link h4 {
	height: 40px;
	line-height: 40px;
	font-size: 16px;
	position: relative;
	font-weight: 700;
}
.f-link .wrap {
	float: left;
	margin: 0;
	padding-bottom: 6px;
	overflow: hidden;
}
.f-link .wrap ul {
	list-style: none;
}
.f-link .wrap ul li {
	float: left;
	font-size: 14px;
	line-height: 35px;
	list-style: none;
	white-space: nowrap;
	padding-right: 20px;
}
.f-link .wrap ul li a {
	color: #696969;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  /* padding: 3rem 0 1.5rem; */
  margin-top: auto;
}

.footer-grid {
  display: grid;

  gap: 2rem;
  margin-bottom: 2rem;
}


.footer-brand p {
  color: #9ca3af;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
/* flex-direction: column; */
  gap: 1.5rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}
/*分页*/
.paging{
	display:flex;
	flex-wrap: wrap;
	justify-content:center;
	margin-bottom:20px;
}
.paging a{
	display:block;
	border: 1px #dedede solid;
	border-radius:3px;
	padding: 4px 12px;
	margin-left:6px;
	color:#666 ;
	font-size:16px;
}
.paging a.active{
	background-color: #000 ;
    color: #fff;
    border: 1px #000  solid;
}
.paging a:hover{
	background:#000 ;
	border: 1px #000  solid;
	color: #fff;
}
.paging a i{
	font-size:12px;
}
/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 350px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--danger-color);
}

.toast.info {
  border-left: 4px solid var(--info-color);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast.success .toast-icon { color: var(--success-color); }
.toast.error .toast-icon { color: var(--danger-color); }
.toast.info .toast-icon { color: var(--info-color); }

.toast-message {
  flex: 1;
  font-size: 0.9rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}


 .article-tag {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .article-tag a {
            /* 文字与背景的间隔通过padding实现 */
            display: inline-flex;
            align-items: center;
            height: 30px;
            line-height: 30px;
            text-align: center;
            color: var(--text-color);
            border-radius: 10px 0 10px 0;
            background: #a8a3ff;
            padding: 0 10px; /* 左右padding增加文字与背景的间隔 */
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
			font-weight: 600;
			color: #0721f7;
            
            /* 移动端适配 */
            @media (max-width: 768px) {
                height: 28px;
                line-height: 28px;
                font-size: 13px;
                padding: 0 14px;
                border-radius: 8px 0 8px 0;
            }
            
            /* 超小屏幕适配 */
            @media (max-width: 480px) {
                height: 26px;
                line-height: 26px;
                font-size: 12px;
                padding: 0 12px;
                border-radius: 6px 0 6px 0;
            }
        }

        /* 悬停效果 */
        .article-tag a:hover {
            background: var(--hover-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(245, 92, 95, 0.2);
        }
        
        /* 点击效果 */
        .article-tag a:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(245, 92, 95, 0.2);
        }
        
        /* 不同标签的颜色变体 - 可选 */
        .article-tag a:nth-child(2) {
            background: #4a90e2;
        }
        
        .article-tag a:nth-child(2):hover {
            background: #3a7bc8;
        }
        
        .article-tag a:nth-child(3) {
            background: #50c878;
        }
        
        .article-tag a:nth-child(3):hover {
            background: #3fb069;
        }
		
.like_collect_sharing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.like,
.collect {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  margin-right: 5px;
  border-radius: 4px;
  color: #fff;
  line-height: initial;
}

.collect:hover {
  color: #5ffffc;
  transition: color 0.3s;
  background-color: #c781ff;
}
.like i.fa,
.collect i.fa {
  margin-right: 5px;
}
.like a,
.collect a {
  color: #fff;
}
/* .like {
  background-color: #c65c1dc4;
} */
.collect {
  background-color: #1c81bec4;
}

.sharing {
  margin-left: auto; 
 
}
.copyright_notice {
  padding: 8px;
  border-radius: 5px;
  background-color: rgba(82, 97, 114, 0.1);
  font-size: 13px;
  color: #979799;
  line-height: initial;
}

/* ==================== 分享组件 (Share Component) ==================== */
.sharing {
  margin-left: auto; 
}

.social-share .fa.fa-wechat {
  position: relative;
  color: #7bc549;
  border-color: #7bc549;
}
.social-share .social-share-icon {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  font-size: 20px;
  border-radius: 50%;
  line-height: 32px;
  border: 1px solid #666;
  color: #666;
  text-align: center;
  vertical-align: middle;
  transition: background 0.6s ease-out 0s;
}
.social-share a {
  position: relative;
  text-decoration: none;
  margin: 4px;
  display: inline-block;
  outline: none;
}

.social-share .fa.fa-wechat .wechat-qrcode:after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -6px;
  bottom: -13px;
  width: 0;
  height: 0;
  border-width: 8px 6px 6px 6px;
  border-style: solid;
  border-color: #fff transparent;
}
.social-share .fa.fa-wechat:hover .wechat-qrcode {
  display: block;
}
.social-share .fa.fa-wechat .wechat-qrcode {
  display: none;
  border: 1px solid #eee;
  position: absolute;
  z-index: 9;
  top: -205px;
  left: -84px;
  width: 200px;
  height: 192px;
  color: #666;
  font-size: 12px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 10px #aaa;
  transition: all 200ms;
  -moz-transition: all 350ms;
}

.social-share .fa.fa-wechat .wechat-qrcode h4 {
  font-weight: normal;
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
  color: #777;
}
.social-share .fa.fa-wechat .wechat-qrcode .qrcode {
  width: 105px;
  margin: 10px auto;
}
.social-share .fa.fa-wechat .wechat-qrcode .help p {
  font-weight: normal;
  line-height: 16px;
  padding: 0;
  margin: 0;
}

.social-share .fa.fa-qq {
  color: #56b6e7;
  border-color: #56b6e7;
}
.social-share .social-share-icon {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  font-size: 20px;
  border-radius: 50%;
  line-height: 32px;
  border: 1px solid #666;
  color: #666;
  text-align: center;
  vertical-align: middle;
  transition: background 0.6s ease-out 0s;
}
.social-share .fa.fa-weibo {
  color: #ff763b;
  border-color: #ff763b;
}
.social-share .fa.fa-qzone {
  color: #e7a620;
  border-color: #e7a620;
}
.social-share .fa.fa-qzone:hover {
  color: #fafafa;
  background: #e7a620;
  transition: all ease 0.4s;
}
.social-share .fa.fa-weibo:hover {
  color: #fafafa;
  background: #ff763b;
  transition: all ease 0.4s;
}
.social-share .fa.fa-qq:hover {
  color: #fafafa;
  background: #56b6e7;
  transition: all ease 0.4s;
}
.social-share .fa.fa-wechat:hover {
  color: #fafafa;
  background: #7bc549;
  transition: all ease 0.4s;
}
.fa-qzone:before {
  content: "\f006";
}
@media (max-width: 445px) {
  .like,
  .collect {
    display: none;
  }
  .sharing {
    margin-left: inherit;
  }
}
	


.word-card-mini {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  height: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.word-card-mini:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.word-card-mini .card-body {
  padding: 1rem;
}

.word-card-mini h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.word-card-mini p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}	
/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
}

.badge-primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.75rem;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.75rem;
  border-radius: var(--border-radius);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Charts Container */
.chart-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-title {
  font-weight: 600;
}

/* Streak Calendar */
.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.streak-day {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--bg-tertiary);
}

.streak-day.active {
  background: var(--secondary-color);
}

.streak-day.today {
  border: 2px solid var(--primary-color);
}

/* Checkin Button */
.checkin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--secondary-color), #059669);
  color: white;
  border: none;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.checkin-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.checkin-btn.checked {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.checkin-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.checkin-text {
  font-weight: 600;
}

.checkin-streak {
  font-size: 0.875rem;
  opacity: 0.9;
}



@media (max-width: 576px) {
  .site-title{
    display: none;
  }
}

@media (max-width: 500px) {
  .stats-grid{
    display: none;
  }
}