/* flower_poems 页面样式 */

/* ======== 从 flower_poems.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Serif SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
            background-color: #f5f5f5;
            line-height: 1.6;
            color: #333;
            padding-bottom: 100px;
        }
        
        /* 五星优化：添加页面加载动画 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .flower-section.active {
            display: block;
            animation: fadeInUp 0.5s ease-out;
        }
        
        /* 五星优化：添加诗词卡片悬停效果增强 */
        .poem-item {
            position: relative;
            overflow: hidden;
        }
        
        .poem-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s;
        }
        
        .poem-item:hover::before {
            left: 100%;
        }
        
        /* 五星优化：添加朗读按钮样式 */
        .audio-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
        }
        
        .audio-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        /* 五星优化：添加收藏按钮样式 */
        .favorite-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
            margin-left: 10px;
        }
        
        .favorite-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
        }
        
        .favorite-btn.active {
            background: linear-gradient(135deg, #ff4757, #ff3838);
        }
        
        /* 五星优化：添加分享按钮样式 */
        .share-btn {
            background: linear-gradient(135deg, #4ecdc4, #44a3aa);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
            margin-left: 10px;
        }
        
        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
        }
        
        /* 五星优化：添加按钮容器 */
        .poem-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        
        /* 五星优化：添加返回顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 100px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #8B4513, #B8860B);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            z-index: 999;
            display: none;
        }
        
        .back-to-top.visible {
            display: block;
            animation: fadeInUp 0.3s ease;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.4);
        }
        
        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: 5px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            background-color: rgba(139, 69, 19, 0.1);
            transform: translateY(-2px);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .category-tabs {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 30px;
            flex-wrap: wrap;
            padding: 10px;
            background-color: rgba(240, 248, 232, 0.5);
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .category-tab {
            background-color: white;
            border: 2px solid #e0e0e0;
            border-radius: 20px;
            padding: 8px 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            color: #555;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .category-tab:hover {
            background-color: #f0f8e8;
            border-color: #8B4513;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(139, 69, 19, 0.15);
        }
        
        .category-tab.active {
            background-color: #8B4513;
            color: white;
            border-color: #8B4513;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }
        
        .flower-section {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 20px;
            display: none;
        }
        
        .flower-section.active {
            display: block;
        }
        
        .section-title {
            font-size: 28px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
            position: relative;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: #8B4513;
            border-radius: 2px;
        }
        
        .flower-intro {
            background-color: #f0f8e8;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            border-left: 4px solid #8B4513;
        }
        
        .flower-intro h3 {
            color: #8B4513;
            margin-bottom: 10px;
        }
        
        .poem-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
            margin-bottom: 30px;
            padding: 0 10px;
        }
        
        .poem-item {
            background-color: white;
            border-radius: 12px;
            padding: 24px;
            border: 1px solid #e8e8e8;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .poem-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
            border-color: #8B4513;
        }
        
        .poem-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-radius: 10px;
            border: 2px solid rgba(139, 69, 19, 0.3);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
            transition: all 0.3s ease;
        }
        
        .poem-item:hover .poem-image {
            transform: scale(1.02);
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
        }
        
        .poem-title {
            font-weight: bold;
            color: #2c3e50;
            font-size: 18px;
            line-height: 1.3;
            margin: 0;
        }
        
        .poem-author {
            font-style: italic;
            color: #666;
            font-size: 14px;
            margin: 0;
        }
        
        .poem-content {
            line-height: 1.8;
            color: #333;
            background-color: #f8f9fa;
            padding: 16px;
            border-radius: 8px;
            border-left: 4px solid #8B4513;
            font-family: 'Microsoft YaHei', serif;
            flex: 1;
        }
        
        .poem-meaning {
            color: #555;
            font-size: 14px;
            line-height: 1.7;
            background-color: rgba(240, 248, 232, 0.5);
            padding: 12px;
            border-radius: 6px;
        }
        
        /* 查看诗人行迹按钮样式 */
        .view-poet-trace-btn {
            background-color: #8B4513;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 15px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .view-poet-trace-btn:hover {
            background-color: #DAA520;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
        }
        
        .view-poet-trace-btn:active {
            transform: translateY(0);
        }
        
        /* 收藏按钮样式 */
        .favorite-btn {
            background-color: #fff;
            color: #FF6B6B;
            border: 2px solid #FF6B6B;
            padding: 6px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 10px;
            margin-left: 10px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .favorite-btn:hover {
            background-color: #FF6B6B;
            color: white;
            transform: translateY(-2px);
        }
        
        .favorite-btn.active {
            background-color: #FF6B6B;
            color: white;
        }
        
        /* 随机推荐按钮样式 */
        .random-poem-btn {
            background-color: #4ECDC4;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            margin: 20px auto;
            display: block;
            transition: all 0.3s ease;
        }
        
        .random-poem-btn:hover {
            background-color: #45B7AA;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
        }
        
        /* 分享按钮样式 */
        .share-btn {
            background-color: #45B7D1;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 10px;
            margin-left: 10px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .share-btn:hover {
            background-color: #3BA2B8;
            transform: translateY(-2px);
        }
        
        /* 随机诗词弹窗样式 */
        .random-poem-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }
        
        .random-poem-modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 30px;
            border-radius: 15px;
            width: 80%;
            max-width: 600px;
            position: relative;
            animation: slideIn 0.3s ease;
        }
        
        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close-modal:hover,
        .close-modal:focus {
            color: black;
            text-decoration: none;
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from {opacity: 0;}
            to {opacity: 1;}
        }
        
        @keyframes slideIn {
            from {transform: translateY(-50px); opacity: 0;}
            to {transform: translateY(0); opacity: 1;}
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .category-tabs {
                flex-direction: row;
                gap: 6px;
                padding: 8px;
            }
            
            .category-tab {
                font-size: 12px;
                padding: 6px 12px;
            }
            
            .nav-links {
                flex-direction: column;
                gap: 10px;
            }
            
            .flower-section {
                padding: 20px;
            }
            
            .poem-container {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0;
            }
            
            .poem-item {
                padding: 20px;
            }
            
            .poem-image {
                height: 160px;
            }
            
            .header-title {
                font-size: 24px;
            }
            
            .section-title {
                font-size: 22px;
            }
            
            /* 白居易介绍区域响应式设计 */
            .baijuyi-intro {
                padding: 20px;
            }

            .baijuyi-intro > div {
                flex-direction: column;
                text-align: center;
            }

            .baijuyi-intro > div > div:first-child {
                flex: 0 0 auto;
                width: 100%;
                max-width: 340px;
                margin: 0 auto;
            }

            /* 移动端禁用飘落花瓣，避免遮挡导航与正文 */
            .flower-petal {
                display: none !important;
            }
        }
        
        @media (min-width: 769px) and (max-width: 1024px) {
            .poem-container {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 20px;
            }
        }
        
        /* 花卉特定样式 */
        #梅花 .section-title::after {
            background-color: #FF6B6B;
        }
        
        #兰花 .section-title::after {
            background-color: #4ECDC4;
        }
        
        #竹子 .section-title::after {
            background-color: #96CEB4;
        }
        
        #菊花 .section-title::after {
            background-color: #FFA500;
        }
        
        /* 装饰性元素 */
        .decoration {
            text-align: center;
            margin: 30px 0;
            font-size: 48px;
            color: #8B4513;
        }
        
        /* 延迟加载图片样式 */
        .lazy {
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }
        
        .lazy.loaded {
            opacity: 1;
        }
        
        /* 按钮容器样式 */
        .button-container {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }
        
        /* 白居易介绍区域样式 */
        .baijuyi-intro {
            max-width: 1000px;
            margin: 30px auto;
            padding: 30px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        .baijuyi-intro > div {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 30px;
        }
        
        .baijuyi-intro > div > div:first-child {
            flex: 0 0 200px;
        }
        
        .baijuyi-intro > div > div:first-child img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            display: block;
        }

        .baijuyi-caption {
            margin-top: 8px;
            font-size: 12px;
            color: #8b7355;
            text-align: center;
            line-height: 1.5;
        }
        
        .baijuyi-intro > div > div:last-child {
            flex: 1;
        }
        
        .baijuyi-intro h2 {
            margin-bottom: 15px;
            color: #8B4513;
        }
        
        .baijuyi-intro p {
            font-size: 16px;
            line-height: 1.6;
            color: #333;
            margin-bottom: 15px;
        }
        
        /* 词云容器样式 */
        .wordcloud-container {
            max-width: 1000px;
            margin: 30px auto;
            padding: 20px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        /* 搜索容器样式 */
        .search-container {
            margin-top: 20px;
            text-align: center;
        }
        
        .search-container input {
            padding: 8px;
            width: 300px;
            width: min(300px, 80vw); /* 窄屏收缩，防 <340px 屏溢出 */
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-right: 10px;
        }
        
        .search-container button {
            padding: 8px 16px;
            background-color: #8B4513;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            .search-container {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 8px;
                padding: 0 12px;
            }
            .search-container input {
                margin-right: 0;
                flex: 1 1 180px;
            }
            .search-container button {
                flex-shrink: 0;
            }
        }
        
        /* ====== 增强交互效果 ====== */
        
        /* 花瓣飘落动画 */
        .flower-petal {
            position: fixed;
            top: -30px;
            font-size: 24px;
            opacity: 0.7;
            pointer-events: none;
            z-index: 9999;
            animation: flowerFall linear infinite;
        }
        
        @keyframes flowerFall {
            0% {
                transform: translateY(0) rotate(0deg) translateX(0);
                opacity: 0.7;
            }
            25% {
                transform: translateY(25vh) rotate(90deg) translateX(20px);
            }
            50% {
                transform: translateY(50vh) rotate(180deg) translateX(-20px);
            }
            75% {
                transform: translateY(75vh) rotate(270deg) translateX(15px);
            }
            100% {
                transform: translateY(100vh) rotate(360deg) translateX(-15px);
                opacity: 0;
            }
        }
        
        /* 词云交互效果 */
        #wordcloud {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        #wordcloud:hover {
            filter: brightness(1.05);
        }
        
        .wordcloud-tooltip {
            position: fixed;
            background: linear-gradient(135deg, #8B4513, #B8860B);
            color: white;
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 14px;
            pointer-events: none;
            z-index: 10000;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
            opacity: 0;
            transition: opacity 0.3s ease;
            max-width: 300px;
        }
        
        .wordcloud-tooltip.visible {
            opacity: 1;
        }
        
        /* 花卉卡片3D翻转效果 */
        .poem-item {
            perspective: 1000px;
            transform-style: preserve-3d;
        }
        
        .poem-item-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            transform-style: preserve-3d;
        }
        
        .poem-item:hover .poem-item-inner {
            transform: rotateY(180deg);
        }
        
        .poem-item-front,
        .poem-item-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 12px;
            background: white;
        }
        
        .poem-item-back {
            transform: rotateY(180deg);
            background: linear-gradient(135deg, #f0f8e8, #e8f5e9);
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border: 2px solid #8B4513;
        }
        
        /* 导航标签页切换动画 */
        .flower-section {
            animation: sectionFadeIn 0.5s ease-out;
        }
        
        @keyframes sectionFadeIn {
            0% {
                opacity: 0;
                transform: translateY(20px) scale(0.98);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        /* 分类标签脉冲效果 */
        .category-tab {
            position: relative;
            overflow: hidden;
        }
        
        .category-tab::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(139, 69, 19, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease-out, height 0.6s ease-out;
        }
        
        .category-tab:active::after {
            width: 300%;
            height: 300%;
        }
        
        /* 返回顶部按钮动画 */
        .back-to-top {
            animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        @keyframes bounceIn {
            0% {
                transform: scale(0);
            }
            50% {
                transform: scale(1.2);
            }
            100% {
                transform: scale(1);
            }
        }
        
        /* 搜索框聚焦效果 */
        .search-container input {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
        }
        
        .search-container input:focus {
            outline: none;
            border-color: #8B4513;
            box-shadow: 0 0 15px rgba(139, 69, 19, 0.3);
            transform: scale(1.02);
        }
        
        /* 搜索按钮波纹效果 */
        .search-container button {
            position: relative;
            overflow: hidden;
        }
        
        .search-container button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease-out, height 0.6s ease-out;
        }
        
        .search-container button:active::after {
            width: 300%;
            height: 300%;
        }
        
        /* 诗句文字逐字显示 */
        .poem-char {
            display: inline-block;
            opacity: 0;
            transform: translateY(8px);
            animation: charRevealFlower 0.4s ease-out forwards;
        }
        
        @keyframes charRevealFlower {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 白居易介绍区域动画 */
        .baijuyi-intro {
            animation: introSlideIn 1s ease-out;
        }
        
        @keyframes introSlideIn {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 图片加载淡入效果 */
        .poem-image {
            transition: opacity 0.5s ease-in-out;
        }
        
        .poem-image.loading {
            opacity: 0;
        }
        
        .poem-image.loaded {
            opacity: 1;
        }
        
        /* ====== 增强交互效果 ====== */
        
        /* 页面标题动画 */
        .page-title {
            animation: titleFadeIn 1s ease-out;
            background: linear-gradient(135deg, #8B4513, #B8860B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        @keyframes titleFadeIn {
            0% { opacity: 0; transform: translateY(-30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        /* 副标题动画 */
        .page-subtitle {
            animation: subtitleFadeIn 0.8s ease-out 0.3s backwards;
        }
        
        @keyframes subtitleFadeIn {
            0% { opacity: 0; letter-spacing: 20px; }
            100% { opacity: 1; letter-spacing: normal; }
        }
        
        /* 花卉标签动画 */
        .flower-tag {
            animation: tagFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .flower-tag:nth-child(1) { animation-delay: 0.1s; }
        .flower-tag:nth-child(2) { animation-delay: 0.2s; }
        .flower-tag:nth-child(3) { animation-delay: 0.3s; }
        .flower-tag:nth-child(4) { animation-delay: 0.4s; }
        .flower-tag:nth-child(5) { animation-delay: 0.5s; }
        .flower-tag:nth-child(6) { animation-delay: 0.6s; }
        .flower-tag:nth-child(7) { animation-delay: 0.7s; }
        .flower-tag:nth-child(8) { animation-delay: 0.8s; }
        
        @keyframes tagFadeIn {
            0% { opacity: 0; transform: translateY(20px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .flower-tag:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
        }
        
        .flower-tag.active {
            animation: tagActive 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        @keyframes tagActive {
            0% { transform: scale(0.8); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* 诗句卡片入场动画 */
        .poem-card {
            animation: cardSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
        }
        
        .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; }
        
        @keyframes cardSlideIn {
            0% { opacity: 0; transform: translateY(30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        /* 卡片悬浮效果 */
        .poem-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .poem-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(139, 69, 19, 0.18);
        }
        
        /* 诗句逐字显示 */
        .poem-line {
            overflow: hidden;
        }
        
        .poem-char {
            display: inline-block;
            opacity: 0;
            transform: translateY(5px);
            animation: charReveal 0.3s ease-out forwards;
        }
        
        @keyframes charReveal {
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 诗人名字渐变 */
        .poem-author {
            background: linear-gradient(135deg, #8B4513, #B8860B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 花卉图片悬浮 */
        .poem-image {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .poem-card:hover .poem-image {
            transform: scale(1.05);
            filter: brightness(1.1);
        }
        
        /* 收藏按钮心跳 */
        .favorite-btn {
            transition: all 0.3s ease;
        }
        
        .favorite-btn:hover {
            transform: scale(1.2);
        }
        
        .favorite-btn.active {
            animation: heartBeat 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            color: #b91c1c;
        }
        
        @keyframes heartBeat {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }
        
        /* 搜索框聚焦效果 */
        .search-input {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .search-input:focus {
            border-color: #DAA520;
            box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
            transform: translateY(-2px);
        }
        
        /* 搜索按钮悬浮 */
        .search-btn {
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .search-btn:hover {
            background: #DAA520;
            transform: scale(1.05);
        }
        
        .search-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.4s ease-out, height 0.4s ease-out;
        }
        
        .search-btn:active::after {
            width: 200%;
            height: 200%;
        }
        
        /* 统计数字动画 */
        .stat-number {
            animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            background: linear-gradient(135deg, #8B4513, #B8860B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        @keyframes numberPop {
            0% { opacity: 0; transform: scale(0.5); }
            50% { transform: scale(1.2); }
            100% { opacity: 1; transform: scale(1); }
        }
        
        /* 统计卡片悬浮 */
        .stat-card {
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 25px rgba(139, 69, 19, 0.15);
        }
        
        /* 白居易介绍增强 */
        .baijuyi-intro {
            transition: all 0.3s ease;
        }
        
        .baijuyi-intro:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(139, 69, 19, 0.1);
        }
        
        /* 导航链接动画 */
        .nav-link {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #DAA520, #FFD700);
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        .nav-link:hover {
            color: #DAA520;
            transform: translateY(-2px);
        }
        
        /* 返回顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 120px;
            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,
        .back-to-top.visible {
            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);
        }
        
        /* 诗句引用动画 */
        .poem-quote {
            animation: quoteSlideIn 0.8s ease-out;
            transition: all 0.3s ease;
        }
        
        @keyframes quoteSlideIn {
            0% { opacity: 0; transform: translateX(-30px); }
            100% { opacity: 1; transform: translateX(0); }
        }
        
        .poem-quote:hover {
            transform: translateX(10px);
            border-left: 4px solid #DAA520;
        }
        
        /* 花卉图标浮动 */
        .flower-icon {
            animation: iconFloat 3s ease-in-out infinite;
        }
        
        @keyframes iconFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

/* 原 <style> 块 2 */
.tang-bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      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 cubic-bezier(0.4, 0, 0.2, 1);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 215, 0, 0.3);
      position: relative;
      overflow: hidden;
      font-family: "SimSun", "STSong", serif;
    }

    .nav-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }

    .nav-item:hover::before {
      left: 100%;
    }

    .nav-item:hover {
      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;
      animation: glow 2s infinite;
    }

    .nav-item.special-link:hover {
      background: linear-gradient(135deg, #FFD700, #FFA500);
      animation: none;
    }

    @keyframes glow {
      0%, 100% { box-shadow: 0 0 5px #FFD700; }
      50% { box-shadow: 0 0 20px #FFD700, 0 0 30px #FFA500; }
    }

    .nav-icon {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-text {
      font-size: 11px;
      font-weight: 500;
      white-space: nowrap;
    }

    body {
      padding-bottom: 90px;
    }

/* 移动端：12项超出屏宽时横向滑动而非两端溢出被裁 */
@media (max-width: 768px) {
    .bottom-nav-container {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bottom-nav-container::-webkit-scrollbar {
        display: none;
    }
    .tang-bottom-nav .nav-item {
        flex-shrink: 0;
    }
}

/* 原内联 style 属性（已转为 class） */
.ih-g9gs0a {
    margin-bottom: 0;
}

.ih-s8g6wb {
    text-decoration: none;
    color: inherit;
}

.ih-1y9716f {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.ih-cttmqt {
    margin: 5px 0;
}

.ih-1swgkdw {
    color: #1a73e8;
    text-decoration: none;
}

/* ======== 花卉知识卡片样式（2026-07-23 新增） ======== */
/* 资料来源：《中国植物志》/ Flora of China / 《本草纲目》/《群芳谱》 */

.flower-knowledge-card {
    margin: 20px 0 25px;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.95), rgba(245, 230, 200, 0.55));
    border-radius: 14px;
    border-left: 5px solid #8B4513;
    box-shadow: 0 4px 18px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.flower-knowledge-card:hover {
    box-shadow: 0 6px 22px rgba(139, 69, 19, 0.18);
}

.knowledge-card-title {
    color: #8B4513;
    font-size: 17px;
    font-family: "SimSun", "STSong", serif;
    margin: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    position: relative;
}

.knowledge-card-title:hover {
    background: rgba(218, 165, 32, 0.1);
}

.knowledge-card-title i {
    color: #DAA520;
    font-size: 16px;
}

.knowledge-card-title .toggle-icon {
    margin-left: auto;
    color: #A0522D;
    font-size: 14px;
    transition: transform 0.3s;
}

.flower-knowledge-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.knowledge-source {
    font-size: 12px;
    color: #A0522D;
    margin: 0;
    padding: 0 20px 10px;
    font-style: italic;
    opacity: 0.85;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 20px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.flower-knowledge-card.expanded .knowledge-grid {
    max-height: 2000px;
}

/* 默认折叠时隐藏source和grid */
.flower-knowledge-card:not(.expanded) .knowledge-source,
.flower-knowledge-card:not(.expanded) .knowledge-grid {
    display: none;
}

.knowledge-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    align-items: start;
    transition: background 0.2s;
}

.knowledge-row:hover {
    background: rgba(255, 250, 240, 0.9);
}

.knowledge-label {
    font-weight: bold;
    color: #8B4513;
    font-size: 14px;
    font-family: "SimSun", serif;
    white-space: nowrap;
}

.knowledge-label::after {
    content: "：";
}

.knowledge-value {
    color: #4a3728;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-all;
}

/* 响应式 */
@media (max-width: 768px) {
    .flower-knowledge-card {
        padding: 16px 14px;
        margin: 15px 0 20px;
    }

    .knowledge-card-title {
        font-size: 17px;
    }

    .knowledge-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 10px;
    }

    .knowledge-label::after {
        content: "";
    }

    .knowledge-label {
        font-size: 13px;
        color: #A0522D;
    }

    .knowledge-label::before {
        content: "◆ ";
        color: #DAA520;
        font-size: 10px;
    }

    .knowledge-value {
        font-size: 13px;
    }
}

/* ======== 花卉欣赏展示区样式（2026-07-23 新增） ======== */
.flower-showcase {
    position: relative;
    margin: 18px 0 22px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(139, 69, 19, 0.18);
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.9), rgba(245, 230, 200, 0.6));
    transition: all 0.4s ease;
}

.flower-showcase:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 69, 19, 0.28);
    border-color: rgba(218, 165, 32, 0.6);
}

.flower-showcase-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flower-showcase:hover .flower-showcase-img {
    transform: scale(1.03);
}

.flower-showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.88), rgba(139, 69, 19, 0.5) 60%, transparent);
    color: #FFD700;
    font-family: "SimSun", "STSong", serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .flower-showcase {
        margin: 14px 0 18px;
        border-radius: 12px;
    }

    .flower-showcase-img {
        max-height: 220px;
    }

    .flower-showcase-caption {
        font-size: 15px;
        padding: 10px 14px;
        letter-spacing: 1px;
    }
}

/* ======== 花卉图集（gallery）样式（2026-07-23 新增） ======== */
.flower-gallery {
    margin: 18px 0 22px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.9), rgba(245, 230, 200, 0.6));
    box-shadow: 0 6px 24px rgba(139, 69, 19, 0.18);
    border: 3px solid transparent;
    transition: all 0.4s ease;
}

.flower-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 69, 19, 0.28);
    border-color: rgba(218, 165, 32, 0.6);
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: #faf3e0;
}

.gallery-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-main-img[style*="display:block"] {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.88), rgba(139, 69, 19, 0.5) 60%, transparent);
    color: #FFD700;
    font-family: "SimSun", "STSong", serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 32px;
    font-family: "SimSun", serif;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s, transform 0.25s;
    border-radius: 4px;
    line-height: 1;
    z-index: 5;
}

.gallery-nav:hover {
    background: rgba(139, 69, 19, 0.8);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #FFD700;
    font-family: "SimSun", serif;
    font-size: 14px;
    border-radius: 14px;
    z-index: 5;
    letter-spacing: 1px;
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(139, 69, 19, 0.08);
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.25s ease;
}

.gallery-thumb:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #DAA520;
    box-shadow: 0 3px 12px rgba(218, 165, 32, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .flower-gallery {
        margin: 14px 0 18px;
        border-radius: 12px;
    }

    .gallery-main {
        height: 220px;
    }

    .gallery-caption {
        font-size: 15px;
        padding: 10px 14px;
        letter-spacing: 1px;
    }

    .gallery-nav {
        width: 32px;
        height: 42px;
        font-size: 24px;
    }

    .gallery-thumb {
        width: 64px;
        height: 40px;
    }

    .gallery-thumbs {
        padding: 8px;
        gap: 4px;
    }
}

/* ============================================================
 * m6 增强：速览条 / 应用场景 / 花信风 / 诗人行迹弹窗 / 图片致谢
 * 唐风色系：赭石 #8B4513 · 金粉 #DAA520 · 宣纸 #f5e6c8
 * ============================================================ */

/* ---- 花卉速览条（仿 RHS 图标速览） ---- */
.flower-quickview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px auto 0;
    max-width: 980px;
    justify-content: center;
}
.fv-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff8e7, #f5e6c8);
    border: 1px solid #d9c08a;
    border-radius: 24px;
    padding: 7px 16px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
}
.fv-ico { font-size: 15px; }
.fv-lbl { font-size: 12px; color: #8b7355; letter-spacing: 1px; }
.fv-val { font-size: 13px; color: #4a3520; font-weight: 600; }
.fv-huaxin {
    border-color: #DAA520;
    background: linear-gradient(135deg, #fdf3d0, #f7e3ac);
}
.fv-huaxin .fv-val { color: #8B4513; }

/* ---- 应用场景双轨 ---- */
.flower-scenes {
    max-width: 980px;
    margin: 12px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fs-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.fs-tag {
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #8B4513, #a0522d);
    border-radius: 4px;
    padding: 3px 10px;
    letter-spacing: 2px;
    flex-shrink: 0;
}
.fs-tag-poem { background: linear-gradient(135deg, #1E5F8E, #2e7ab0); }
.fs-chip {
    font-size: 12px;
    color: #6b4a2a;
    background: #fff8e7;
    border: 1px dashed #c8b896;
    border-radius: 14px;
    padding: 3px 12px;
}
.fs-chip-poem { color: #1E5F8E; border-color: #a8c4d8; background: #f2f8fc; }

/* ---- m7 经典赏花地 ---- */
.flower-spots {
    max-width: 980px;
    margin: 8px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.fs-tag-spot { background: linear-gradient(135deg, #7a5c2e, #9c7a3c); }
.fs-chip-spot {
    color: #7a5c2e;
    border: 1px solid #d9c08a;
    background: linear-gradient(135deg, #fdf6e0, #f7ecc8);
    border-style: solid;
}

/* ---- m7 弹窗兜底：咏花诗词列表 ---- */
.ptm-poems-head {
    font-size: 13px;
    color: #8b7355;
    letter-spacing: 1px;
    margin: 4px 0 10px;
    text-align: center;
}
.ptm-poems {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}
.ptm-poem-item {
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: #fffbf0;
    border: 1px solid #e8d9b8;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ptm-poem-item:hover {
    border-color: #DAA520;
    background: #fff6dd;
    transform: translateX(3px);
}
.ptm-poem-flower {
    flex-shrink: 0;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #8B4513, #a0522d);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 1px;
}
.ptm-poem-title { font-size: 13px; color: #4a3520; font-weight: 700; flex-shrink: 0; }
.ptm-poem-line {
    font-size: 12px;
    color: #8b7355;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- m7 咏花录：诗人→花 反向互通 ---- */
.ptm-flowers {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e0d0a8;
    text-align: center;
}
.ptm-flowers-tag { font-size: 12px; color: #8b7355; letter-spacing: 1px; }
.ptm-flowers-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.ptm-flower-chip {
    font-family: inherit;
    font-size: 13px;
    color: #1E5F8E;
    background: #f2f8fc;
    border: 1px solid #a8c4d8;
    border-radius: 18px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.ptm-flower-chip em {
    font-style: normal;
    font-size: 11px;
    color: #fff;
    background: #1E5F8E;
    border-radius: 8px;
    padding: 1px 6px;
    margin-left: 5px;
}
.ptm-flower-chip:hover {
    background: linear-gradient(135deg, #1E5F8E, #2e7ab0);
    color: #eaf4fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 95, 142, 0.3);
}
.ptm-flower-chip:hover em { background: rgba(255, 255, 255, 0.25); }

/* ---- 赏花行迹诗人 chips ---- */
.flower-poets {
    max-width: 980px;
    margin: 14px auto 0;
    text-align: center;
}
.fp-tag { font-size: 13px; color: #8b7355; letter-spacing: 1px; }
.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.fp-chip {
    font-family: inherit;
    font-size: 13px;
    color: #8B4513;
    background: #fff8e7;
    border: 1px solid #DAA520;
    border-radius: 18px;
    padding: 5px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.fp-chip:hover {
    background: linear-gradient(135deg, #8B4513, #a0522d);
    color: #f5e6c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

/* ---- 诗人行迹弹窗 ---- */
.poet-trace-modal { display: none; position: fixed; inset: 0; z-index: 1200; }
.poet-trace-modal.show { display: block; }
.ptm-mask {
    position: absolute; inset: 0;
    background: rgba(20, 15, 8, 0.55);
    backdrop-filter: blur(3px);
}
.ptm-card {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 560px;
    max-height: 82vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #fdf6e3, #f5e6c8);
    border: 3px solid #DAA520;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.45);
    animation: ptmIn 0.3s ease-out;
}
@keyframes ptmIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.ptm-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none;
    font-size: 26px; color: #8b7355; cursor: pointer;
    line-height: 1;
}
.ptm-close:hover { color: #8B4513; }
.ptm-name {
    font-size: 22px;
    color: #8B4513;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.ptm-bio {
    font-size: 13px;
    color: #6b5b3b;
    line-height: 1.8;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ptm-timeline {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 12px;
}
.ptm-point {
    flex: 0 0 118px;
    background: #fff8e7;
    border: 1px solid #d9c08a;
    border-top: 3px solid #DAA520;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}
.ptm-year { font-size: 12px; color: #8b7355; }
.ptm-place { font-size: 14px; color: #4a3520; font-weight: 700; margin: 3px 0; }
.ptm-poem { font-size: 11px; color: #1E5F8E; }
.ptm-empty { text-align: center; color: #8b7355; padding: 18px 0; font-size: 14px; }
.ptm-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.ptm-btn {
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    transition: all 0.2s;
}
.ptm-primary {
    background: linear-gradient(135deg, #8B4513, #a0522d);
    color: #fff;
}
.ptm-primary:hover { background: linear-gradient(135deg, #a0522d, #c68642); }
.ptm-ghost {
    border: 1px solid #c8b896;
    color: #6b5b3b;
    background: transparent;
}
.ptm-ghost:hover { background: #fff8e7; border-color: #DAA520; }

/* ---- 自动注入的行迹按钮 ---- */
.trace-btn-auto { margin-top: 10px; }

/* ---- 图片致谢 ---- */
.flower-credits {
    max-width: 980px;
    margin: 36px auto 20px;
    background: #fff8e7;
    border: 1px solid #d9c08a;
    border-radius: 12px;
    padding: 18px 22px;
}
.fc-title { font-size: 15px; color: #8B4513; font-weight: 700; letter-spacing: 2px; }
.fc-desc { font-size: 12px; color: #8b7355; margin: 6px 0 10px; line-height: 1.7; }
.fc-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fc-item { font-size: 12px; color: #6b4a2a; text-decoration: none; }
.fc-item:hover { color: #DAA520; text-decoration: underline; }

/* ---- m8 赏花月令 ---- */
.bloom-calendar {
    max-width: 980px;
    margin: 0 auto 24px;
    background: rgba(255, 251, 240, 0.9);
    border: 1px solid #e8d9b8;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
}
.bc-head {
    font-size: 16px;
    font-weight: 700;
    color: #8B4513;
    letter-spacing: 2px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.bc-sub { font-size: 12px; color: #8b7355; font-weight: 400; letter-spacing: 0; }
.bc-months { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bc-month {
    font-family: inherit;
    font-size: 12px;
    color: #6b4a2a;
    background: #fff;
    border: 1px solid #d9c08a;
    border-radius: 14px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.bc-month:hover { border-color: #DAA520; transform: translateY(-1px); }
.bc-month.active {
    background: linear-gradient(135deg, #8B4513, #a0522d);
    color: #f5e6c8;
    border-color: #8B4513;
}
.bc-month.bc-now:not(.active) {
    border-color: #DAA520;
    color: #8B4513;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #DAA520;
}
.bc-flowers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 34px; }
.bc-flower {
    font-family: inherit;
    font-size: 13px;
    color: #1E5F8E;
    background: #f2f8fc;
    border: 1px solid #a8c4d8;
    border-radius: 16px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.bc-flower em {
    font-style: normal;
    font-size: 10px;
    color: #fff;
    background: #1E5F8E;
    border-radius: 7px;
    padding: 0 5px;
    margin-left: 5px;
}
.bc-flower:hover {
    background: linear-gradient(135deg, #1E5F8E, #2e7ab0);
    color: #eaf4fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 95, 142, 0.28);
}
.bc-flower:hover em { background: rgba(255, 255, 255, 0.25); }
.bc-empty { font-size: 12px; color: #8b7355; }

/* ---- 移动端适配 ---- */
@media (max-width: 600px) {
    .flower-quickview { gap: 6px; }
    .fv-item { padding: 5px 10px; }
    .fv-val { font-size: 12px; }
    .ptm-card { width: 94%; padding: 18px 16px; }
    .ptm-point { flex: 0 0 104px; }
    /* m7 组件移动端适配 */
    .ptm-poem-item { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
    .ptm-poem-line { flex-basis: 100%; white-space: normal; }
    .ptm-poems { max-height: 220px; }
    .ptm-flowers-chips { gap: 6px; }
    .ptm-flower-chip { font-size: 12px; padding: 4px 11px; }
    .flower-spots { gap: 6px; }
    .fs-chip-spot { font-size: 11px; padding: 2px 9px; }
    /* m8 月令移动端适配 */
    .bloom-calendar { padding: 12px; margin-bottom: 16px; }
    .bc-head { font-size: 14px; }
    .bc-sub { flex-basis: 100%; }
    .bc-months { gap: 5px; }
    .bc-month { font-size: 11px; padding: 3px 9px; }
    .bc-flowers { gap: 6px; }
    .bc-flower { font-size: 12px; padding: 4px 10px; }
}


/* 真实花卉图懒加载替换后的淡入（m13） */
@keyframes realImgFadeIn {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

img.real-image-loaded {
    animation: realImgFadeIn 0.5s ease;
}

/* m14: 速览/场景/赏花地 chips 权威链接化 */
a.fv-item, a.fs-chip {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

a.fv-item:hover, a.fv-item:focus-visible {
    border-color: #8B4513;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.22);
    transform: translateY(-2px);
}

a.fv-item:hover .fv-val, a.fv-item:focus-visible .fv-val {
    color: #8B4513;
}

a.fs-chip:hover, a.fs-chip:focus-visible {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
    border-style: solid;
}

a.fs-chip-poem:hover, a.fs-chip-poem:focus-visible {
    background: #1E5F8E;
    border-color: #1E5F8E;
    color: #fff;
}

a.fs-chip-spot:hover, a.fs-chip-spot:focus-visible {
    background: linear-gradient(135deg, #7a5c2e, #9c7a3c);
    color: #fff;
}

/* 知识卡资料来源链接 */
.ks-link {
    color: #8B4513;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ks-link:hover {
    color: #DAA520;
    text-decoration-style: solid;
}
