* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
}
/* 汉堡菜单按钮样式 */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 101;
}
.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}
.hamburger-btn:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 1);
}


/* 侧边导航栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(221, 221, 221, 0.8);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar.open {
    right: 0;
}

.nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #4E5969;
    text-decoration: none;
    font-weight: 500;
}
.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}
.nav-btn:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.1);
}

/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
}
.overlay.open {
    opacity: 1;
    visibility: visible;
}
/* 背景图片容器 */
.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: -1;
}
/* 针对不同屏幕比例的优化 */
@media (max-aspect-ratio: 4/3) {
    .bg-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}
@media (min-aspect-ratio: 16/9) {
    .bg-image {
        height: 100%;
        width: auto;
        object-fit: cover;
    }
}
h1 {
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    font-weight: 600;
}
.search-container {
    position: relative;
    width: 400px;
    max-width: 90%;
}
#search-input {
    width: 100%;
    padding: 12px 45px 12px 16px; 
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}
#search-input:focus {
    border-color: #4E5969;
    box-shadow: 0 0 0 2px rgba(78, 89, 105, 0.1);
}
.search-container svg {
    pointer-events: none;
}
#search-btn {
    position: absolute;
    right: 8px; 
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important; 
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}
#search-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important; 
}
#search-btn:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.1) !important; 
}

#search-btn:active {
    background: transparent !important;
}
.bottom-shortcut {
    position: fixed;
    bottom: 29px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 42px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(221, 221, 221, 0.8);
}
.shortcut-link {
    text-decoration: none;
    display: inline-block;
}
.shortcut-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
}
.shortcut-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
.shortcut-btn:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.1);
}
.shortcut-btn svg,
.shortcut-btn img {
    pointer-events: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 移动端 */
@media (max-width: 768px) {
    h1 {
        font-size: 20px; 
        margin-bottom: 16px;
        padding: 0 16px; 
        text-align: center;
    }

    .search-container {
        width: 100%;
        max-width: 90%;
        padding: 0 8px;
    }

    #search-input {
        padding: 10px 40px 10px 14px; 
        font-size: 15px;
        border-radius: 20px; 
    }

    #search-btn {
        width: 32px;
        height: 32px; 
        right: 12px;
    }

    .bottom-shortcut {
        bottom: 27px;
        gap: 10px; 
        padding: 10px 14px;
        border-radius: 10px;
    }

    .shortcut-btn {
        width: 48px;
        height: 48px; 
        padding: 10px;
    }

    .shortcut-btn svg {
        width: 22px;
        height: 22px; 
    }
}
