body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
}

.container {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar-header h1 {
    font-size: 24px;
    margin: 0 0 20px;
}

.sidebar-nav .nav-section {
    margin-bottom: 20px;
}

.sidebar-nav h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background-color: #34495e;
}

.main-content {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-button {
    font-size: 24px;
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
}

.search-bar input {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}

.content-container {
    display: flex;
    flex-direction: column;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.content-card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.code-container {
    position: relative;
    margin-bottom: 20px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #2980b9;
}

.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
}

.language-selector select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
}

/* 添加视频相关样式 */
.nft-video {
    position: relative;
    width: 100%;
    max-width: 480px;  /* 调整为更合适的最大宽度 */
    margin: 0 auto;
    aspect-ratio: 16/9;  /* 确保容器也保持16:9比例 */
    background: #000;    /* 添加背景色 */
}

.nft-video video {
    position: absolute;  /* 使用绝对定位确保视频填充容器 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为 contain 以确保视频不被裁剪 */
    border-radius: 8px;
}

.nft-description {
    margin-top: 20px;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 5px;
}

/* 移动设备适配 */
@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        width: 100%;
        padding: 15px;
    }

    .content-header {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input {
        max-width: 100%;
    }

    .language-selector {
        position: static;
        margin-top: 10px;
    }

    .code-container {
        margin: 0 -15px;
    }

    pre {
        font-size: 14px;
        padding: 10px;
        overflow-x: auto;
    }

    .copy-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .nft-video {
        max-width: 100%;  /* 在移动设备上占满宽度 */
    }
}