/* tangshi-300 页面样式 */

/* ======== 从 tangshi-300.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
:root {
            --tang-brown: #8B4513;
            --tang-gold: #DAA520;
            --tang-ink: #2F2F2F;
            --tang-paper: #FDF5E6;
            --tang-red: #8B0000;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
            background-color: var(--tang-paper);
            color: var(--tang-ink);
            line-height: 1.8;
            min-height: 100vh;
        }
        
        header {
            background: linear-gradient(135deg, var(--tang-brown) 0%, #A0522D 100%);
            padding: 30px 20px;
            color: white;
            text-align: center;
            box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
        }
        
        .header-title {
            font-family: 'KaiTi', 'STKaiti', serif;
            font-size: 36px;
            font-weight: bold;
            letter-spacing: 12px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .header-subtitle {
            font-size: 16px;
            opacity: 0.9;
            margin-top: 10px;
        }
        
        .direct-answer {
            background: white;
            padding: 25px;
            margin: 20px auto;
            max-width: 1000px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            border-left: 4px solid var(--tang-gold);
        }
        
        .direct-answer h3 {
            color: var(--tang-brown);
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .direct-answer p {
            font-size: 16px;
            color: #444;
            line-height: 2.0;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .intro-section {
            background: white;
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .intro-section h2 {
            color: var(--tang-brown);
            margin-bottom: 15px;
            font-size: 24px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--tang-gold);
        }
        
        .intro-section p {
            margin-bottom: 15px;
            font-size: 16px;
            text-indent: 2em;
        }
        
        .poem-list {
            display: grid;
            gap: 25px;
        }
        
        .poem-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            border-left: 4px solid var(--tang-brown);
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            animation: cardEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        
        .poem-card:nth-child(1) { animation-delay: 0.05s; }
        .poem-card:nth-child(2) { animation-delay: 0.1s; }
        .poem-card:nth-child(3) { animation-delay: 0.15s; }
        .poem-card:nth-child(4) { animation-delay: 0.2s; }
        .poem-card:nth-child(5) { animation-delay: 0.25s; }
        .poem-card:nth-child(6) { animation-delay: 0.3s; }
        
        @keyframes cardEntry {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .poem-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;
        }
        
        .poem-card:hover {
            transform: translateY(-8px) rotateX(2deg);
            box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
            border-left-color: var(--tang-gold);
        }
        
        .poem-card:hover::before {
            left: 100%;
        }
        
        .poem-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .poem-title {
            font-size: 20px;
            font-weight: bold;
            color: var(--tang-brown);
            font-family: 'KaiTi', 'STKaiti', serif;
        }
        
        .poem-author {
            font-size: 14px;
            color: #666;
        }
        
        .poem-author a {
            color: var(--tang-brown);
            text-decoration: none;
        }
        
        .poem-author a:hover {
            text-decoration: underline;
        }
        
        .poem-content {
            font-family: 'KaiTi', 'STKaiti', serif;
            font-size: 18px;
            line-height: 2.4;
            text-align: center;
            white-space: pre-wrap;
            margin-bottom: 20px;
            color: #333;
        }
        
        .poem-notes {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            color: #555;
            margin-bottom: 15px;
        }
        
        .poem-notes h4 {
            color: var(--tang-brown);
            margin-bottom: 10px;
            font-size: 15px;
        }
        
        .poem-translation {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            color: #555;
            margin-bottom: 15px;
        }
        
        .poem-translation h4 {
            color: var(--tang-brown);
            margin-bottom: 10px;
            font-size: 15px;
        }
        
        .poem-appreciation {
            font-size: 14px;
            color: #555;
            line-height: 2.0;
        }
        
        .poem-appreciation h4 {
            color: var(--tang-brown);
            margin-bottom: 10px;
            font-size: 15px;
        }
        
        .poem-appreciation p {
            text-indent: 2em;
            margin-bottom: 10px;
        }
        
        .section-divider {
            text-align: center;
            margin: 40px 0;
        }
        
        .section-divider span {
            display: inline-block;
            padding: 10px 30px;
            background: var(--tang-brown);
            color: white;
            border-radius: 20px;
            font-size: 16px;
            letter-spacing: 4px;
        }
        
        .cross-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            padding: 20px;
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        
        .cross-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            background: linear-gradient(135deg, var(--tang-brown), #A0522D);
            color: white;
            text-decoration: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .cross-link-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 30px 0;
        }
        
        .page-btn {
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--tang-brown);
            color: var(--tang-brown);
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
        }
        
        .page-btn:hover, .page-btn.active {
            background: var(--tang-brown);
            color: white;
        }
        
        .credibility-footer {
            background: #f5f5f5;
            padding: 30px;
            margin-top: 40px;
            border-top: 1px solid #ddd;
        }
        
        .credibility-footer h3 {
            color: var(--tang-brown);
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        .credibility-footer p {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        
        .credibility-footer .source-link {
            color: var(--tang-brown);
            text-decoration: none;
        }
        
        .credibility-footer .source-link:hover {
            text-decoration: underline;
        }
        
        @media (max-width: 768px) {
            .header-title {
                font-size: 24px;
                letter-spacing: 6px;
            }
            
            .poem-header {
                flex-direction: column;
                gap: 8px;
                align-items: flex-start;
            }
            
            .poem-content {
                font-size: 16px;
                line-height: 2.0;
            }
        }

/* 原 <style> 块 2 */
.poem-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed #eee;
        }
        
        .action-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .read-btn {
            background: linear-gradient(135deg, #8B4513, #DAA520);
            color: white;
        }
        
        .read-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(139,69,19,0.4);
        }
        
        .read-btn.reading {
            background: linear-gradient(135deg, #27AE60, #2ECC71);
            animation: readingPulse 1.5s ease-in-out infinite;
        }
        
        @keyframes readingPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(39, 174, 96, 0); }
        }
        
        .detail-btn {
            background: rgba(139,69,19,0.1);
            color: #8B4513;
            border: 1px solid rgba(139,69,19,0.2);
        }
        
        .detail-btn:hover {
            transform: translateY(-2px);
            background: rgba(139,69,19,0.15);
        }

/* ===== 唐风底部导航栏 ===== */
.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;
  }
}
