/* 考生端样式 */
.student-body {
    background-color: var(--gray-light);
    min-height: 100vh;
}

/* 登录页样式 */
.login-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.login-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background-color: var(--white);
}

.login-image {
    flex: 1;
    position: relative;
    display: none;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: var(--white);
}

.login-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.login-button {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.login-button:hover {
    background-color: var(--primary-dark);
}

.login-footer {
    text-align: center;
    margin-top: auto;
}

.register-link {
    color: var(--primary-color);
    font-weight: 500;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary-color);
}

/* 考试列表页样式 */
.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.student-header .logo {
    display: flex;
    align-items: center;
}

.student-header .logo img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.student-header .logo h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
}

.logout-button {
    background-color: transparent;
    color: var(--gray-dark);
    border: 1px solid var(--gray);
    padding: 6px 15px;
    font-size: 0.9rem;
}

.logout-button:hover {
    background-color: var(--gray-light);
}

.student-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.welcome-banner {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.welcome-text p {
    margin-bottom: 0;
    opacity: 0.9;
}

.test-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--dark);
}

.section-actions {
    display: flex;
    gap: 15px;
}

.filter-button, .view-button {
    background-color: var(--white);
    color: var(--gray-dark);
    border: 1px solid var(--gray);
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-button:hover, .view-button:hover {
    background-color: var(--gray-light);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.test-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
}

.test-card-header {
    padding: 15px;
    background-color: var(--gray-light);
    border-bottom: 1px solid var(--gray);
}

.test-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.test-card-body {
    padding: 15px;
}

.test-details {
    margin-bottom: 15px;
}

.test-detail {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    width: 80px;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.detail-value {
    flex: 1;
    font-weight: 500;
}

.test-actions {
    display: flex;
    justify-content: center;
}

.start-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    width: 100%;
    border-radius: var(--border-radius);
    text-align: center;
}

.start-button:hover {
    background-color: var(--primary-dark);
}

.start-button.disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}

.view-results-button {
    background-color: var(--secondary-color);
    color: var(--white);
}

.completed-badge {
    display: inline-block;
    background-color: var(--success);
    color: var(--white);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

/* 桌面端专用样式 */
@media (min-width: 992px) {
    .login-image {
        display: block;
    }
    
    .login-box {
        max-width: 50%;
    }
}

/* 平板端响应式 */
@media (max-width: 991px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .student-header {
        flex-direction: column;
        padding: 15px;
    }
    
    .student-header .logo {
        margin-bottom: 15px;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-text {
        margin-bottom: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        margin-top: 10px;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
} 