* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    gap: 20px;
    background-color: #f0f0f0;
}

.live_card {
    width: 300px;
    margin: 20px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.live_card img {
    width: 100%;
    height: auto;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.live_card .text {
    padding: 15px;
}

.live_card h3 {
    margin: 0;
    color: #333;
    margin-bottom: 5px;
}

.live_card p {
    color: #666;
    margin-bottom: 10px;
}

.live_card .live_button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.live_card .live_button:hover {
    background-color: #0056b3;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        /* 确保header在大屏幕上不会超出 */
        max-width: 90%;
        margin: 0 auto; /* 居中显示 */
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin-right: 10px;
}

nav a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: black;
}

video {
    max-width: 100%; /* 确保视频宽度不超过其容器 */
    height: auto; /* 自动调整高度以保持宽高比 */
}

/* 媒体查询示例，针对小屏幕进行调整 */
@media (max-width: 600px) {
    .container {
        flex-direction: column; /* 在小屏幕上变为垂直堆叠 */
    }
    .live_card {
        margin: 10px; /* 减少小屏幕上的外边距 */
    }
}

/* 其他可能需要根据实际情况调整的地方... */