/* 在线工具箱 - Bootstrap版本样式 */

/* 全局样式 */
:root {
  --primary-color: #2b7cff;
  --primary-hover: #1a66cc;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white-color: #ffffff;
  --border-color: #dee2e6;
  --text-muted: #6c757d;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* 导航栏样式 */
.navbar {
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 999;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-brand img {
  width: 36px;
  height: 36px;
  margin-right: 0.5rem;
}

/* 搜索框样式 */
.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-box .form-control {
  padding-left: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* 分类导航样式 */
.category-nav {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  position: relative;
  z-index: 998;
}

.category-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.category-nav .nav-link:hover,
.category-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(43, 124, 255, 0.1);
}

/* 子菜单样式 */
.category-dropdown {
  position: relative;
  z-index: 1001;
}

.category-dropdown .nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.category-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white-color);
  border: 2px solid #93c5fd;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  /* 确保下拉菜单不被其他元素遮挡 */
  display: none;
  /* 强制显示在最高层级 */
  position: absolute !important;
  z-index: 99999 !important;
}

.category-dropdown:hover .dropdown-menu,
.category-dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  display: block !important;
  z-index: 99999 !important;
  /* 确保显示在最顶层 */
  position: absolute !important;
}

.category-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.category-dropdown .dropdown-item:hover {
  background-color: rgba(43, 124, 255, 0.1);
  color: var(--primary-color);
  text-decoration: none;
}

.category-dropdown .dropdown-item i {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.category-dropdown .dropdown-item:hover i {
  color: var(--primary-color);
}

/* 工具卡片样式 */
.tool-card {
  background-color: var(--white-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.tool-card .card-body {
  padding: 1.5rem;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tool-icon.blue {
  background-color: rgba(43, 124, 255, 0.1);
  color: var(--primary-color);
}

.tool-icon.green {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.tool-icon.teal {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
}

.tool-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
}

.tool-badge.hot {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
}

.tool-badge.new {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.tool-badge.common {
  background-color: rgba(43, 124, 255, 0.1);
  color: var(--primary-color);
}

/* 足迹栏样式 */
.footprints-bar {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.footprints-bar h6 {
  font-size: 0.875rem;
  font-weight: 500;
}

.footprint-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--light-color);
  color: var(--text-muted);
  border-radius: 1rem;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footprint-tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
}

/* 工具页面样式 */
.tool-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tool-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--white-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.tool-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.tool-description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.tool-content {
  background-color: var(--white-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* 输入输出区域样式 */
.input-section,
.output-section {
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.section-title {
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(43, 124, 255, 0.25);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* 按钮样式 */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-info {
  background-color: var(--info-color);
  border-color: var(--info-color);
}

/* 统计卡片样式 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: var(--white-color);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 页脚样式 */
.footer {
  background-color: var(--white-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tool-page {
    padding: 1rem;
  }
  
  .tool-header {
    padding: 1.5rem;
  }
  
  .tool-title {
    font-size: 1.5rem;
  }
  
  .tool-content {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  /* 移动端子菜单样式 */
  .category-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--light-color);
    margin-top: 0.5rem;
    border-radius: 0.375rem;
    pointer-events: auto;
    display: none;
    z-index: 99999 !important;
  }
  
  .category-dropdown.show .dropdown-menu {
    display: block;
  }
  
  .category-dropdown:hover .dropdown-menu,
  .category-dropdown.show .dropdown-menu {
    display: block;
  }
  
  .category-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .category-dropdown .dropdown-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .tool-page {
    padding: 0.5rem;
  }
  
  .tool-header {
    padding: 1rem;
  }
  
  .tool-content {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 工具标签样式 */
.tool-tags {
  margin-top: 2rem;
}

.tool-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--light-color);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tool-tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
  text-decoration: none;
}

/* 常见问题样式 */
.faq-section {
  background-color: var(--white-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-header {
  background-color: var(--light-color);
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.faq-header:hover {
  background-color: rgba(43, 124, 255, 0.1);
}

.faq-title {
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

.faq-content {
  padding: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 隐藏滚动条但保持功能 */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* 打字游戏样式 */
/* 键盘布局样式 */
.keyboard-layout {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid #e9ecef;
}

.number-row, .letter-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.letter-row:last-child {
  margin-bottom: 0;
}

.key-button {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.key-button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.key-button.selected {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.key-button.selected:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.key-button.ctrl-key {
  min-width: 80px;
  font-size: 0.875rem;
}

/* 混合模式下的键盘区域样式 */
.number-section {
  background-color: #e3f2fd; /* 浅蓝色背景 */
  border: 2px solid #2196f3;
}

.letter-section {
  background-color: #e8f5e8; /* 浅绿色背景 */
  border: 2px solid #4caf50;
}

.number-section .key-button {
  border-color: #2196f3;
}

.letter-section .key-button {
  border-color: #4caf50;
}

.number-section .key-button.selected {
  background-color: #2196f3;
  border-color: #2196f3;
  color: white;
}

.letter-section .key-button.selected {
  background-color: #4caf50;
  border-color: #4caf50;
  color: white;
}

.number-section .key-button:hover {
  background-color: #bbdefb;
  border-color: #2196f3;
}

.letter-section .key-button:hover {
  background-color: #c8e6c9;
  border-color: #4caf50;
}

/* 按键反馈效果 */
.task-key {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 1rem 2rem;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  border: 2px solid var(--primary-color);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 任务水平布局样式 */
.task-horizontal-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid #e9ecef;
  margin-bottom: 2rem;
}

.current-task-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 280px;
}

.current-task-section .task-label {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

.current-task-section .task-key {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 1rem 2rem;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  border: 2px solid var(--primary-color);
  min-height: 80px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.task-queue-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 600px;
}

.task-queue-section .queue-label {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

/* 响应式水平布局 */
@media (max-width: 992px) {
  .task-horizontal-layout {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .current-task-section {
    min-width: auto;
    width: 100%;
  }
  
  .task-queue-section {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .task-horizontal-layout {
    padding: 1rem;
    gap: 1rem;
  }
  
  .current-task-section .task-key {
    font-size: 2rem;
    padding: 0.75rem 1.5rem;
    min-height: 70px;
    min-width: 100px;
  }
}

@media (max-width: 576px) {
  .current-task-section .task-key {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    min-height: 60px;
    min-width: 80px;
  }
}

/* 任务队列样式 */
.task-queue-section {
  /* 原有样式已在水平布局中定义 */
}

.task-queue {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.queue-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
}

.queue-item::before {
  content: attr(data-index);
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 队列位置渐变效果 */
.queue-1 {
  opacity: 0.9;
  transform: scale(0.95);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.queue-2 {
  opacity: 0.8;
  transform: scale(0.9);
}

.queue-3 {
  opacity: 0.7;
  transform: scale(0.85);
}

.queue-4 {
  opacity: 0.6;
  transform: scale(0.8);
}

/* 响应式队列显示 */
@media (max-width: 768px) {
  .task-queue {
    gap: 0.5rem;
  }
  
  .queue-item {
    min-width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .queue-item::before {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: -6px;
    right: -6px;
  }
}

@media (max-width: 576px) {
  .task-queue {
    gap: 0.25rem;
  }
  
  .queue-item {
    min-width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .queue-label {
    font-size: 1rem;
  }
}

/* 正确按键效果 */
.task-key.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #28a745;
  animation: correctBounce 0.6s ease-out;
}

/* 错误按键效果 */
.task-key.wrong {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #dc3545;
  animation: wrongShake 0.6s ease-out;
}

/* 正确动画 */
@keyframes correctBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1.05); }
  75% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* 错误动画 */
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* 反馈消息样式 */
.feedback-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.feedback-message.correct {
  background-color: #28a745;
  color: white;
  animation: feedbackFadeIn 0.8s ease-out;
}

.feedback-message.wrong {
  background-color: #dc3545;
  color: white;
  animation: feedbackFadeIn 0.8s ease-out;
}

@keyframes feedbackFadeIn {
  0% { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% { 
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 连击效果 */
.combo-display {
  position: fixed;
  top: 20%;
  right: 5%;
  z-index: 9998;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.combo-display.show {
  transform: translateX(0);
  animation: comboGlow 0.5s ease-out;
}

@keyframes comboGlow {
  0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
}

/* 配置区域样式 */
.config-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

/* 游戏区域样式 */
.game-status {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

/* 旧的任务显示样式已移除，由水平布局替代 */



.game-hints {
  margin-top: 1rem;
}

/* 游戏结果样式 */
.result-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 2px solid #e9ecef;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.result-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.result-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* 响应式键盘布局 */
@media (max-width: 768px) {
  .key-button {
    min-width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  .key-button.ctrl-key {
    min-width: 60px;
    font-size: 0.75rem;
  }
  
  .task-key {
    font-size: 2rem;
    padding: 0.75rem 1rem;
    min-height: 80px;
  }
  
  .result-value {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .number-row, .letter-row {
    gap: 0.25rem;
  }
  
  .key-button {
    min-width: 35px;
    height: 35px;
    font-size: 0.75rem;
  }
  
  .key-button.ctrl-key {
    min-width: 50px;
    font-size: 0.65rem;
  }
  
  .keyboard-layout {
    padding: 1rem;
  }
  
  .task-key {
    font-size: 1.5rem;
    padding: 0.5rem;
    min-height: 60px;
  }
  
  .result-card {
    padding: 1rem;
  }
  
  .result-value {
    font-size: 1.75rem;
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--dark-color);
  color: var(--white-color);
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* 数字转换工具特定样式 */
.result-section {
  margin-top: 1rem;
}

.result-item {
  margin-bottom: 1rem;
}

.result-value {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  word-break: break-all;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.no-result {
  color: var(--text-muted);
}

.examples-section {
  margin-top: 2rem;
}

.example-card {
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.example-card:hover {
  background-color: rgba(43, 124, 255, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.example-input {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.example-output {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 历史记录样式 */
.modal-xl {
  max-width: 90%;
}

.table-responsive {
  max-height: 400px;
  overflow-y: auto;
}

.stat-value.text-purple {
  color: #6f42c1 !important;
}

.badge {
  font-size: 0.75rem;
}

/* 历史记录表格样式 */
.table th {
  position: sticky;
  top: 0;
  background-color: var(--bs-primary);
  color: white;
  z-index: 10;
}

.table-hover tbody tr:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* 按钮组样式 */
.btn-group .btn {
  margin-right: 0.5rem;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

