/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: transparent;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 导航栏样式 - 使用zwjs.css中的样式 */
.navbar {
    width: 200px;
    background-color: rgba(20, 20, 20, 0.8);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    z-index: 1001;
}

.nav-brand {
    color: #f0f0f0;
    padding: 20px;
    font-size: 1.5em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
}

.nav-item {
    color: #f0f0f0;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item-container:hover .nav-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.sub-nav {
    display: none;
    background-color: rgba(20, 20, 20, 0.8);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
    z-index: 1002;
}

.nav-item-container:hover .sub-nav {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-nav-item {
    color: #ccc;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
}

a:hover {
    text-decoration: none;
}

.sub-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 返回按钮样式 */
.back-to-home {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.back-to-home a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(25, 25, 35, 0.3);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-home a:hover {
    background: rgba(45, 45, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 浮动容器样式 */
.float-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* 浮动框架样式 */
.float-frame {
    background: rgba(25, 25, 35, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 80%;
    max-width: 800px;
    overflow: auto;
    resize: both;
    min-width: 300px;
    min-height: 200px;
    margin: 0 auto;
}

/* 保留原有的元素样式 */
.float {
    float: left;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ele {
    display: inline-block;
    width: 30px;
    height: 30px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin: 3px;
    transition: all 0.3s ease;
}

.ele:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.front {
    background-color: #000;
}

.back {
    background-color: blue;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .float-container {
        margin-top: 0;
    }
    
    .float-frame {
        margin-left: 0;
        width: 90%;
        padding: 20px;
    }
}

@media screen and (max-width: 576px) {
    .float-frame {
        padding: 15px;
    }
}

@media screen and (max-width: 1200px) {
    .navbar {
        width: 180px;
    }
    
    .float-frame {
        margin-left: 90px;
    }
}

@media screen and (max-width: 992px) {
    .navbar {
        width: 160px;
    }
    
    .nav-brand {
        padding: 15px;
        font-size: 1.3em;
    }
    
    .nav-item {
        padding: 10px;
    }
    
    .float-frame {
        margin-left: 80px;
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        padding: 0.5rem 0;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item-container {
        margin: 0 5px;
        position: relative;
    }
    
    .nav-brand {
        padding: 10px;
        font-size: 1.2em;
    }
    
    .nav-item-container:hover .sub-nav {
        position: absolute;
        left: 0;
        width: 200px;
        animation: none;
        background-color: rgba(30, 30, 30, 0.9);
        z-index: 100;
    }
    
    .sub-nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0.5rem;
    }
    
    .sub-nav-item {
        padding: 10px 15px;
        text-align: center;
    }

    .back-to-home {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .float-container {
        margin-top: 80px;
    }
    
    .float-frame {
        margin-left: 0;
        width: 90%;
        padding: 20px;
    }
}

@media screen and (max-width: 576px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item-container {
        width: 100%;
        margin: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-item-container:hover .sub-nav {
        position: static;
        width: 100%;
    }
    
    .sub-nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-to-home a {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .float-frame {
        padding: 15px;
    }
}