/* 折叠容器 - 简洁优雅 */
.fold-container {
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 5px!important;
}

.fold-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d7de;
}

/* 折叠头部 */
.fold-header {
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.fold-header:hover {
    background: #f1f3f4;
}

.fold-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    line-height: 1.4;
}

.fold-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修复小三角箭头样式 */
.fold-arrow {
    transition: transform 0.3s ease;
    color: #64748b;
    font-size: 12px;
}

/* 确保SVG图标也能正确旋转 */
.fold-arrow,
.fold-arrow svg {
    transition: transform 0.3s ease;
}

/* 折叠内容 */
.fold-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.fold-content-inner {
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease 0.1s;
}

/* 展开状态 */
.fold-container.active .fold-header {
    background: #f5c7d2;
    border-bottom: 1px solid #f5c7d2;
}

.fold-container.active .fold-title {
    color: #c53256;
}

/* 修复小三角旋转 */
.fold-container.active .fold-arrow,
.fold-container.active .fold-arrow svg {
    transform: rotate(180deg);
    color: #c53256;
}

.fold-container.active .fold-content {
    max-height: 2000px;
}

.fold-container.active .fold-content-inner {
    padding: 0px 20px 20px;
    opacity: 1;
    transform: translateY(0);
}

/* 内容样式 */
.fold-content-inner {
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
}

.fold-content-inner p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: #4a5568;
}

.fold-content-inner p:last-child {
    margin-bottom: 0;
}

.fold-content-inner ul,
.fold-content-inner ol {
    margin: 12px 0;
    padding-left: 20px;
}

.fold-content-inner li {
    margin: 4px 0;
    line-height: 1.6;
}

.fold-content-inner h1,
.fold-content-inner h2,
.fold-content-inner h3,
.fold-content-inner h4,
.fold-content-inner h5,
.fold-content-inner h6 {
    margin: 16px 0 8px 0;
    color: #2d3748;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fold-header {
        padding: 14px 16px;
    }
    
    .fold-title {
        font-size: 13px;
    }
    
    .fold-container.active .fold-content-inner {
        padding: 16px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .fold-container {
        background: #1a202c;
        border-color: #2d3748;
    }
    
    .fold-header {
        background: #2d3748;
    }
    
    .fold-title {
        color: #e2e8f0;
    }
    
    .fold-content {
        background: #1a202c;
    }
    
    .fold-content-inner {
        color: #cbd5e0;
    }
    
    .fold-content-inner p {
        color: #cbd5e0;
    }
    
    .fold-container.active .fold-header {
        background: #2c5282;
    }
    
    .fold-container.active .fold-arrow,
    .fold-container.active .fold-arrow svg {
        color: #63b3ed;
    }
}