/* @import "tailwindcss"; */
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #3178c6aa);
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

.card-image {
        width: 132px;
        height: 182px;
      }
      @media (min-width: 640px) {
        .card-image {
          width: 176px;
          height: 242px;
        }
      }
      @media (min-width: 768px) {
        .card-image {
          width: 176px;
          height: 242px;
        }
      }
      @media (min-width: 1024px) {
        .card-image {
          width: 198px;
          height: 272px;
        }
      }

      /* 自定义滚动条样式（可选） */
      .scroll-container::-webkit-scrollbar {
        width: 6px;
      }

      .scroll-container::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
      }

      .scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
      }

      /* 优化时间线选择器样式 */
      .timeline-selector {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
      }

      .timeline-item {
        transition: all 0.2s ease;
        border-radius: 8px;
        cursor: pointer;
      }

      .timeline-item:hover {
        background-color: #e5e7eb;
        transform: translateY(-2px);
      }

      .timeline-item.selected {
        background-color: #3b82f6;
        color: white;
        font-weight: 600;
      }

      .character-info {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.5);
      }
      
      /* 卡片悬停效果 */
      .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      }
      
      /* 版权信息区域优化 */
      .copyright-card {
        transition: all 0.3s ease;
      }
      
      .copyright-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
      }
      
      /* 徽章样式 */
      .badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 20px;
        font-size: 0.77rem;
        font-weight: 600;
        margin-right: 5px;
      }
      
      .period-badge {
        background-color: #dbeafe;
        color: #1d4ed8;
      }
      
      .dynasty-badge {
        background-color: #fce7f3;
        color: #be185d;
      }
      
      /* 标题动画 */
      .section-title {
        position: relative;
        padding-bottom: 10px;
      }
      
      .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(to right, #3b82f6, #8b5cf6);
        border-radius: 3px;
        transition: width 0.3s ease;
      }
      
      .section-title:hover::after {
        width: 100px;
      }
      
      /* 整体放大110% */
      body {
        font-size: 1.2em;
      }
      
      /* 搜索框样式 */
      .search-container {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
      }
      
      .search-input {
        outline: none;
        border: none;
        background: transparent;
        width: 100%;
      }
      
      .search-input:focus {
        outline: none;
      }
      
      /* 加载动画 */
      .loading {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
      }
      
      .spinner {
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-left-color: #3b82f6;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
      }
      
      @keyframes spin {
        to { transform: rotate(360deg); }
      }
      
      /* 搜索按钮样式 */
      .search-btn {
        background-color: #3b82f6;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 6px 12px;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 0.875rem;
        white-space: nowrap;
      }
      
      .search-btn:hover {
        background-color: #2563eb;
      }
      
      .search-btn i {
        margin-right: 4px;
      }