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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: transparent;
    color: #333;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 视频背景 */
.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;
}

.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);
}

.nav-item-container:hover .sub-nav {
    display: block;
    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;
}

.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);
}

/* 响应式设计 */
@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;
    }
}

@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%;
    }
    
    .back-to-home a {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(25, 25, 35, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表单样式 */
.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
}

.required::after {
    content: '*';
    color: #ff4d4d;
    margin-left: 4px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

/* 添加悬停效果 */
input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
    border-color: #000;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
}

/* 添加点击/焦点效果 */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.6);
    box-shadow: 0 0 10px rgba(100, 180, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

input:focus::placeholder {
    opacity: 0.5;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* 单选框和复选框样式 */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    margin-right: 15px;
}

/* 文件上传样式 */
input[type="file"] {
    padding: 10px 0;
    color: white;
    cursor: pointer;
}

.file-hint {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* 提交按钮样式 */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1e2c3a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        margin-left: auto;
        max-width: 95%;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* 修改下拉框选项的颜色 */
#grade option {
    color: black;
    background-color: white;  /* 设置背景色以确保文字清晰可见 */
}

/* 焦点图容器 */
.focus-container {
    max-width: 800px;
    margin: 20px auto;
    background: rgba(25, 25, 35, 0.2);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transform: none;
}