/* AI讲故事页面专用样式 - 现代化浅色系列 */ .ai-storytelling-container { min-height: 100vh; background: linear-gradient(135deg, #fdfdfd 0%, #f8fafc 25%, #e2e8f0 75%, #cbd5e1 100%); padding: 60px 0 120px; font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; position: relative; overflow-x: hidden; } .ai-storytelling-container::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 80%, rgba(147, 197, 253, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(251, 207, 232, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(254, 240, 138, 0.1) 0%, transparent 50%); pointer-events: none; z-index: 0; } .story-header { text-align: center; margin-bottom: 60px; color: #1e293b; position: relative; z-index: 1; padding: 40px 20px; } .header-content { max-width: 800px; margin: 0 auto; } .story-header h1 { font-size: 3.2rem; margin-bottom: 24px; text-shadow: 0 4px 12px rgba(30, 64, 175, 0.15); color: #1e40af; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; } .header-icon { font-size: 3.5rem; margin-right: 15px; filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3)); } .header-text { background: linear-gradient(135deg, #3b82f6, #1d4ed8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; } .header-logo { height: 48px; vertical-align: middle; margin-left: 20px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)); border-radius: 12px; } .header-subtitle { font-size: 1.3rem; color: #64748b; opacity: 1; max-width: 700px; margin: 0 auto 30px; font-weight: 400; line-height: 1.6; } .header-features { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; } .search-container { position: relative; display: flex; align-items: center; } .search-input { width: 320px; padding: 16px 50px 16px 20px; border: 2px solid rgba(59, 130, 246, 0.2); border-radius: 50px; font-size: 16px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; color: #334155; } .search-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15); background: rgba(255, 255, 255, 0.95); } .search-input::placeholder { color: #94a3b8; } .search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, #3b82f6, #1d4ed8); border: none; width: 36px; height: 36px; border-radius: 50%; color: white; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .search-btn:hover { transform: translateY(-50%) scale(1.1); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); } .search-icon { width: 18px; height: 18px; filter: brightness(0) invert(1); transition: transform 0.3s ease; } .search-btn:hover .search-icon { transform: scale(1.1); } .stats-info { display: flex; gap: 30px; align-items: center; } .stat-item { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 16px; font-weight: 500; } .stat-item i { color: #3b82f6; font-size: 18px; } .stat-icon { width: 18px; height: 18px; filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1352%) hue-rotate(213deg) brightness(97%) contrast(101%); } /* 评分图标特殊大小调整 */ .stat-item img[src*="icon-pinfen.png"] { width: 20px; height: 20px; } /* 数学图标特殊大小调整 */ .filter-btn img[src*="icon-xyz.png"] { width: 18px; height: 18px; } /* 梦想图标特殊大小调整 */ .filter-btn img[src*="icon-mengxiang1.png"] { width: 18px; height: 18px; } /* 成长图标特殊大小调整 */ .filter-btn img[src*="icon-chengzhang2.png"] { width: 18px; height: 18px; } /* 经典图标特殊大小调整 */ .filter-btn img[src*="icon-经典.png"] { width: 18px; height: 18px; } .story-library { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; } .library-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; padding: 30px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(15px); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08); } .library-filter { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; } .filter-btn { background: rgba(248, 250, 252, 0.8); border: 2px solid rgba(59, 130, 246, 0.15); color: #475569; padding: 12px 24px; border-radius: 50px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 15px; font-weight: 500; backdrop-filter: blur(10px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 8px; position: relative; overflow: hidden; } .filter-btn::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; } .filter-btn:hover::before { left: 100%; } .filter-btn:hover { background: rgba(59, 130, 246, 0.08); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #1e40af; } .filter-btn.active { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; border-color: #3b82f6; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); } .filter-btn i { font-size: 14px; transition: transform 0.3s ease; } .filter-btn:hover i { transform: scale(1.1); } .filter-icon { width: 16px; height: 16px; transition: transform 0.3s ease; } .filter-btn:hover .filter-icon { transform: scale(1.1); } .sort-controls { display: flex; align-items: center; gap: 12px; background: rgba(248, 250, 252, 0.8); padding: 10px 16px; border-radius: 50px; backdrop-filter: blur(10px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .sort-controls label { color: #475569; font-weight: 500; font-size: 14px; } .sort-select { background: transparent; border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 25px; padding: 8px 16px; color: #334155; font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .sort-select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-bottom: 60px; padding: 0 10px; } .loading-indicator { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; color: #64748b; } .loading-indicator .loading-spinner { margin-bottom: 20px; width: 40px; height: 40px; border: 3px solid rgba(59, 130, 246, 0.2); border-top-color: #3b82f6; animation: spin 1.2s linear infinite; } .loading-text { font-size: 18px; font-weight: 500; } .story-card { background: rgba(255, 255, 255, 0.95); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08); border: 1px solid rgba(255, 255, 255, 0.8); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; backdrop-filter: blur(15px); position: relative; } .story-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(147, 197, 253, 0.02)); opacity: 0; transition: opacity 0.3s ease; z-index: 1; } .story-card:hover::before { opacity: 1; } .story-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.2); } .story-cover { width: 100%; height: 220px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #bae6fd 70%, #e2e8f0 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; z-index: 2; } .story-cover::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%); } .story-cover img { width: 85%; height: 85%; object-fit: contain; border-radius: 16px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1)); transition: transform 0.3s ease; } .story-card:hover .story-cover img { transform: scale(1.05); } .story-info { padding: 28px; position: relative; z-index: 2; } .story-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #1e293b; line-height: 1.3; } .story-description { color: #64748b; margin-bottom: 20px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; } .story-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; color: #94a3b8; padding: 12px 16px; background: rgba(248, 250, 252, 0.6); border-radius: 12px; backdrop-filter: blur(5px); } .story-category { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #3b82f6; } .story-category::before { content: ''; width: 8px; height: 8px; background: #3b82f6; border-radius: 50%; } .story-difficulty { display: flex; align-items: center; gap: 4px; } .difficulty-star { color: #fbbf24; font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .story-actions { display: flex; gap: 10px; } .btn-story { flex: 1; padding: 12px 20px; border: none; border-radius: 25px; font-weight: bold; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 14px; position: relative; overflow: hidden; backdrop-filter: blur(10px); } .btn-story::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.6s ease; } .btn-story:hover::before { left: 100%; } .btn-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; border: none; box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); } .btn-primary:hover { background: linear-gradient(135deg, #2563eb, #1e40af); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); border-color: rgba(255, 255, 255, 0.3); } .btn-secondary { background: rgba(255, 255, 255, 0.8); color: #3b82f6; border: 2px solid rgba(59, 130, 246, 0.3); backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .btn-secondary:hover { background: #3b82f6; color: white; transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3); border-color: #3b82f6; } /* 故事阅读界面样式 */ .story-reader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(15px); } .story-reader.active { display: flex; } .reader-container { background: white; border-radius: 24px; width: 92%; max-width: 850px; max-height: 92%; overflow: hidden; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3); animation: slideInUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); border: 1px solid rgba(255, 255, 255, 0.2); } @keyframes slideInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } } .reader-header { background: linear-gradient(135deg, #0284c7, #0891b2); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; } .reader-title { font-size: 1.3rem; font-weight: bold; } .reader-controls { display: flex; gap: 10px; } .reader-btn { background: rgba(255, 255, 255, 0.2); border: none; color: white; padding: 8px 15px; border-radius: 15px; cursor: pointer; transition: all 0.3s ease; } .reader-btn:hover { background: rgba(255, 255, 255, 0.3); } .story-content { padding: 30px; max-height: 70vh; overflow-y: auto; } .story-section { margin-bottom: 30px; text-align: center; } .section-image { width: 100%; max-width: 400px; height: 200px; object-fit: cover; border-radius: 15px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .section-text { font-size: 1.1rem; line-height: 1.8; color: #333; margin-bottom: 20px; } .control-buttons { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; padding: 24px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9)); border-radius: 20px; backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); } .main-controls { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; } .secondary-controls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(226, 232, 240, 0.6); } .btn-large { padding: 15px 30px; font-size: 16px; } .btn-voice { background: linear-gradient(135deg, #ff6b6b, #ff5252); color: white; border: none; border-radius: 25px; padding: 15px 25px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 16px; box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); } .btn-voice:hover { background: linear-gradient(135deg, #ff5252, #e53e3e); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); border-color: rgba(255, 255, 255, 0.3); } .btn-voice.speaking { animation: pulse 1.5s infinite; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } /* 语音控制切换按钮 */ .voice-toggle-btn { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; border: none; border-radius: 50%; width: 60px; height: 60px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 20px; z-index: 1000; } .voice-toggle-btn:hover { background: linear-gradient(135deg, #2563eb, #1e40af); transform: translateY(-3px) scale(1.1); box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4); border-color: rgba(255, 255, 255, 0.3); } /* 语音切换图标样式 */ .voice-toggle-icon { width: 24px; height: 24px; filter: brightness(0) invert(1); transition: transform 0.3s ease; } .voice-toggle-btn:hover .voice-toggle-icon { transform: scale(1.1); } /* 语音控制区域 */ .voice-controls { position: fixed; bottom: 30px; right: 30px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-radius: 20px; box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1001; opacity: 0; transform: translateY(20px); } .voice-controls:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); } .voice-info { padding: 12px 20px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05)); border-bottom: 1px solid rgba(248, 250, 252, 0.8); } .voice-status { color: #3b82f6; font-size: 14px; font-weight: 500; } .voice-buttons { display: flex; align-items: center; padding: 16px 20px; gap: 12px; } .voice-btn { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; border: none; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3); position: relative; overflow: hidden; } .voice-btn::before { 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: all 0.3s ease; } .voice-btn:active::before { width: 100%; height: 100%; } .voice-btn:hover { background: linear-gradient(135deg, #2563eb, #1e40af); transform: scale(1.1); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); } .voice-btn:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; } /* 语音控制关闭按钮 */ .voice-close-btn { position: absolute; top: 10px; right: 10px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; transition: all 0.3s ease; font-size: 12px; display: flex; align-items: center; justify-content: center; } .voice-close-btn:hover { background: #ef4444; color: white; transform: scale(1.1); } /* 语音关闭图标样式 */ .voice-close-icon { width: 14px; height: 14px; filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1352%) hue-rotate(213deg) brightness(97%) contrast(101%); transition: transform 0.3s ease; } .voice-close-btn:hover .voice-close-icon { filter: brightness(0) invert(1); transform: scale(1.1); } /* 语音控制面板显示状态 */ .voice-controls.show { opacity: 1; transform: translateY(0); } /* 语音控制面板隐藏状态 */ .voice-controls.hide { opacity: 0; transform: translateY(20px); } /* 快速导航 */ .quick-nav { position: fixed; bottom: 30px; left: 30px; display: flex; flex-direction: column; gap: 12px; z-index: 100; } .nav-link { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-radius: 50px; padding: 16px 20px; color: #475569; text-decoration: none; display: flex; align-items: center; gap: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); border: 1px solid rgba(255, 255, 255, 0.3); font-weight: 500; font-size: 14px; } .nav-link:hover { background: rgba(59, 130, 246, 0.1); color: #3b82f6; transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15); } .nav-link i { font-size: 16px; } /* 导航图标样式 */ .nav-icon { width: 16px; height: 16px; filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1352%) hue-rotate(213deg) brightness(97%) contrast(101%); } /* 元数据图标样式 */ .meta-icon { width: 14px; height: 14px; filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1352%) hue-rotate(213deg) brightness(97%) contrast(101%); } /* 统计卡片图标样式 */ .stat-icon-img { width: 24px; height: 24px; filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1352%) hue-rotate(213deg) brightness(97%) contrast(101%); } /* 按钮图标样式 */ .btn-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); margin-right: 6px; transition: transform 0.3s ease; } .btn-story:hover .btn-icon { transform: scale(1.1); } /* 辅助按钮样式 */ .btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); } .btn-warning:hover { background: linear-gradient(135deg, #d97706, #b45309); transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); } .btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); } .btn-success:hover { background: linear-gradient(135deg, #059669, #047857); transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); } /* 关闭图标样式 */ .close-icon { width: 18px; height: 18px; filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1352%) hue-rotate(213deg) brightness(97%) contrast(101%); } /* 阅读器图标样式 */ .reader-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); } /* 语速控制面板 */ .speed-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1001; display: none; align-items: center; justify-content: center; backdrop-filter: blur(10px); } .speed-panel.active { display: flex; } .speed-content { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); min-width: 320px; text-align: center; animation: slideInUp 0.3s ease; } .speed-content h3 { color: #1e293b; margin-bottom: 30px; font-size: 20px; font-weight: 600; } .speed-slider { margin-bottom: 30px; } .speed-slider label { display: block; color: #64748b; margin-bottom: 15px; font-weight: 500; } .speed-slider input[type="range"] { width: 100%; height: 6px; background: linear-gradient(to right, #3b82f6, #1d4ed8); border-radius: 3px; outline: none; margin-bottom: 10px; } .speed-slider input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: #3b82f6; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } #speedValue { color: #3b82f6; font-weight: 600; font-size: 16px; } .speed-presets { display: flex; gap: 12px; justify-content: center; margin-bottom: 30px; } .speed-preset { padding: 10px 20px; border: 2px solid #e2e8f0; background: transparent; border-radius: 25px; color: #64748b; cursor: pointer; transition: all 0.3s ease; font-size: 14px; font-weight: 500; } .speed-preset:hover, .speed-preset.active { background: #3b82f6; color: white; border-color: #3b82f6; transform: scale(1.05); } .speed-close { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; border: none; border-radius: 25px; padding: 12px 24px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .speed-close:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); } /* 新增样式 */ .reader-title-info { display: flex; flex-direction: column; gap: 12px; } .reader-progress { display: flex; align-items: center; gap: 12px; } .progress-bar { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 2px; transition: width 0.3s ease; } .progress-text { color: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 500; } .btn-info { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; border-radius: 25px; padding: 15px 25px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 16px; font-weight: 500; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); } .btn-info:hover { background: linear-gradient(135deg, #059669, #047857); transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); border-color: rgba(255, 255, 255, 0.3); } /* 剧情选择系统样式 */ .story-choices { margin: 30px 0; padding: 25px; backdrop-filter: blur(15px); background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.05)); border-radius: 20px; border: 2px solid rgba(59, 130, 246, 0.2); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08); animation: fadeInUp 0.6s ease; } .choices-header { text-align: center; margin-bottom: 25px; } .choices-header h3 { color: #1e40af; font-size: 1.4rem; margin-bottom: 10px; font-weight: 600; text-shadow: 0 2px 8px rgba(30, 64, 175, 0.1); } .choices-header p { color: #64748b; font-size: 1rem; margin: 0; font-weight: 400; } .choices-container { display: grid; gap: 15px; margin-bottom: 20px; } .choice-btn { background: rgba(255, 255, 255, 0.9); border: 2px solid rgba(59, 130, 246, 0.2); border-radius: 16px; padding: 18px 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 16px; font-weight: 500; color: #334155; text-align: left; backdrop-filter: blur(10px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); position: relative; overflow: hidden; } .choice-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent); transition: left 0.6s; } .choice-btn:hover::before { left: 100%; } .choice-btn:hover { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15); color: #1e40af; } .choice-btn.clicked { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; border-color: #3b82f6; transform: scale(1.05); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); } .choice-btn.clicked::after { content: ' ✓'; font-size: 18px; margin-left: 10px; } .choice-feedback { text-align: center; padding: 15px; background: rgba(240, 253, 244, 0.8); border-radius: 12px; border: 1px solid rgba(34, 197, 94, 0.2); backdrop-filter: blur(5px); animation: fadeIn 0.5s ease; } .choice-feedback-text { color: #166534; font-size: 16px; font-weight: 500; margin: 0; } /* 分支剧情内容样式 */ .branching-content { margin: 25px 0; padding: 25px; backdrop-filter: blur(15px); background: linear-gradient(135deg, rgba(251, 207, 232, 0.1), rgba(254, 240, 138, 0.05)); border-radius: 20px; border: 2px solid rgba(251, 207, 232, 0.2); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08); animation: slideInLeft 0.6s ease; } .branch-narrative { font-size: 1.1rem; line-height: 1.8; color: #374151; margin-bottom: 20px; padding: 20px; background: rgba(255, 255, 255, 0.7); border-radius: 12px; backdrop-filter: blur(5px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .btn-continue { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; margin: 0 auto; display: block; min-width: 150px; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); } .btn-continue:hover { background: linear-gradient(135deg, #059669, #047857); transform: scale(1.05); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4); } .btn-continue:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; } /* 动画效果 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } /* 选择状态指示器 */ .choice-count { text-align: center; margin: 20px 0; font-size: 14px; color: #64748b; } .choice-count::before { content: '🎨 '; font-size: 16px; } /* 响应式设计 */ @media (max-width: 768px) { .ai-storytelling-container { padding: 40px 0 80px; } .story-header { margin-bottom: 40px; padding: 20px; } .story-header h1 { font-size: 2.5rem; margin-bottom: 16px; } .header-icon { font-size: 2.8rem; margin-right: 10px; } .header-text { margin-left: 5px; } .header-logo { height: 40px; margin-left: 15px; } .header-subtitle { font-size: 1.1rem; margin: 0 auto 20px; } .header-features { flex-direction: column; gap: 20px; margin-top: 20px; } .search-input { width: 280px; padding: 14px 45px 14px 18px; } .stats-info { gap: 20px; } .library-controls { flex-direction: column; gap: 20px; margin-bottom: 30px; padding: 20px; } .library-filter { justify-content: center; } .story-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 5px; } .filter-btn { padding: 10px 20px; font-size: 14px; gap: 6px; } .story-card .story-info { padding: 24px; } .story-title { font-size: 1.4rem; } .voice-controls { bottom: 20px; right: 20px; } .voice-buttons { padding: 12px 16px; gap: 8px; } .voice-btn { width: 44px; height: 44px; font-size: 14px; } .quick-nav { bottom: 20px; left: 20px; } .nav-link { padding: 12px 16px; font-size: 13px; } .reader-container { width: 95%; height: 95%; max-width: none; } .story-content { padding: 24px 20px; } .control-buttons { flex-direction: column; gap: 15px; margin-top: 20px; padding: 15px; } .main-controls { gap: 12px; } .secondary-controls { gap: 8px; } .btn-large { padding: 12px 20px; font-size: 14px; flex: 1; min-width: 120px; } .speed-content { margin: 20px; padding: 30px; min-width: 280px; } .speed-presets { flex-wrap: wrap; gap: 8px; } .speed-preset { padding: 8px 16px; font-size: 13px; } .story-choices { margin: 20px 0; padding: 20px 15px; } .choices-header h3 { font-size: 1.2rem; margin-bottom: 8px; } .choice-btn { padding: 15px 18px; font-size: 15px; } .branching-content { margin: 20px 0; padding: 20px 15px; } .branch-narrative { font-size: 1rem; padding: 15px; margin-bottom: 15px; } } @media (max-width: 480px) { .story-header h1 { font-size: 2rem; } .header-icon { font-size: 2.2rem; } .header-logo { height: 36px; margin-left: 10px; } .search-input { width: 240px; padding: 12px 40px 12px 16px; font-size: 14px; } .filter-btn { padding: 8px 16px; font-size: 13px; gap: 4px; } .story-cover { height: 180px; } .story-card .story-info { padding: 20px; } .story-title { font-size: 1.3rem; } .story-meta { flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px 12px; } .voice-controls { bottom: 15px; right: 15px; } .voice-buttons { padding: 10px 12px; gap: 6px; } .voice-btn { width: 40px; height: 40px; font-size: 13px; } .quick-nav { bottom: 15px; left: 15px; } .nav-link { padding: 10px 12px; font-size: 12px; gap: 8px; } } /* 加载动画 */ .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(14, 165, 233, 0.3); border-radius: 50%; border-top-color: #0284c7; animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } }