body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    position: relative;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fallback-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(245, 245, 245, 0.15); /* 15% 透明度 */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header {
    background: rgba(0, 0, 0, 0.15); /* 15% 透明度 */
    height: 80px; /* 调整高度以适应当前时间显示 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#current-time {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2); /* 20% 透明度背景 */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

#current-time:hover {
    background: rgba(0, 0, 0, 0.3); /* 鼠标悬停时增加透明度 */
}

nav {
    background: rgba(255, 255, 255, 0.15); /* 15% 透明度 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.05); /* 5% 透明度 */
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li:hover {
    background: rgba(255, 255, 255, 0.1); /* 鼠标悬停时增加透明度 */
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-item {
    background: rgba(255, 255, 255, 0.15); /* 15% 透明度 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.85; /* 85% 透明度 */
}

.article-item .content {
    padding: 20px;
}

.article-item .content h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.article-item .content p {
    margin: 0;
    color: #666;
}

footer {
    background: rgba(51, 51, 51, 0.15); /* 15% 透明度 */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        height: 70px; /* 调整高度以适应小屏幕 */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

    .article-item img {
        height: 150px;
    }

    .article-item .content h2 {
        font-size: 1.2em;
    }

    .article-item .content p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header {
        height: 60px; /* 调整高度以适应更小的屏幕 */
    }

    #current-time {
        font-size: 1.2em; /* 调整字体大小以适应小屏幕 */
    }

    .article-item img {
        height: 100px;
    }

    .article-item .content h2 {
        font-size: 1em;
    }

    .article-item .content p {
        font-size: 0.8em;
    }
}