/** * RSS 订阅显示样式 */ .rss-feed-container { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border-radius: 16px; padding: 30px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); animation: fadeIn 0.6s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* RSS 头部 */ .rss-feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid rgba(0, 0, 0, 0.1); } .rss-feed-title { display: flex; align-items: center; gap: 10px; font-size: 1.8rem; font-weight: 700; color: #2c3e50; } .rss-feed-title i { color: #f39c12; } .rss-feed-meta { display: flex; gap: 15px; font-size: 0.9rem; color: #7f8c8d; } /* 文章列表 */ .rss-articles-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 25px; } /* 文章卡片 */ .rss-article { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; animation: slideIn 0.5s ease-out; border-left: 4px solid #3498db; } @keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } } .rss-article:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); } /* 文章头部 */ .article-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.85rem; } .article-category { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 0.75rem; } .article-date { display: flex; align-items: center; gap: 5px; color: #95a5a6; } .article-date i { font-size: 0.8rem; } /* 文章标题 */ .article-title { margin: 12px 0; font-size: 1.4rem; font-weight: 700; line-height: 1.4; } .article-title a { color: #2c3e50; text-decoration: none; transition: color 0.3s ease; } .article-title a:hover { color: #3498db; } /* 文章描述 */ .article-description { color: #576574; line-height: 1.6; margin-bottom: 15px; font-size: 0.95rem; } /* 文章底部 */ .article-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #ecf0f1; } .article-author { display: flex; align-items: center; gap: 5px; color: #7f8c8d; font-size: 0.85rem; } .article-author i { color: #95a5a6; } .read-more-link { display: inline-flex; align-items: center; gap: 5px; color: #3498db; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; } .read-more-link:hover { color: #2980b9; transform: translateX(3px); } /* RSS 底部 */ .rss-feed-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 2px solid rgba(0, 0, 0, 0.1); } .view-all-link { display: inline-flex; align-items: center; gap: 8px; color: #3498db; text-decoration: none; font-weight: 600; transition: all 0.3s ease; } .view-all-link:hover { color: #2980b9; transform: translateX(3px); } .rss-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%); color: white; text-decoration: none; border-radius: 25px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .rss-link:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } /* 加载状态 */ .rss-loading, .rss-error, .rss-empty { text-align: center; padding: 40px 20px; color: #7f8c8d; } .rss-loading i, .rss-error i, .rss-empty i { font-size: 3rem; margin-bottom: 15px; } .rss-loading i { color: #3498db; animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .rss-error i { color: #e74c3c; } .rss-empty i { color: #95a5a6; } .rss-error span, .rss-empty span { display: block; font-size: 1.2rem; margin-bottom: 15px; } .rss-empty p { font-size: 0.9rem; color: #95a5a6; } .retry-btn { padding: 10px 25px; background: #3498db; color: white; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .retry-btn:hover { background: #2980b9; transform: translateY(-2px); } /* RSS 订阅按钮 */ .rss-subscribe-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 25px; background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%); color: white; text-decoration: none; border-radius: 25px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .rss-subscribe-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } /* 响应式设计 */ @media (max-width: 768px) { .rss-feed-container { padding: 20px; } .rss-feed-header { flex-direction: column; align-items: flex-start; gap: 10px; } .rss-feed-title { font-size: 1.5rem; } .rss-feed-meta { flex-direction: column; gap: 5px; } .article-header { flex-direction: column; align-items: flex-start; gap: 8px; } .article-title { font-size: 1.2rem; } .article-footer { flex-direction: column; align-items: flex-start; gap: 10px; } .rss-feed-footer { flex-direction: column; gap: 15px; align-items: flex-start; } .view-all-link, .rss-link { width: 100%; justify-content: center; } } @media (max-width: 480px) { .rss-feed-container { padding: 15px; } .rss-feed-title { font-size: 1.3rem; } .rss-article { padding: 15px; } .article-title { font-size: 1.1rem; } .article-description { font-size: 0.9rem; } } /* 暗色模式适配 */ .dark-mode .rss-feed-container { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); } .dark-mode .rss-article { background: rgba(255, 255, 255, 0.05); border-left-color: #4a90e2; } .dark-mode .article-title a { color: #ecf0f1; } .dark-mode .article-title a:hover { color: #4a90e2; } .dark-mode .article-description { color: #bdc3c7; } .dark-mode .article-date, .dark-mode .article-author { color: #95a5a6; } .dark-mode .rss-feed-title { color: #ecf0f1; } .dark-mode .rss-feed-footer { border-top-color: rgba(255, 255, 255, 0.1); } /* 动画优化 */ @media (prefers-reduced-motion: reduce) { .rss-feed-container, .rss-article { animation: none; } }