/* ci_pai_cloud 页面样式 */

/* ======== 从 ci_pai_cloud.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
body {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
            min-height: 100vh;
            padding-bottom: 120px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .page-header {
            text-align: center;
            padding: 60px 20px 40px;
            background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(160, 82, 45, 0.8));
            border-radius: 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 40px rgba(139, 69, 19, 0.3);
        }
        
        .page-header h1 {
            font-size: 36px;
            color: #FFD700;
            margin-bottom: 10px;
            font-family: "SimSun", "STSong", serif;
        }
        
        .page-header p {
            font-size: 16px;
            color: #fff;
            opacity: 0.9;
        }
        
        .category-tabs {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .category-tabs button {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            background: linear-gradient(135deg, #8B4513, #A0522D);
            color: #FFD700;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: "SimSun", serif;
            border: 2px solid #FFD700;
        }
        
        .category-tabs button:hover,
        .category-tabs button.active {
            background: linear-gradient(135deg, #DAA520, #FFD700);
            color: #5D4037;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
        }
        
        .word-cloud-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 15px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            min-height: 400px;
        }
        
        .word-cloud-item {
            padding: 10px 20px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: "SimSun", "STSong", serif;
            text-decoration: none;
            display: inline-block;
            position: relative;
        }
        
        .word-cloud-item:hover {
            transform: scale(1.15);
            z-index: 10;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }
        
        .word-cloud-item.small {
            font-size: 14px;
            background: rgba(139, 69, 19, 0.15);
            color: #8B4513;
            border: 1px solid rgba(139, 69, 19, 0.3);
        }
        
        .word-cloud-item.medium {
            font-size: 18px;
            background: rgba(139, 69, 19, 0.25);
            color: #6D3510;
            border: 1px solid rgba(139, 69, 19, 0.4);
        }
        
        .word-cloud-item.large {
            font-size: 24px;
            background: linear-gradient(135deg, #8B4513, #A0522D);
            color: #FFD700;
            border: 2px solid #FFD700;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }
        
        .word-cloud-item.xlarge {
            font-size: 32px;
            background: linear-gradient(135deg, #DAA520, #FFD700);
            color: #5D4037;
            border: 3px solid #8B4513;
            box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
        }
        
        .detail-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .detail-modal.show {
            display: flex;
            animation: fadeIn 0.3s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal-content {
            background: #fff;
            border-radius: 20px;
            max-width: 700px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s;
        }
        
        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-header {
            background: linear-gradient(135deg, #8B4513, #A0522D);
            color: #FFD700;
            padding: 25px;
            border-radius: 20px 20px 0 0;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .modal-header h2 {
            font-size: 28px;
            margin: 0;
            font-family: "SimSun", serif;
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 2px solid #FFD700;
            background: rgba(255, 255, 255, 0.2);
            color: #FFD700;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .modal-close:hover {
            background: #FFD700;
            color: #8B4513;
        }
        
        .modal-body {
            padding: 25px;
        }
        
        .cipai-info {
            margin-bottom: 25px;
            padding: 15px;
            background: #f9f6f0;
            border-radius: 10px;
        }
        
        .cipai-info dt {
            font-weight: bold;
            color: #8B4513;
            margin-bottom: 5px;
        }
        
        .cipai-info dd {
            margin-left: 0;
            color: #555;
            margin-bottom: 10px;
        }
        
        .famous-work {
            background: linear-gradient(135deg, rgba(139, 69, 19, 0.05), rgba(218, 165, 32, 0.05));
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            border-left: 4px solid #8B4513;
        }
        
        .famous-work h4 {
            color: #8B4513;
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .famous-work .author {
            color: #666;
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        .famous-work .content {
            font-family: "SimSun", "STSong", serif;
            line-height: 2;
            color: #333;
            white-space: pre-line;
            margin-bottom: 15px;
        }
        
        .famous-work .annotation {
            background: rgba(255, 255, 255, 0.8);
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            color: #555;
            border: 1px solid rgba(139, 69, 19, 0.2);
        }
        
        .stats-row {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .stat-item {
            text-align: center;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px 30px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }
        
        .stat-item .number {
            font-size: 36px;
            font-weight: bold;
            color: #8B4513;
        }
        
        .stat-item .label {
            font-size: 14px;
            color: #666;
            margin-top: 5px;
        }
        
        .tang-bottom-nav {
            position: fixed !important;
        }
        
        @media (max-width: 768px) {
            .page-header h1 {
                font-size: 24px;
            }
            
            .word-cloud-container {
                padding: 20px;
                gap: 10px;
            }
            
            .word-cloud-item.xlarge {
                font-size: 24px;
            }
            
            .word-cloud-item.large {
                font-size: 18px;
            }
            
            .stats-row {
                gap: 20px;
            }
            
            .stat-item {
                padding: 15px 20px;
            }
            
            .stat-item .number {
                font-size: 28px;
            }
        }

/* 原 <style> 块 2 */
.tang-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: linear-gradient(to top, rgba(139, 69, 19, 0.98), rgba(160, 82, 45, 0.95));
            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;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 215, 0, 0.3);
            font-family: "SimSun", serif;
        }
        
        .nav-item:hover, .nav-item.active {
            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-item.special-link {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
            border-color: #FFD700;
        }
        
        .nav-icon { font-size: 18px; }
        .nav-text { font-size: 12px; margin-top: 2px; }
        
        @media (max-width: 768px) {
            .nav-icon { font-size: 16px; }
            .nav-text { font-size: 10px; }
            .nav-item { padding: 6px 8px; }
        }

/* 搜索栏 */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 25px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #DAA520;
    border-radius: 25px;
    font-size: 15px;
    font-family: "SimSun", serif;
    background: rgba(255, 255, 255, 0.9);
    color: #5D4037;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #8B4513;
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #8B4513;
    color: #FFD700;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.clear-btn:hover {
    background: #A0522D;
}

/* 知识卡片区域 */
.knowledge-section {
    margin-top: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #8B4513;
    font-family: "SimSun", "STSong", serif;
    margin-bottom: 25px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.knowledge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 230, 200, 0.5));
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #DAA520;
    transition: all 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.knowledge-card h3 {
    color: #8B4513;
    font-size: 18px;
    font-family: "SimSun", serif;
    margin-bottom: 12px;
}

.knowledge-card h3 i {
    color: #DAA520;
    margin-right: 8px;
}

.knowledge-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.knowledge-card strong {
    color: #8B4513;
}

/* 模态框导航按钮 */
.modal-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 69, 19, 0.15);
}

.modal-nav-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-family: "SimSun", "STSong", serif;
    color: #8B4513;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.95), rgba(245, 230, 200, 0.6));
    border: 2px solid #DAA520;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover {
    background: linear-gradient(135deg, #8B4513, #DAA520);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
}

.modal-nav-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .modal-nav-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 经典作品标题 */
.works-title {
    color: #8B4513;
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 20px;
    font-family: "SimSun", serif;
    border-bottom: 2px solid #DAA520;
    padding-bottom: 8px;
}

/* 原内联 style 属性（已转为 class） */
.ih-1ew31sc {
    color: #999;
    font-size: 18px;
    text-align: center;
    padding: 40px;
}
