.eyou-toc-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin: 25px 0 35px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.eyou-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.eyou-toc-header:hover {
    background: #f0f0f0;
}

.eyou-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.eyou-toc-icon {
    font-size: 18px;
}

.eyou-toc-toggle {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.eyou-toc-toggle.collapsed {
    transform: rotate(-90deg);
}

.eyou-toc-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 20px;
}

.eyou-toc-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.eyou-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eyou-toc-item {
    margin-bottom: 10px;
}

.eyou-toc-item a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
    transition: all 0.2s;
    display: block;
    padding: 4px 0;
    border-radius: 4px;
}

.eyou-toc-item a:hover {
    color: #ff9800;
    padding-left: 8px;
    background: #f8f9fa;
}

.eyou-toc-sub-item {
    margin-left: 20px;
    margin-top: 6px;
}

.eyou-toc-sub-item a {
    color: #718096;
    font-size: 13px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .eyou-toc-container {
        margin: 15px 0 20px;
    }
    
    .eyou-toc-header {
        padding: 14px 16px;
    }
    
    .eyou-toc-title {
        font-size: 15px;
    }
    
    .eyou-toc-content {
        padding: 16px;
    }
    
    .article-wrapper {
        padding: 20px;
    }
}

/* =================================
   文章内容样式（仅供演示）
   ================================= */
.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9800;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 16px;
    text-align: justify;
}

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

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.highlight-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}