/* 继续前面的样式 */
}

/* 无结果提示样式 */
#noResults {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    position: relative;
    overflow: hidden;
}

#noResults::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    z-index: -1;
    animation: neonBorderFlow 3s linear infinite;
    opacity: 0.5;
}

/* 分页控件霓虹风格 */
.pagination {
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination .page-link {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: 1;
}

.pagination .page-link:hover::before {
    left: 100%;
}

.pagination .page-link:hover {
    background-color: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    color: #fff;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* 结果计数霓虹风格 */
#resultCount {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    animation: countPulse 2s ease-in-out infinite alternate;
}

@keyframes countPulse {
    from {
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    }
}

/* 表格排序图标霓虹风格 */
.sort-icon {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.sort-icon:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    transform: scale(1.2);
}

/* 表格霓虹效果 */
.table {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    animation: neonBorderFlow 3s linear infinite;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.table tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.table tbody tr:hover td {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .card {
        margin: 0.5rem 0;
    }

    /* 移动端搜索栏优化 */
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-group > * {
        width: 100% !important;
        margin-left: 0 !important;
        border-radius: 4px !important;
    }

    .input-group .form-control {
        font-size: 16px;
        height: 45px;
    }

    .input-group .btn {
        padding: 0.75rem;
        width: 100%;
        margin-top: 0.25rem;
    }

    /* 移动端标题大小调整 */
    h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    /* 移动端卡片内边距调整 */
    .card-body {
        padding: 0.75rem;
    }

    /* 确保按钮文字在移动端清晰可见 */
    .btn {
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 44px;
    }

    /* 优化表格在移动端的显示 */
    .table-responsive {
        margin: 0 -0.75rem;
    }

    .table th, .table td {
        padding: 0.75rem;
        white-space: normal;
        min-width: 100px;
    }

    .table th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    /* 优化移动端的分页控件 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .pagination .page-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 触摸反馈效果 */
@media (max-width: 768px) {
    /* 按钮触摸反馈 */
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
    
    /* 链接触摸反馈 */
    a:active {
        opacity: 0.7;
        transition: opacity 0.1s;
    }
    
    /* 表格行触摸反馈 */
    .table tbody tr:active {
        background-color: rgba(0, 255, 255, 0.15);
    }
    
    /* 分页项触摸反馈 */
    .page-link:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* 全局背景和基础样式 */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #f8f9fa;
    background-image: 
        linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100%, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 0 0;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* 确保所有元素使用border-box */
* {
    box-sizing: border-box;
}

/* 霓虹文字通用类 */
.neon-text {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    animation: neonTextPulse 2s ease-in-out infinite alternate;
}

@keyframes neonTextPulse {
    from {
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.5);
    }
}

/* 霓虹边框通用类 */
.neon-border {
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    z-index: -1;
    animation: neonBorderFlow 3s linear infinite;
    opacity: 0.5;
}

@keyframes neonBorderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 搜索结果淡入动画 */
#resultsTable tbody tr {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮脉冲动画 */
.btn-primary {
    animation: buttonPulse 2s infinite alternate;
}

@keyframes buttonPulse {
    from {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4);
    }
}

/* 搜索框霓虹效果 */
.form-control:focus {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 
                inset 0 0 10px rgba(0, 255, 255, 0.2);
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.form-control {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.search-container {
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-container:focus-within::before {
    opacity: 0.5;
    animation: neonBorderFlow 3s linear infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
}

/* 选中文本样式 */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 5px #00ffff;
}

/* 霓虹加载动画 */
.neon-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.neon-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.neon-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid #00ffff;
    border-right: 4px solid #ff00ff;
    border-bottom: 4px solid #00ffff;
    border-left: 4px solid #ff00ff;
    border-radius: 50%;
    animation: neonSpin 1.5s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 
                inset 0 0 20px rgba(255, 0, 255, 0.7);
}

@keyframes neonSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.neon-text-loading {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    }
    to {
        text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff, 0 0 35px #00ffff;
    }
}

/* 霓虹光标效果 */
.neon-cursor {
    pointer-events: none;
    mix-blend-mode: screen;
}

/* 表格行点击效果 */
#resultsTable tbody tr.active-row {
    background-color: rgba(0, 255, 255, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

#resultsTable tbody tr.active-row td {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}

#resultsTable tbody tr.active-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(0, 255, 255, 0.1), 
                rgba(255, 0, 255, 0.1), 
                rgba(0, 255, 255, 0.1));
    animation: neonRowPulse 2s infinite alternate;
    z-index: -1;
}

@keyframes neonRowPulse {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 0.7;
    }
}

/* 搜索框霓虹光晕效果增强 */
.form-control:focus {
    animation: searchGlow 2s infinite alternate;
}

@keyframes searchGlow {
    from {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 
                    inset 0 0 10px rgba(0, 255, 255, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 
                    0 0 30px rgba(0, 255, 255, 0.3), 
                    inset 0 0 15px rgba(0, 255, 255, 0.3);
    }
}