/* songci-masterpieces 页面样式 */

/* ======== 从 songci-masterpieces.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
:root {
            --ci-red: #8B0000;
            --ci-gold: #DAA520;
            --ci-dark: #2F2F2F;
            --ci-paper: #FFF8E7;
            --ci-accent: #4A4A4A;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
            background: linear-gradient(135deg, #fdf6e3 0%, #ffe4e1 100%);
            color: var(--ci-dark);
            line-height: 1.8;
            min-height: 100vh;
        }
        
        header {
            background: linear-gradient(135deg, var(--ci-red) 0%, #a52a2a 100%);
            padding: 30px 20px;
            color: white;
            text-align: center;
            box-shadow: 0 4px 20px rgba(139, 0, 0, 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(--ci-red);
        }
        
        .direct-answer h3 {
            color: var(--ci-red);
            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(--ci-red);
            margin-bottom: 15px;
            font-size: 24px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--ci-gold);
        }
        
        .intro-section p {
            margin-bottom: 15px;
            font-size: 16px;
            text-indent: 2em;
        }
        
        .ci-info {
            background: linear-gradient(135deg, rgba(139, 0, 0, 0.05), rgba(218, 165, 32, 0.1));
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }
        
        .ci-info h3 {
            color: var(--ci-red);
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .ci-info ul {
            list-style: none;
            font-size: 14px;
            color: #555;
        }
        
        .ci-info li {
            padding: 5px 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        
        .ci-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(--ci-red);
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .poem-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(139,0,0,0.05), transparent);
            transition: left 0.6s;
        }
        
        .poem-card:hover {
            transform: translateY(-8px) rotateX(3deg);
            box-shadow: 0 15px 35px rgba(139, 0, 0, 0.2);
        }
        
        .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(--ci-red);
            font-family: 'KaiTi', 'STKaiti', serif;
        }
        
        .poem-author {
            font-size: 14px;
            color: #666;
        }
        
        .poem-author a {
            color: var(--ci-red);
            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(--ci-red);
            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(--ci-red);
            margin-bottom: 10px;
            font-size: 15px;
        }
        
        .poem-appreciation {
            font-size: 14px;
            color: #555;
            line-height: 2.0;
        }
        
        .poem-appreciation h4 {
            color: var(--ci-red);
            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(--ci-red);
            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(--ci-red), #a52a2a);
            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, 0, 0, 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(--ci-red);
            color: var(--ci-red);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .category-btn:hover, .category-btn.active {
            background: var(--ci-red);
            color: white;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 30px 0;
        }
        
        .page-btn {
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--ci-red);
            color: var(--ci-red);
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
        }
        
        .page-btn:hover, .page-btn.active {
            background: var(--ci-red);
            color: white;
        }
        
        .credibility-footer {
            background: #f5f5f5;
            padding: 30px;
            margin-top: 40px;
            border-top: 1px solid #ddd;
        }
        
        .credibility-footer h3 {
            color: var(--ci-red);
            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 */
.cipai-filter-section {
            background: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .cipai-filter-section h3 {
            color: var(--ci-red);
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        .cipai-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .cipai-tab {
            padding: 8px 18px;
            background: rgba(139,0,0,0.05);
            border: 2px solid transparent;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            color: var(--ci-red);
            transition: all 0.3s;
            font-family: 'KaiTi', 'STKaiti', serif;
        }
        
        .cipai-tab.active {
            background: linear-gradient(135deg, var(--ci-red), #a52a2a);
            color: white;
            border-color: var(--ci-gold);
            box-shadow: 0 4px 15px rgba(139,0,0,0.3);
            transform: scale(1.05);
        }
        
        .cipai-tab:hover {
            transform: translateY(-2px);
            background: rgba(139,0,0,0.1);
        }
        
        .card-flip-container {
            perspective: 1000px;
        }
        
        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }
        
        .card-inner.flipped {
            transform: rotateY(180deg);
        }
        
        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 15px;
        }
        
        .card-back {
            transform: rotateY(180deg);
            background: linear-gradient(135deg, rgba(139,0,0,0.05), rgba(218,165,32,0.05));
            padding: 25px;
            border-left: 4px solid var(--ci-gold);
        }
        
        .back-title {
            color: var(--ci-red);
            font-size: 18px;
            margin-bottom: 15px;
            font-family: 'KaiTi', 'STKaiti', serif;
        }
        
        .back-content {
            font-size: 14px;
            color: #555;
            line-height: 1.8;
        }
