/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    position: relative;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* 渐变背景动画 */
@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    

}

/* 头部样式 */
header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #0066cc, #004499);
    background-size: 200% 200%;
    color: white;
    animation: headerGradient 10s ease infinite;
}

@keyframes headerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    background: white;
    flex-shrink: 0;
}

.header-text h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.header-text p {
    font-size: 16px;
    opacity: 0.9;
}

/* 移动端头部适配 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .header-text h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .header-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 15px 10px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
}

/* 主要内容区域 */
main {
    display: grid;
    gap: 30px;
}

.form-section,
.search-section,
.records-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before,
.search-section::before,
.records-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #764ba2);
}

.form-section:hover,
.search-section:hover,
.records-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* 移动端布局适配 */
@media (max-width: 768px) {
    main {
        gap: 20px;
    }
    
    .form-section,
    .search-section,
    .records-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .form-section,
    .search-section,
    .records-section {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="tel"],
input[type="file"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="tel"]:hover,
select:hover {
    border-color: #b3d1ff;
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #e1e8ed;
    background-color: #f8f9fa;
}

input[type="file"]:hover {
    border-color: #0066cc;
}

.file-info {
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.receipt-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.receipt-link:hover {
    text-decoration: underline;
}

.validation-message {
    margin-top: 5px;
    font-size: 14px;
    min-height: 20px;
}

.validation-message.success {
    color: #27ae60;
}

.validation-message.error {
    color: #e74c3c;
}

.validation-message.loading {
    color: #3498db;
}

/* 移动端表单适配 */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px;
    }
    
    label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    input[type="text"],
    input[type="tel"] {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 6px;
    }
    
    .validation-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    input[type="text"],
    input[type="tel"] {
        padding: 8px 10px;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 5px;
    }
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052a3, #003366);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 移动端按钮适配 */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 5px;
    }
    
    .form-actions {
        gap: 8px;
    }
}

/* 搜索区域 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    min-width: 0;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.student-card {
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-card:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.student-card h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.student-card p {
    color: #7f8c8d;
    margin: 2px 0;
    font-size: 14px;
}

/* 移动端搜索适配 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .student-card {
        padding: 12px;
        border-radius: 6px;
    }
    
    .student-card h4 {
        font-size: 16px;
    }
    
    .student-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-box {
        gap: 6px;
    }
    
    .student-card {
        padding: 10px;
        border-radius: 5px;
    }
}

/* 记录区域 */
.records-container {
    max-height: 400px;
    overflow-y: auto;
}

.record-card {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.record-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.record-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.record-date {
    color: #7f8c8d;
    font-size: 14px;
}

.record-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.record-detail {
    font-size: 14px;
    color: #555;
}

.record-detail strong {
    color: #2c3e50;
}

/* 移动端记录适配 */
@media (max-width: 768px) {
    .records-container {
        max-height: 300px;
    }
    
    .record-card {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .record-title {
        font-size: 16px;
    }
    
    .record-date {
        font-size: 13px;
    }
    
    .record-detail {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .records-container {
        max-height: 250px;
    }
    
    .record-card {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    
    .record-title {
        font-size: 15px;
    }
    
    .record-detail {
        font-size: 12px;
    }
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -20px;
    margin-right: -20px;
}

.close:hover {
    color: #000;
}

.success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.modal h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* 移动端模态框适配 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        border-radius: 12px;
        width: 95%;
    }
    
    .success-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .modal h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .modal p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .close {
        font-size: 24px;
        margin-top: -15px;
        margin-right: -15px;
    }
    
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }

    
    .login-header h2 {
        font-size: 20px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    .user-info span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 30% auto 10%;
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .success-icon {
        font-size: 45px;
        margin-bottom: 12px;
    }
    
    .modal h3 {
        font-size: 18px;
    }
    
    .modal p {
        font-size: 13px;
    }
    
    .login-container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .login-header h2 {
        font-size: 18px;
    }
    
    .login-form input {
        padding: 10px;
        font-size: 14px;
    }
}

/* 提示框 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1001;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    color: #7f8c8d;
    padding: 40px;
}

.loading::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 登录界面样式 */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

.login-header p {
    color: #666;
    font-size: 16px;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

.login-error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.user-info span {
    color: #333;
    font-weight: bold;
}

.user-info button {
    padding: 8px 15px;
    font-size: 14px;
}

/* 搜索控件样式 */
.search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input,
.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.date-input {
    min-width: 120px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    min-width: 35px;
}

.pagination button:hover:not(:disabled) {
    background: #f0f0f0;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination span {
    padding: 8px 12px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .record-details {
        grid-template-columns: 1fr;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .search-input,
    .date-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-section,
    .search-section,
    .records-section {
        padding: 20px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
}

/* 状态样式 */
.status-active {
    color: #27ae60;
    font-weight: bold;
}

.status-inactive {
    color: #e74c3c;
    font-weight: bold;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

        /* 注册记录卡片式布局样式 */
        .records-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .record-item {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid #e1e5e9;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .record-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .record-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            border-color: #667eea;
        }
        
        .record-info {
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .record-info strong {
            color: #333;
            font-weight: 600;
        }
        
        .record-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
            font-size: 13px;
            color: #666;
        }
        
        .record-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .record-meta span::before {
            content: '📅';
            font-size: 14px;
        }
        
        .record-meta span:last-child::before {
            content: '👤';
        }
        
        /* 无结果状态样式 */
        .no-results-state {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }
        
        .no-results-state i {
            font-size: 48px;
            margin-bottom: 20px;
            opacity: 0.5;
        }
        
        .no-results-state p {
            font-size: 16px;
            margin: 10px 0;
        }
        
        /* 响应式优化 */
        @media (max-width: 768px) {
            .records-list {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .record-item {
                padding: 15px;
            }
            
            .record-info {
                font-size: 14px;
            }
            
            .record-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }
        
        @media (max-width: 480px) {
            .record-item {
                padding: 12px;
            }
            
            .record-info {
                font-size: 13px;
                line-height: 1.5;
            }
            
            .record-meta {
                font-size: 12px;
            }
        }
/* 学生信息查询结果优化样式 */
.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    border: 2px solid #e8ecf1;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 15px;
}

/* 自定义滚动条 */
.search-results-list::-webkit-scrollbar {
    width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.search-result-item {
    padding: 18px 24px;
    border-bottom: 1px solid #f5f7fa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.search-result-item:hover::before {
    transform: scaleY(1);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.student-id {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.student-name {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-name::before {
    content: '👤';
    font-size: 18px;
    opacity: 0.7;
}

.search-result-item:hover .student-id {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed #e1e8ed;
    font-size: 15px;
}

.no-results::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 加载状态 */
.search-loading {
    text-align: center;
    padding: 30px;
    color: #667eea;
    font-size: 15px;
}

.search-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-results-list {
        max-height: 350px;
        margin-top: 12px;
    }
    
    .search-result-item {
        padding: 15px 18px;
    }
    
    .student-info {
        gap: 12px;
    }
    
    .student-id {
        font-size: 12px;
        padding: 5px 12px;
        min-width: 80px;
    }
    
    .student-name {
        font-size: 15px;
    }
    
    .student-name::before {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-results-list {
        max-height: 300px;
        border-radius: 10px;
    }
    
    .search-result-item {
        padding: 12px 15px;
    }
    
    .student-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .student-id {
        min-width: auto;
        align-self: flex-start;
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .student-name {
        font-size: 14px;
        align-self: stretch;
    }
    
    .student-name::before {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .no-results {
        padding: 30px 15px;
        font-size: 14px;
    }
    
    .no-results::before {
        font-size: 36px;
        margin-bottom: 12px;
    }
}