/* 详情框优化代码 */
details {
    background: #ffffff;
    padding: 0;
    margin: 1.2em auto;
    border: 1px solid #4a90e2;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 88%;
}

details:hover {
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.15);
    transform: translateY(-1px);
}

summary {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 18px;
    background: #ffffff;
    color: #4a90e2;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-family: "Microsoft YaHei", "Segoe UI", "Arial", sans-serif;
}

summary:hover {
    background: #f0f7ff;
}

summary::after {
    content: '▶';
    position: absolute;
    right: 18px;
    transition: transform 0.3s ease;
    font-size: 0.7em;
    color: #4a90e2;
}

details[open] summary::after {
    transform: rotate(90deg);
}

details[open] summary {
    margin-bottom: 0;
    border-bottom: 1px solid #e3f2fd;
    border-radius: 12px 12px 0 0;
}

details > *:not(summary) {
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    line-height: 1.5;
}

/* 响应式优化 */
@media (max-width: 768px) {
    details {
        margin: 1em auto;
        max-width: 92%;
        border-radius: 12px;
    }
    
    summary {
        padding: 12px 16px;
        font-size: 1em;
        border-radius: 10px;
    }
    
    details[open] summary {
        border-radius: 10px 10px 0 0;
    }
    
    details > *:not(summary) {
        padding: 12px 16px;
        border-radius: 0 0 10px 10px;
    }
}

@media (max-width: 480px) {
    details {
        max-width: 95%;
        margin: 0.8em auto;
    }
    
    summary {
        padding: 10px 14px;
    }
    
    details > *:not(summary) {
        padding: 10px 14px;
    }
}