/* poet-list 页面样式 */

/* ======== 从 poet-list.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
.poet-list-header {
            background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
            color: white;
            padding: 40px 20px;
            text-align: center;
        }

        .poet-list-header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .poet-list-container {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .dynasty-section {
            margin-bottom: 50px;
        }

        .dynasty-title {
            font-size: 1.8em;
            color: #8B4513;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid #DAA520;
            text-align: center;
        }

        .poet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }

        .poet-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 25px;
            text-align: center;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
        }

        .poet-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(139,69,19,0.05), transparent);
            transition: left 0.6s;
        }

        .poet-card:hover {
            transform: translateY(-10px) rotateX(3deg);
            box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
        }

        .poet-card:hover::before {
            left: 100%;
        }

        .poet-card:hover .poet-avatar {
            transform: scale(1.15);
            box-shadow: 0 8px 25px rgba(139,69,19,0.3);
        }

        .poet-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            font-weight: bold;
            margin: 0 auto 15px;
            border: 3px solid #DAA520;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
        }
        
        .poet-avatar::after {
            content: '';
            position: absolute;
            top: -6px; left: -6px; right: -6px; bottom: -6px;
            border: 2px solid #DAA520;
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .poet-card:hover .poet-avatar::after {
            opacity: 0.5;
        }

        .poet-name {
            font-size: 1.4em;
            color: #8B4513;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .poet-meta {
            font-size: 0.9em;
            color: #666;
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .poet-meta span {
            display: inline-block;
            margin: 0 5px;
            padding: 3px 8px;
            background: #f5f5f5;
            border-radius: 3px;
        }

        .poet-link {
            display: inline-block;
            padding: 10px 25px;
            background: #8B4513;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s;
        }

        .poet-link:hover {
            background: #D2691E;
        }

        @media (max-width: 768px) {
            .poet-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 15px;
            }

            .poet-card {
                padding: 15px;
            }

            .poet-avatar {
                width: 60px;
                height: 60px;
                font-size: 28px;
            }
        }

/* 原 <style> 块 2 */
.filter-bar {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 10px 20px;
            border: 2px solid #8B4513;
            border-radius: 25px;
            background: white;
            color: #8B4513;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .filter-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(139,69,19,0.3);
        }
        
        .filter-btn.active {
            background: linear-gradient(135deg, #8B4513, #D2691E);
            color: white;
            border-color: transparent;
        }
        
        @keyframes cardEntry {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .poet-card.visible {
            animation: cardEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        
        .dynasty-title {
            animation: titleReveal 0.8s ease-out;
        }
        
        @keyframes titleReveal {
            0% { opacity: 0; transform: translateX(-20px); }
            100% { opacity: 1; transform: translateX(0); }
        }

/* 原 <style> 块 3 */
.scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #8B4513, #D2691E);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            z-index: 999;
        }
        
        .scroll-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
        }
        
        .scroll-to-top.show {
            display: flex;
        }
        
        @media (max-width: 768px) {
            .scroll-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 20px;
            }
        }
        
        /* ====== 增强交互效果 ====== */
        
        /* 诗人卡片入场动画 */
        .poet-card {
            animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
        }
        
        .poet-card:nth-child(1) { animation-delay: 0.1s; }
        .poet-card:nth-child(2) { animation-delay: 0.15s; }
        .poet-card:nth-child(3) { animation-delay: 0.2s; }
        .poet-card:nth-child(4) { animation-delay: 0.25s; }
        .poet-card:nth-child(5) { animation-delay: 0.3s; }
        .poet-card:nth-child(6) { animation-delay: 0.35s; }
        .poet-card:nth-child(7) { animation-delay: 0.4s; }
        .poet-card:nth-child(8) { animation-delay: 0.45s; }
        
        @keyframes cardSlideIn {
            0% { opacity: 0; transform: translateY(30px) scale(0.95); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        /* 诗人卡片悬浮效果 */
        .poet-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .poet-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(139, 69, 19, 0.18);
        }
        
        /* 朝代筛选标签动画 */
        .filter-tag {
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .filter-tag::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #DAA520;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .filter-tag:hover::after,
        .filter-tag.active::after {
            transform: scaleX(1);
        }
        
        .filter-tag.active {
            animation: tagActive 0.3s ease-out;
        }
        
        @keyframes tagActive {
            0% { transform: scale(0.9); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* 搜索框聚焦效果 */
        .search-input {
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            border-color: #DAA520;
            box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
            outline: none;
        }
        
        /* 统计数字渐变 */
        .stat-number {
            background: linear-gradient(135deg, #8B4513, #DAA520);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 统计卡片悬浮 */
        .stat-card {
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
        }
        
        /* 分页按钮动画 */
        .page-btn {
            transition: all 0.3s ease;
        }
        
        .page-btn:hover {
            transform: scale(1.1);
        }
        
        .page-btn.active {
            animation: pageActive 0.3s ease-out;
        }
        
        @keyframes pageActive {
            0% { transform: scale(0.9); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* 返回顶部按钮弹跳 */
        .scroll-to-top.show {
            animation: btnBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        @keyframes btnBounceIn {
            0% { transform: translateY(20px) scale(0); opacity: 0; }
            50% { transform: translateY(-5px) scale(1.1); opacity: 1; }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }
        
        /* 字母索引悬浮 */
        .alphabet-item {
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .alphabet-item:hover {
            transform: scale(1.2);
            color: #DAA520;
        }
        
        /* 诗人名字渐变 */
        .poet-name {
            background: linear-gradient(135deg, #8B4513, #5D4037);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 年代标签动画 */
        .dynasty-tag {
            animation: tagPulse 2s ease-in-out infinite;
        }
        
        @keyframes tagPulse {
            0%, 100% { opacity: 0.9; }
            50% { opacity: 1; }
        }
        
        /* 诗歌数量动画 */
        .poem-count {
            transition: all 0.3s ease;
        }
        
        .poet-card:hover .poem-count {
            color: #DAA520;
            transform: scale(1.1);
        }
        
        .special-badge {
            display: inline-block;
            margin-left: 5px;
            padding: 2px 8px;
            background: linear-gradient(135deg, #DAA520, #FFD700);
            color: #8B4513;
            font-size: 0.7em;
            border-radius: 10px;
            font-weight: bold;
            animation: badgePulse 2s ease-in-out infinite;
        }
        
        @keyframes badgePulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }

/* 原内联 style 属性（已转为 class） */
.ih-1p3lyfb {
    text-align: center;
    margin: 40px 0;
}

.ih-110hm3a {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ih-19vx6th {
    margin-top: 50px;
}

.ih-ct988m {
    text-align: center;
    margin-top: 30px;
}

/* ===== 唐风底部导航栏 ===== */
.tang-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border-top: 4px solid #FFD700;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
}

.bottom-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: #FFD700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  font-family: "SimSun", "STSong", serif;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  background: linear-gradient(135deg, #DAA520, #FFD700);
  color: #5D4037;
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.nav-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.nav-text {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

body {
  padding-bottom: 90px;
}

@media (max-width: 768px) {
  .tang-bottom-nav {
    height: 50px;
    padding: 4px 0;
    border-top-width: 2px;
    background: rgba(139, 69, 19, 0.9);
    backdrop-filter: blur(3px);
  }

  .bottom-nav-container {
    gap: 4px;
    padding: 0 5px;
    justify-content: space-around;
  }

  .nav-item {
    padding: 4px 6px;
    min-width: 0;
    border-radius: 6px;
    border-width: 1px;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-icon {
    font-size: 14px;
    margin-bottom: 1px;
  }

  .nav-text {
    font-size: 9px;
    display: block;
  }

  body {
    padding-bottom: 55px;
  }
}

@media (max-width: 480px) {
  .tang-bottom-nav {
    height: 40px;
    padding: 3px 0;
  }

  .bottom-nav-container {
    gap: 2px;
  }

  .nav-item {
    padding: 3px 4px;
  }

  .nav-icon {
    font-size: 12px;
  }

  .nav-text {
    font-size: 8px;
  }

  body {
    padding-bottom: 45px;
  }
}
