/* 透明主题可折叠内容样式 - 适配个人介绍页面宽度 */
details {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* 适配个人介绍页面宽度 */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5px); /* 减去容器padding */
}

details:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

details[open] {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

summary {
    background: rgba(255, 255, 255, 0.2);
    color: #b3e0ff; /* 浅蓝色标题 */
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    list-style: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 隐藏默认标记 */
summary::-webkit-details-marker {
    display: none;
}

/* 自定义标记 */
summary:after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-shadow: none;
    color: #b3e0ff; /* 浅蓝色标记 */
}

details[open] summary:after {
    transform: rotate(45deg);
    content: '−';
}

summary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ccebff; /* 悬停时更亮的浅蓝色 */
}

.content {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* 容器 - 适配个人介绍页面 */
.iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 125%; /* 16:9 比例 */
    max-width: 800px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中 */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px; /* 添加圆角 */
}

/* 响应式调整 */
@media (max-width: 840px) {
    details {
        width: calc(100% - 30px); /* 在小屏幕上减少边距 */
        max-width: none; /* 移除最大宽度限制 */
    }
}

@media (max-width: 600px) {
    details {
        width: calc(100% - 20px); /* 在移动端进一步减少边距 */
        margin-bottom: 15px;
    }
    
    summary {
        padding: 15px;
        font-size: 1rem;
    }
    
    .content {
        padding: 15px;
    }
    
    .iframe-container {
        padding-bottom: 75%; /* 在移动端调整比例 */
    }
}

/* 为个人介绍页面添加特定样式 */
.profile-container details {
    margin: 25px auto; /* 在个人介绍页面中的额外间距 */
}

.profile-section details {
    background: rgba(255, 255, 255, 0.15); /* 在个人介绍卡片中使用更亮的背景 */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-section details[open] {
    background: rgba(255, 255, 255, 0.2);
}