.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 15px 0 15px 50px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    transition: all 0.5s ease;
    box-shadow: none;
    border-bottom: none;
}

.logo-container{
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none
}

.logo{
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #a10000, #d50000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(161, 0, 0, 0.5);
}

.logo i{
    font-size: 1.5rem;
    color: white;
}

.site-name{
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.site-name span{
    color: #ffde59;
}

.nav-links{
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a{
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.03125rem;
}

.nav-links a:hover{
    color: #ffde59;
}

.nav-links a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: #ffde59;
    transition: width 0.3s ease;
}

.nav-links a:hover::after{
    width: 100%;
}

.menu-container{
    width: 120px;
    height: 80px;
    clip-path: polygon(20% 100%, 0% 0%, 100% 0%, 100% 100%);
    background: linear-gradient(45deg, rgb(102, 8, 116), royalblue);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.menu-btn span{
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero{
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-bg{
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-text{
    position: absolute;
    bottom: 3vw;
    left: 15%;
    right: 45%;
    z-index: 1;
    color: white;
}
.hero-text h1{
    margin: 0 0 1vw;
    font-size: 4vw;
    font-weight: normal;
}
.hero-text p{
    margin: 0;
    font-size: 1.5vw;
    line-height: 1.5;
}

/* 覆盖层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.overlay.active {
    display: block;
}

/* 目录菜单样式 */
.directory-menu {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: linear-gradient(to bottom, #6a0dad, #8a2be2);
    color: white;
    z-index: 999;
    padding: 70px 20px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.directory-menu.active {
    right: 0;
}

.menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.menu-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.menu-items {
    list-style: none;
    margin-top: 20px;
}

.menu-items li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.menu-items a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
}

.menu-items a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.menu-items i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@media (max-width: 900px){
    .nav-links a{
        display: none;
    }
}

@media (max-width: 720px){
    .hero-text{
        right: 15%;
    }
    .hero-text h1{
        text-align: center;
        font-size: 1.7rem;
    }
    .hero-text p{
        display: none;
    }

    :root {
        --header-width: 720;
    }
    .header{
        height: calc(80 / var(--header-width) * 100vw);
        padding: calc(15 / var(--header-width) * 100vw) 0 calc(15 / var(--header-width) * 100vw) calc(50 / var(--header-width) * 100vw);
    }
    .logo-container{
        gap: calc(15 / var(--header-width) * 100vw);
    }
    .logo{
        width: calc(50 / var(--header-width) * 100vw);
        height: calc(50 / var(--header-width) * 100vw);
        box-shadow: 0 0 calc(15 / var(--header-width) * 100vw) rgba(161, 0, 0, 0.5);
    }
    .site-name{
        text-shadow: 0 calc(2 / var(--header-width) * 100vw) calc(5 / var(--header-width) * 100vw) rgba(0, 0, 0, 0.5);
    }
    .nav-links a{
        padding: calc(8 / var(--header-width) * 100vw) 0;
    }
    .menu-container{
        width: calc(120 / var(--header-width) * 100vw);
        height: calc(80 / var(--header-width) * 100vw);
    }
    .menu-btn{
        gap: calc(6 / var(--header-width) * 100vw);
    }
    .menu-btn span{
        width: calc(25 / var(--header-width) * 100vw);
        height: calc(3 / var(--header-width) * 100vw);
        border-radius: calc(2 / var(--header-width) * 100vw);
    }
    .directory-menu {
        padding: calc(70 / var(--header-width) * 100vw) calc(20 / var(--header-width) * 100vw) calc(20 / var(--header-width) * 100vw);
        box-shadow: -2px 0 calc(20 / var(--header-width) * 100vw) rgba(0, 0, 0, 0.3);
    }
    .menu-header {
        height: calc(80 / var(--header-width) * 100vw);
        padding: calc(15 / var(--header-width) * 100vw) calc(20 / var(--header-width) * 100vw);
    }
    .close-btn {
        width: calc(40 / var(--header-width) * 100vw);
        height: calc(40 / var(--header-width) * 100vw);
    }
    .menu-items {
        margin-top: calc(20 / var(--header-width) * 100vw);
    }
    .menu-items li {
        margin-bottom: calc(12 / var(--header-width) * 100vw);
        border-bottom: calc(1 / var(--header-width) * 100vw) solid rgba(255, 255, 255, 0.2);
        padding-bottom: calc(12 / var(--header-width) * 100vw);
    }
    .menu-items a {
        padding: calc(12 / var(--header-width) * 100vw) calc(15 / var(--header-width) * 100vw);
        border-radius: calc(6 / var(--header-width) * 100vw);
    }
    .menu-items a:hover {
        transform: translateX(calc(5 / var(--header-width) * 100vw));
    }
    .menu-items i {
        margin-right: calc(10 / var(--header-width) * 100vw);
    }
}
