/* ===== 以下规则原内联于 science.html <style>（P1整改前置抽取，保持级联顺序） ===== */
.science-search-section {
            max-width: 900px;
            margin: 0 auto 30px;
            padding: 0 20px;
        }
        .science-search-box {
            margin-bottom: 15px;
        }
        .science-search-box input {
            width: 100%;
            padding: 14px 20px;
            border: 2px solid rgba(218, 165, 32, 0.3);
            border-radius: 30px;
            font-size: 16px;
            background: #fff;
            transition: all 0.3s;
            box-sizing: border-box;
        }
        .science-search-box input:focus {
            outline: none;
            border-color: #DAA520;
            box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.1);
        }
        .science-filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        .filter-tag {
            padding: 8px 18px;
            border: 1px solid rgba(218, 165, 32, 0.4);
            background: #fff;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            color: #8B4513;
            transition: all 0.3s;
        }
        .filter-tag:hover {
            background: #FAF3E0;
            transform: translateY(-2px);
        }
        .filter-tag.active {
            background: linear-gradient(135deg, #DAA520, #FFD700);
            color: #5D4037;
            border-color: #DAA520;
            font-weight: bold;
        }
        .science-search-result {
            text-align: center;
            margin-top: 15px;
            color: #666;
            font-size: 14px;
        }
        .science-search-result span {
            color: #DAA520;
            font-weight: bold;
        }
        .sub-item.hidden {
            display: none !important;
        }
        .section.hidden {
            display: none !important;
        }
        @media (max-width: 768px) {
            .science-filter-tags {
                gap: 8px;
            }
            .filter-tag {
                padding: 6px 14px;
                font-size: 13px;
            }
        }

/* science 页面样式 */

/* ======== 从 science.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background-color: #f5f5f5; line-height: 1.6; color: #333; }
        header { background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.5) 100%); padding: 20px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.1); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.7); }
        .header-title { font-size: 32px; font-weight: bold; color: #2c3e50; margin-bottom: 10px; }
        .nav-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
        .nav-link { text-decoration: none; color: #8B4513; font-size: 18px; padding: 8px 16px; border-radius: 20px; transition: all 0.3s; }
        .nav-link:hover { background-color: #8B4513; color: white; }
        main { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
        .section { background: white; border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
        .section-title { font-size: 24px; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #8B4513; }
        .sub-item { margin-bottom: 25px; }
        .sub-item h5 { font-size: 18px; color: #8B4513; margin-bottom: 10px; }
        .science-image { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; }
        .science-content { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 15px; }
        .poem-reference { background-color: #f9f9f9; padding: 15px; border-radius: 10px; border-left: 4px solid #8B4513; }
        .poem-title { font-weight: bold; color: #2c3e50; margin-bottom: 5px; }
        .poem-author { color: #888; font-size: 14px; margin-bottom: 10px; }
        .poem-content { font-style: italic; color: #666; line-height: 2; }
        footer { background-color: #2c3e50; color: white; text-align: center; padding: 20px; margin-top: 50px; }
        .scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: #8B4513; color: white; border: none; border-radius: 50%; font-size: 24px; cursor: pointer; display: none; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
        .scroll-to-top:hover { background-color: #6D3510; }
        
        /* ====== 增强交互效果 ====== */
        
        .header-title {
            animation: titleFadeIn 1s ease-out;
            background: linear-gradient(135deg, #8B4513, #DAA520);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        @keyframes titleFadeIn {
            0% { opacity: 0; transform: translateY(-20px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .section {
            animation: sectionSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
            transition: all 0.3s ease;
        }
        
        .section:nth-child(1) { animation-delay: 0.1s; }
        .section:nth-child(2) { animation-delay: 0.2s; }
        .section:nth-child(3) { animation-delay: 0.3s; }
        .section:nth-child(4) { animation-delay: 0.4s; }
        .section:nth-child(5) { animation-delay: 0.5s; }
        
        @keyframes sectionSlideIn {
            0% { opacity: 0; transform: translateY(30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .section:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 35px rgba(139, 69, 19, 0.12);
        }
        
        .section-title {
            position: relative;
            padding-left: 25px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 25px;
            background: #8B4513;
            border-radius: 2px;
        }
        
        .sub-item {
            animation: itemSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
            transition: all 0.3s ease;
        }
        
        .sub-item:nth-child(1) { animation-delay: 0.1s; }
        .sub-item:nth-child(2) { animation-delay: 0.15s; }
        .sub-item:nth-child(3) { animation-delay: 0.2s; }
        
        @keyframes itemSlideIn {
            0% { opacity: 0; transform: translateX(-20px); }
            100% { opacity: 1; transform: translateX(0); }
        }
        
        .sub-item:hover {
            background: rgba(139, 69, 19, 0.05);
            padding: 10px;
            border-radius: 10px;
            transform: translateX(5px);
        }
        
        .science-image {
            transition: transform 0.4s ease;
        }
        
        .sub-item:hover .science-image {
            transform: scale(1.03);
        }
        
        .nav-link {
            position: relative;
            overflow: hidden;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #DAA520;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .nav-link:hover::after {
            transform: scaleX(1);
        }
        
        .poem-reference {
            animation: poemFadeIn 0.5s ease-out;
            transition: all 0.3s ease;
        }
        
        @keyframes poemFadeIn {
            0% { opacity: 0; transform: translateX(-10px); }
            100% { opacity: 1; transform: translateX(0); }
        }
        
        .poem-reference:hover {
            background: rgba(139, 69, 19, 0.1);
            transform: translateX(5px);
        }
        
        /* 数据可视化进度条 */
        .data-bar {
            height: 20px;
            background: #f0f0f0;
            border-radius: 10px;
            margin: 10px 0;
            overflow: hidden;
            position: relative;
        }
        
        .data-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #8B4513, #9ACD32);
            border-radius: 10px;
            width: 0%;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .data-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: barShine 2s ease-in-out infinite;
        }
        
        @keyframes barShine {
            0% { left: -100%; }
            50%, 100% { left: 200%; }
        }
        
        .data-label {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #666;
        }
        
        /* 术语解释卡片 */
        .science-term {
            display: inline-block;
            background: rgba(139, 69, 19, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            cursor: help;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .science-term:hover {
            background: rgba(139, 69, 19, 0.2);
            transform: scale(1.05);
        }
        
        .term-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #2c3e50;
            color: white;
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 13px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            margin-bottom: 10px;
            max-width: 300px;
        }
        
        .term-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 8px solid transparent;
            border-top-color: #2c3e50;
        }
        
        .science-term:hover .term-tooltip {
            opacity: 1;
            visibility: visible;
        }
        
        /* 知识点展开效果 */
        .expandable-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(139, 69, 19, 0.03);
            padding: 0 15px;
            border-radius: 8px;
        }
        
        .expandable-content.expanded {
            max-height: 300px;
            padding: 15px;
            margin-top: 10px;
        }
        
        .expand-btn {
            background: none;
            border: none;
            color: #8B4513;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
        }
        
        .expand-btn:hover {
            color: #8B4513;
        }
        
        .expand-btn svg {
            transition: transform 0.3s ease;
        }
        
        .expand-btn.expanded svg {
            transform: rotate(180deg);
        }
        
        /* 统计卡片 */
        .stats-card {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-item {
            background: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0;
            transform: translateY(20px);
        }
        
        .stat-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(139, 69, 19, 0.2);
        }
        
        .stat-number {
            font-size: 36px;
            font-weight: bold;
            color: #8B4513;
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 14px;
            color: #666;
        }
        
        .scroll-to-top.show {
            animation: btnBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        @keyframes btnBounceIn {
            0% { transform: translateY(20px) scale(0); opacity: 0; }
            50% { transform: translateY(-5px) scale(1.1); opacity: 1; }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }
        
        .science-content {
            position: relative;
        }
        
        .science-content::first-letter {
            font-size: 28px;
            font-weight: bold;
            color: #8B4513;
            margin-right: 5px;
        }
        
        .highlight-term {
            background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(218, 165, 32, 0.1));
            padding: 2px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .highlight-term:hover {
            background: linear-gradient(135deg, rgba(218, 165, 32, 0.5), rgba(218, 165, 32, 0.3));
            transform: scale(1.05);
        }
        
        .info-icon {
            animation: iconPulse 2s ease-in-out infinite;
        }
        
        @keyframes iconPulse {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
        }

/* 原 <style> 块 2 */
@keyframes statEntry {
            from { opacity: 0; transform: translateY(20px) scale(0.9); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        @keyframes numberPop {
            0% { opacity: 0; transform: scale(0.5); }
            50% { transform: scale(1.2); }
            100% { opacity: 1; transform: scale(1); }
        }

/* 原内联 style 属性（已转为 class） */
.ih-irc8f2 {
    color: #666;
}

.ih-lgslqp {
    padding-left: 20px;
    margin-bottom: 10px;
}

.ih-1hrwwgs {
    font-size: 14px;
    margin-top: 10px;
    color: #aaa;
}
