/* 1. 自定义折叠框整体容器 */
details {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 15px 0;
    background-color: #f6f8fa;
    transition: all 0.3s ease;
}

/* 2. 当折叠框展开时的整体样式改变（可选） */
details[open] {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 3. 自定义折叠栏标题（Summary） */
details summary {
    font-weight: 600;
    color: #24292e;
    cursor: pointer;
    outline: none;
    padding: 5px 0;
    list-style: none; /* 移除部分浏览器默认小三角 */
}

/* 4. 彻底移除所有浏览器自带的默认小箭头 */
details summary::-webkit-details-marker {
    display: none;
}

/* 5. 用伪元素自定义更加美观的展开/收起图标 */
details summary::before {
    content: "▶"; /* 未展开时的图标，也可以换成 "➕" */
    display: inline-block;
    margin-right: 8px;
    font-size: 12px;
    color: #0366d6;
    transition: transform 0.2s ease;
}

/* 6. 当折叠框展开时，图标旋转或改变 */
details[open] summary::before {
    transform: rotate(90deg); /* 让小三角顺时针旋转90度朝下 */
    /* 或者你也可以直接换成别的图标，如 content: "➖"; */
}

/* 7. 折叠内容区域的样式（在展开时生效） */
details summary ~ * {
    margin-top: 10px;
    padding-left: 20px;
    color: #444444;
    animation: fadeIn 0.4s ease; /* 展开时加上渐显动画 */
}

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