/* 折叠菜单容器 */
.fancy-tips {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    margin: 20px 0;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fancy-tips:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 标题 */
.fancy-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff6f61;
    background-color: #252525;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.fancy-title::before {
    content: "▶";
    margin-right: 10px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

details[open] .fancy-title::before {
    transform: rotate(90deg);
}

.fancy-title:hover {
    color: #ff9a8b;
    background-color: #303030;
}

details[open] .fancy-title {
    color: #ff9a8b;
    border-bottom: 1px solid rgba(255, 107, 97, 0.3);
}

/* 内容区域 */
.fancy-content {
    padding: 15px 20px;
    color: #d0d0d0;
    font-size: 14px;
    animation: slideDown 0.3s ease-in-out;
}

.fancy-content p {
    margin: 10px 0;
    line-height: 1.8;
}

.fancy-content ul {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
}

.fancy-content li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
}

.fancy-content li::before {
    content: "•";
    color: #ff6f61;
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* 高亮文本 */
.highlight {
    color: #ff6f61;
    font-weight: 600;
    background: rgba(255, 107, 97, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 链接 */
.fancy-link {
    color: #ff6f61;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fancy-link:hover {
    color: #fff;
    background-color: #ff6f61;
    text-decoration: none;
}

/* 展开动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .fancy-title {
        font-size: 16px;
        padding: 10px 15px;
    }

    .fancy-content {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .fancy-title {
        font-size: 14px;
        padding: 8px 12px;
    }

    .fancy-content {
        font-size: 13px;
        padding: 10px 12px;
    }
}