/* 社区讨论页面面包屑美化 */
.community-page .breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.community-page .breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: community-shimmer 8s ease-in-out infinite;
}

@keyframes community-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.community-page .breadcrumb-nav {
    position: relative;
    z-index: 10;
}

.community-page .breadcrumb-item {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 500;
}

.community-page .breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.community-page .breadcrumb-item.current {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.community-page .breadcrumb-item i {
    font-size: 14px;
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.community-page .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0 12px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* 响应式设计 */
@media (max-width: 768px) {
    .community-page .breadcrumb {
        padding: 16px 0;
    }
    
    .community-page .breadcrumb-item {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .community-page .breadcrumb-separator {
        margin: 0 8px;
    }
}

/* 导航容器样式 */
.community-page .navigation-container {
    background: white;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.community-page .navigation-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 24px;
}

/* 面包屑部分重新定义 */
.community-page .breadcrumb-section {
    flex-shrink: 0;
}

.community-page .breadcrumb-section .breadcrumb-nav {
    padding: 0;
}

.community-page .breadcrumb-items {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.community-page .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.community-page .breadcrumb-item:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.community-page .breadcrumb-item.current {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.community-page .breadcrumb-separator {
    margin: 0 16px;
    color: #d1d5db;
    font-size: 12px;
}

/* 富文本内容样式 */
.rich-content p {
    text-indent: 2em;
    text-align: justify;
    line-height: 1.8;
    margin: 8px 0;
}

.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4, .rich-content h5, .rich-content h6 {
    text-align: center;
    font-weight: bold;
    margin: 20px 0 15px 0;
}

.rich-content h1 { font-size: 2em; }
.rich-content h2 { font-size: 1.5em; }
.rich-content h3 { font-size: 1.25em; }
.rich-content h4 { font-size: 1.1em; }

.rich-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rich-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 富文本编辑器中的对齐样式 */
.rich-content img[style*="text-align: center"],
.rich-content p[style*="text-align: center"] img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rich-content img[style*="text-align: left"],
.rich-content p[style*="text-align: left"] img {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.rich-content img[style*="text-align: right"],
.rich-content p[style*="text-align: right"] img {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.rich-content blockquote {
    border-left: 4px solid #e5e7eb;
    margin: 16px 0;
    padding-left: 16px;
    color: #6b7280;
}

.rich-content ul, .rich-content ol {
    margin: 8px 0;
    padding-left: 30px;
}

.rich-content li {
    margin: 4px 0;
}

.rich-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.rich-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.rich-content table td, .rich-content table th {
    border: 1px solid #ddd;
    padding: 8px;
}

.rich-content table th {
    background-color: #f2f2f2;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item {
    animation: fadeIn 0.3s ease-out;
}

.like-btn:hover {
    transform: scale(1.1);
}

.reply-btn:hover {
    transform: scale(1.05);
}