/* 公共样式 */
/* ========== 文章详情页样式 ========== */
.article-header { padding: 2rem 0 1rem; border-bottom: 1px solid #e9ecef; margin-bottom: 1.5rem; }
.article-title { font-size: 2.5rem; font-weight: bold; color: #333; margin-bottom: 1rem; line-height: 1.3; }
.article-meta { display: flex; flex-direction: column; gap: 0.75rem; color: #666; font-size: 0.95rem; }
.article-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-meta-left { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.article-meta-item { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.article-meta-item i { color: #FFA500; flex-shrink: 0; }
.article-meta-item > span { flex-shrink: 0; }
.article-meta-item a { color: #FFA500; text-decoration: none; transition: color 0.3s ease; }
.article-meta-item a:hover { color: #FF8C00; text-decoration: underline; }
.article-meta-tags { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.article-tag { background-color: #FFA500; color: #fff !important; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; text-decoration: none !important; display: inline-block; transition: all 0.3s ease; line-height: 1.4; }
.article-tag:hover { background-color: #FF8C00; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3); color: #fff !important; text-decoration: none !important; }
.article-meta-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.btn-action { border: 1px solid #dee2e6; background: #fff; color: #666; transition: all 0.3s ease; padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.btn-action:hover { background: #f8f9fa; border-color: #FFA500; color: #FFA500; }
.btn-action.btn-favorite { background: #fff3e0; border-color: #FFA500; color: #FF8C00; }
.btn-action.btn-favorite:hover { background: #ffe0b2; border-color: #FF8C00; color: #FF8C00; }
.btn-action:disabled { opacity: 0.6; cursor: not-allowed; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #444; margin-bottom: 2rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { margin-top: 2rem; margin-bottom: 1rem; font-weight: bold; color: #333; }
.article-content h2 { font-size: 1.8rem; border-bottom: 2px solid #FFA500; padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content ul, .article-content ol { margin: 1rem 0; padding-left: 2rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-ad { margin: 3rem 0; padding: 2rem 0; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e9ecef; }
.article-tags .tag { background-color: #FFA500; color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.article-tags .tag:hover { background-color: #FF8C00; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); color: white; text-decoration: none; }
.back-link { margin-top: 2rem; margin-bottom: 3rem; }
.back-link a { color: #FFA500; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.3s ease; }
.back-link a:hover { color: #FF8C00; }
/* ========== 文章卡片样式 ========== */
.article-card { transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-radius: 8px; overflow: hidden; background: #fff; }
.article-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(255, 165, 0, 0.15); }
.article-thumbnail-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 70%; background: #f5f5f5; }
.article-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-image { transform: scale(1.05); }
.article-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); padding: 20px 15px 15px; opacity: 1; transition: opacity 0.3s ease; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { background-color: rgba(255, 165, 0, 0.95); color: white; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0,0,0,0.2); text-decoration: none; display: inline-block; transition: all 0.3s ease; cursor: pointer; }
.tag:hover { background-color: rgba(255, 165, 0, 1); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); color: white; text-decoration: none; }
.tag.category-tag { background-color: rgba(255, 255, 255, 0.95); color: #FFA500; font-weight: 600; }
.tag.category-tag:hover { background-color: rgba(255, 255, 255, 1); color: #FF8C00; text-decoration: none; }
.article-card .article-title { font-size: 1.1rem; font-weight: 600; color: #333; margin-bottom: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: 3.08rem; max-height: 3.08rem; }
.article-meta-info { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid #f0f0f0; }
.article-date { color: #999; font-size: 0.85rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.article-date i { color: #FFA500; font-size: 0.9rem; }
.article-read-more { color: #FFA500; font-size: 1.2rem; transition: transform 0.3s ease; display: flex; align-items: center; }
.article-card:hover .article-read-more { transform: translateX(5px); }
.article-link { display: block; text-decoration: none; color: inherit; }
.article-link:hover { text-decoration: none; color: inherit; }
.favorite-badge { position: absolute; top: 10px; right: 10px; background: rgba(255, 165, 0, 0.95); color: #fff; padding: 0.375rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 500; z-index: 10; backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); display: flex; align-items: center; }
/* 文章卡片响应式优化 */
@media (max-width: 768px) { .article-thumbnail-wrapper { padding-top: 65%; } .article-card .article-title { font-size: 1rem; height: 2.8rem; max-height: 2.8rem; } }
@media (min-width: 992px) { .article-thumbnail-wrapper { padding-top: 75%; } }
