/* Header 相关样式 */
.header {
    background: rgba(122, 189, 154, 0.2);
    /* 半透明背景 */
    backdrop-filter: blur(10px);
    /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    /* Safari 支持 */
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 玻璃边缘效果 */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        /* 轻微阴影增强立体感 */
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* 内阴影增强玻璃感 */
}
.header h1 {
    margin: 0;
    font-size: 1.5em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* 文字阴影增强可读性 */
}
.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.header-left {
    display: flex;
    align-items: center;
}
.header-nav-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}
.header-nav {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.header-nav li {
    margin: 0 8px;
    white-space: nowrap;
}
.header-nav li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* 文字阴影增强可读性 */
}
.header-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 悬停时添加阴影 */
}
/* 语言选择器样式 */
.language-selector {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(5px);
    /* Safari 支持 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}
.language-selector:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.language-selector option {
    background-color: rgba(122, 189, 154, 0.9);
    /* 半透明背景 */
    color: white;
}
.header-search {
    display: flex;
    align-items: center;
    margin-left: 15px;
}
.header-search input {
    width: 150px;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(5px);
    /* Safari 支持 */
    color: white;
}
.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.header-search button {
    padding: 5px 12px;
    margin-left: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(5px);
    /* Safari 支持 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.header-search button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}
.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-menu:hover span {
    background-color: rgba(255, 255, 255, 0.8);
}
/* 移动端侧边栏样式 */
.mobile-navsidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}
.navsidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.navsidebar-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: rgba(122, 189, 154, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.navsidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.navsidebar-header h2 {
    margin: 0;
    color: white;
    font-size: 1.2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.navsidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.navsidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.navsidebar-nav {
    flex: 1;
    padding: 20px 0;
}
.navsidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.navsidebar-nav li {
    margin: 0;
}
.navsidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    border-left: 3px solid transparent;
}
.navsidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.5);
}
.navsidebar-search {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.navsidebar-search input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.navsidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.navsidebar-search button {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.navsidebar-search button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.navsidebar-controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.navsidebar-language .language-selector {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.navsidebar-login a {
    display: block;
    padding: 10px;
    text-align: center;
    color: white;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background-color 0.3s;
}
.navsidebar-login a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
/* 移动端样式 */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(122, 189, 154, 0.2);
    }
    .header-nav-container {
        display: none;
    }
    .header-search {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .mobile-navsidebar {
        display: block;
        visibility: hidden;
        transition: visibility 0.3s ease;
    }
    .mobile-navsidebar.active {
        visibility: visible;
    }
    .mobile-navsidebar.active .navsidebar-overlay {
        opacity: 1;
    }
    .mobile-navsidebar.active .navsidebar-content {
        right: 0;
    }
}
/* PC端样式 */
@media (min-width: 769px) {
    .mobile-navsidebar {
        display: none;
    }
}
.header-placeholder {
    height: 60px;
}