/* poem-collection 页面样式 */

/* ======== 从 poem-collection.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
body {
            font-family: "Microsoft YaHei", "SimHei", sans-serif;
            background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e6 100%);
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }
        
        .collection-header {
            background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
            color: white;
            padding: 60px 20px;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }
        
        .collection-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
            animation: pulse 3s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }
        
        .collection-header h1 {
            font-size: 3em;
            margin-bottom: 10px;
            font-family: "KaiTi", "楷体", serif;
            position: relative;
            z-index: 1;
        }
        
        .collection-header .subtitle {
            font-size: 1.2em;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }
        
        .filter-bar {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            padding: 0 20px;
        }
        
        .filter-btn {
            padding: 10px 25px;
            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;
        }
        
        .poem-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .poem-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .poem-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            padding: 30px;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border-left: 5px solid #DAA520;
        }
        
        .poem-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(218,165,32,0.05), transparent);
            transition: left 0.6s;
        }
        
        .poem-card:hover {
            transform: translateY(-10px) rotateX(2deg);
            box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
            border-left-color: #8B4513;
        }
        
        .poem-card:hover::before {
            left: 100%;
        }
        
        .poem-icon {
            font-size: 3em;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .poem-title {
            font-size: 1.6em;
            color: #8B4513;
            margin-bottom: 10px;
            text-align: center;
            font-family: "KaiTi", "楷体", serif;
        }
        
        .poem-author {
            font-size: 1em;
            color: #666;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .poem-author span {
            display: inline-block;
            padding: 3px 12px;
            background: #f0e6d2;
            border-radius: 15px;
            font-size: 0.9em;
        }
        
        .poem-preview {
            font-size: 1.1em;
            line-height: 1.8;
            color: #444;
            margin-bottom: 20px;
            text-align: center;
            font-family: "KaiTi", "楷体", serif;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .poem-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .poem-tag {
            padding: 4px 10px;
            background: #f5f0e6;
            border-radius: 10px;
            font-size: 0.85em;
            color: #8B4513;
        }
        
        .read-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: #8B4513;
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 8px;
            transition: background 0.3s;
        }
        
        .read-btn:hover {
            background: #D2691E;
        }
        
        .stats-section {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-bottom: 40px;
            padding: 0 20px;
        }
        
        .stat-item {
            text-align: center;
            padding: 20px 40px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .stat-number {
            font-size: 2.5em;
            font-weight: bold;
            color: #8B4513;
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 0.9em;
            color: #666;
        }
        
        .nav-footer {
            text-align: center;
            padding: 40px 20px;
        }
        
        .nav-link {
            display: inline-block;
            padding: 10px 25px;
            margin: 0 10px;
            background: #8B4513;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s;
        }
        
        .nav-link:hover {
            background: #D2691E;
        }
        
        @media (max-width: 768px) {
            .collection-header h1 {
                font-size: 2em;
            }
            
            .poem-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .stats-section {
                flex-direction: column;
                gap: 15px;
            }
            
            .stat-item {
                padding: 15px 20px;
            }
        }
        
        @keyframes cardEntry {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .poem-card {
            animation: cardEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        
        .poem-card:nth-child(1) { animation-delay: 0.1s; }
        .poem-card:nth-child(2) { animation-delay: 0.2s; }
        .poem-card:nth-child(3) { animation-delay: 0.3s; }
        .poem-card:nth-child(4) { animation-delay: 0.4s; }
        .poem-card:nth-child(5) { animation-delay: 0.5s; }
        .poem-card:nth-child(6) { animation-delay: 0.6s; }
        .poem-card:nth-child(7) { animation-delay: 0.7s; }
        .poem-card:nth-child(8) { animation-delay: 0.8s; }
        .poem-card:nth-child(9) { animation-delay: 0.9s; }
        .poem-card:nth-child(10) { animation-delay: 1s; }
        
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #8B4513;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            text-decoration: none;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .back-to-top.show {
            opacity: 1;
            animation: btnBounce 0.5s ease-out;
        }
        
        @keyframes btnBounce {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        .back-to-top:hover {
            background: #DAA520;
            transform: translateY(-5px);
        }

/* 原内联 style 属性（已转为 class） */
.ih-lcicbm {
    color: #8B4513;
    margin-bottom: 20px;
}

.ih-1g85q3q {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
