* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-image: url('background.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

header {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 5px;
    text-align: left;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    height: calc(100vh - 200px); /* 预留空间给 header 和 footer */
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.nav-section {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.music-player {
    grid-column: span 2; /* 占据两列 */
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    text-align: center;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-container {
    position: relative;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    cursor: pointer;
}

#progress-bar {
    height: 100%;
    width: 0;
    background-color: rgba(255, 255, 255, 0.4);
}

#time-display {
    font-size: 12px;
    position: absolute;
    right: 10px;
    bottom: -20px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
    font-size: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 80%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* 悬停效果，鼠标移入时导航按钮带光效 */
.nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: auto;
    }

    .image-section {
        width: 100%;
        text-align: center;
    }

    .nav-section {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        width: 100%;
        gap: 10px;
        padding: 10px;
    }

    .nav {
        height: 80px;
    }
}

.player-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.control-btn img {
    width: 30px;
    height: 30px;
}

.progress-container {
    position: relative;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    cursor: pointer;
}

#progress-bar {
    height: 100%;
    width: 0;
    background-color: rgba(255, 255, 255, 0.4);
}

#time-display {
    font-size: 12px;
    position: absolute;
    right: 10px;
    bottom: -20px;
}

.new-footer-content {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 5px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-footer-content img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.new-footer-content a {
    text-decoration: none;
    color: #333;
    margin: 0 5px;
}

.new-footer-content.separator {
    margin: 0 5px;
}

.image-section {
    display: flex;
    flex-direction: column;
    height: 100vh; /* 设置为视口高度 */
    grid-template-rows: 1fr 1fr;
    align-items: first baseline;
}

.upper-part {
    grid-row: span 1; /* 占据两列 */
    display: flex;
    flex-direction: column; /* 垂直排列元素 */
    justify-content: space-between;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3); 
    padding: 10px;
}

.reserved-space {
    flex: 1;
    background-color: #f0f0f0; /* 底部空间背景色，可根据需求修改 */
}

#greeting-and-date {
    font-size: 24px; /* 较大的字体 */
    font-weight: bold; /* 加粗字体 */
    color:  #333; /* 深灰色，保持简洁 */
    font-family: 'Arial', sans-serif; /* 设置合适的字体 */
    margin-bottom: 10px; /* 与时钟保持间距 */
}

@font-face {
    font-family: 'Time Bold'; /* 自定义字体名称 */
    src: url('./fonts/Time-Bold.ttf') format('truetype'); /* 指定字体文件路径和格式 */
    font-weight: bold; /* 定义字体粗细 */
    font-style: normal; /* 定义字体样式 */
}

#digital-clock {
    font-size: 3rem;
    font-family: 'Time Bold', monospace; /* 使用自定义字体 */
    color:  #333;
    align-items: first;
}