/* libai-poems 页面样式 */

/* ======== 从 libai-poems.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
:root {
            --li-white: #F5F5F5;
            --li-blue: #4A90D9;
            --li-dark: #2F2F2F;
            --li-accent: #8B4513;
            --li-gold: #DAA520;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
            background: linear-gradient(135deg, #e8f4f8 0%, #fdf5e6 100%);
            color: var(--li-dark);
            line-height: 1.8;
            min-height: 100vh;
        }
        
        header {
            background: linear-gradient(135deg, var(--li-blue) 0%, #2563eb 100%);
            padding: 30px 20px;
            color: white;
            text-align: center;
            box-shadow: 0 4px 20px rgba(74, 144, 217, 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(--li-blue);
        }
        
        .direct-answer h3 {
            color: var(--li-blue);
            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(--li-blue);
            margin-bottom: 15px;
            font-size: 24px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--li-gold);
        }
        
        .intro-section p {
            margin-bottom: 15px;
            font-size: 16px;
            text-indent: 2em;
        }
        
        .poet-info {
            background: linear-gradient(135deg, rgba(74, 144, 217, 0.1), rgba(218, 165, 32, 0.1));
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }
        
        .poet-info h3 {
            color: var(--li-blue);
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .poet-info ul {
            list-style: none;
            font-size: 14px;
            color: #555;
        }
        
        .poet-info li {
            padding: 5px 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        
        .poet-info li:last-child {
            border-bottom: none;
        }
        
        .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(--li-blue);
            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: liCardEntry 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 liCardEntry {
            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(74,144,217,0.05), transparent);
            transition: left 0.6s;
        }
        
        .poem-card:hover {
            transform: translateY(-8px) rotateX(2deg);
            box-shadow: 0 15px 35px rgba(74, 144, 217, 0.25);
            border-left-color: var(--li-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(--li-blue);
            font-family: 'KaiTi', 'STKaiti', serif;
        }
        
        .poem-author {
            font-size: 14px;
            color: #666;
        }
        
        .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(--li-blue);
            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(--li-blue);
            margin-bottom: 10px;
            font-size: 15px;
        }
        
        .poem-appreciation {
            font-size: 14px;
            color: #555;
            line-height: 2.0;
        }
        
        .poem-appreciation h4 {
            color: var(--li-blue);
            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(--li-blue);
            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(--li-blue), #2563eb);
            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(74, 144, 217, 0.3);
        }
        
        .poem-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            justify-content: center;
        }
        
        .category-btn {
            padding: 8px 20px;
            background: white;
            border: 1px solid var(--li-blue);
            color: var(--li-blue);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .category-btn:hover, .category-btn.active {
            background: var(--li-blue);
            color: white;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 30px 0;
        }
        
        .page-btn {
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--li-blue);
            color: var(--li-blue);
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
        }
        
        .page-btn:hover, .page-btn.active {
            background: var(--li-blue);
            color: white;
        }
        
        .credibility-footer {
            background: #f5f5f5;
            padding: 30px;
            margin-top: 40px;
            border-top: 1px solid #ddd;
        }
        
        .credibility-footer h3 {
            color: var(--li-blue);
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        .credibility-footer p {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        
        @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 */
.mood-filter {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .mood-btn {
            padding: 10px 20px;
            border: 2px solid var(--li-blue);
            border-radius: 25px;
            background: white;
            color: var(--li-blue);
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .mood-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(74,144,217,0.3);
        }
        
        .mood-btn.active {
            background: linear-gradient(135deg, var(--li-blue), #2563eb);
            color: white;
            border-color: transparent;
        }
        
        .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, var(--li-blue), #2563eb);
            color: white;
        }
        
        .read-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(74,144,217,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(74,144,217,0.1);
            color: var(--li-blue);
            border: 1px solid rgba(74,144,217,0.2);
        }
        
        .detail-btn:hover {
            transform: translateY(-2px);
            background: rgba(74,144,217,0.15);
        }
        
        .theme-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            transition: opacity 0.8s ease;
            opacity: 0;
        }
        
        .theme-overlay.active {
            opacity: 0.15;
        }
        
        .theme-moon {
            position: absolute;
            top: 20%;
            right: 15%;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, #fffacd 0%, #daa520 100%);
            border-radius: 50%;
            box-shadow: 0 0 60px rgba(255,250,205,0.6);
            animation: moonGlow 4s ease-in-out infinite;
        }
        
        .theme-mountain {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30vh;
            background: linear-gradient(to top, rgba(74,144,217,0.3), transparent);
            clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 40%, 80% 70%, 100% 50%, 100% 100%);
        }
        
        @keyframes moonGlow {
            0%, 100% { box-shadow: 0 0 60px rgba(255,250,205,0.6); }
            50% { box-shadow: 0 0 100px rgba(255,250,205,0.9); }
        }
