/* 智能控制系统 - 赛博朋克主页面样式 */

/* ==================== 赛博朋克主页面布局 ==================== */
body {
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    clip-path: polygon(30px 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

/* 移除容器扫描动画以提升性能 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0080, transparent);
    opacity: 0.7;
}

.header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border-bottom: 2px solid #00ffff;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.content {
    padding: 40px;
    background: rgba(10, 10, 10, 0.6);
}

/* ==================== 赛博朋克状态面板样式 ==================== */
.status-card {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    position: relative;
    backdrop-filter: blur(10px);
}

/* 移除状态卡片扫描动画以提升性能 */
.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, transparent);
    opacity: 0.6;
}

.status-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
    position: relative;
}

.status-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(0, 255, 255, 0.1) 50%, transparent 51%);
    pointer-events: none;
}

.status-value {
    font-size: 2em;
    font-weight: bold;
    color: #00ffff;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.status-label {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.9em;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 赛博朋克控制面板样式 ==================== */
.control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-card {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 25px;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    position: relative;
    backdrop-filter: blur(10px);
}

/* 移除控制卡片扫描动画以提升性能 */
.control-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, transparent);
    opacity: 0.6;
}

.control-card h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* ==================== 赛博朋克日志面板样式 ==================== */
.log-panel {
    background: rgba(5, 5, 5, 0.95);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.05);
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    position: relative;
}

/* 移除日志面板扫描动画以提升性能 */
.log-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    opacity: 0.6;
}

.log-panel h3 {
    color: #00ff00;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.log-entry {
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 0;
    border-left: 2px solid transparent;
    background: rgba(0, 255, 0, 0.02);
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: rgba(0, 255, 0, 0.05);
    transform: translateX(5px);
}

.log-info {
    background: rgba(0, 128, 255, 0.1);
    border-left-color: #0080ff;
    color: #40c0ff;
}

.log-success {
    background: rgba(0, 255, 128, 0.1);
    border-left-color: #00ff80;
    color: #40ff80;
}

.log-error {
    background: rgba(255, 0, 64, 0.1);
    border-left-color: #ff0040;
    color: #ff4080;
    animation: cyber-error-pulse 2s infinite;
}

@keyframes cyber-error-pulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 10px rgba(255, 0, 64, 0.5); }
}

.log-warning {
    background: rgba(255, 255, 0, 0.1);
    border-left-color: #ffff00;
    color: #ffff80;
}

.timestamp {
    color: rgba(0, 255, 0, 0.6);
    font-size: 0.8em;
    font-weight: bold;
}

/* ==================== 文件上传样式 ==================== */
.file-upload {
    margin: 20px 0;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-select-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 防止表单组在小屏溢出 */
.file-select-row > * {
    max-width: 100%;
}

.file-upload .btn {
    margin: 0;
}

.file-info-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9ff 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.file-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #166534;
    font-size: 1em;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    color: #059669;
    font-size: 0.9em;
    opacity: 0.8;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.file-input {
    display: none;
}

.file-label {
    background: linear-gradient(135deg, #87ceeb 0%, #4fc3f7 50%, #29b6f6 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.file-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.file-label:hover::before {
    left: 100%;
}

.file-label:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
}

.upload-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.upload-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* ==================== 赛博朋克搜索功能样式 ==================== */
#client-search-input {
    transition: border-color 0.3s ease;
}

#client-search-input:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

/* 搜索结果容器 */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 0;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid #00ffff;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
}

.search-result-item {
    padding: 15px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    background: rgba(0, 255, 255, 0.02);
    position: relative;
}

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
}

.search-result-item:hover::before {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.selected {
    background: rgba(255, 0, 128, 0.1);
    border-left: 3px solid #ff0080;
    color: #ff0080;
}

.search-result-item.selected::before {
    background: #ff0080;
    box-shadow: 0 0 10px #ff0080;
}

.client-plate {
    font-weight: bold;
    color: #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 1.1em;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.client-details {
    font-size: 0.9em;
    color: rgba(0, 255, 255, 0.7);
    margin-top: 2px;
    font-family: 'Orbitron', 'Courier New', monospace;
}

.install-status {
    font-size: 0.8em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 0;
    white-space: nowrap;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}

.install-status.installed {
    background: rgba(0, 255, 128, 0.2);
    color: #00ff80;
    border: 1px solid #00ff80;
    text-shadow: 0 0 5px rgba(0, 255, 128, 0.5);
}

.install-status.not-installed {
    background: rgba(255, 0, 64, 0.2);
    color: #ff0040;
    border: 1px solid #ff0040;
    text-shadow: 0 0 5px rgba(255, 0, 64, 0.5);
}

.no-results {
    padding: 20px 16px;
    color: rgba(0, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 弹窗样式 ==================== */
.time-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.time-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.time-modal h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.time-option {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-option:hover {
    border-color: #4fc3f7;
    background-color: #f8f9ff;
}

.time-option.selected {
    border-color: #4fc3f7;
    background-color: #e3f2fd;
}

.time-option-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.time-option-desc {
    color: #666;
    font-size: 0.9em;
}

.time-input-group {
    margin-top: 15px;
}

.time-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.time-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: monospace;
}

.time-input:disabled {
    background-color: #f5f5f5;
    color: #999;
}

.time-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn-cancel {
    background: linear-gradient(135deg, #90a4ae 0%, #607d8b 50%, #455a64 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(144, 164, 174, 0.3);
}

.modal-btn-cancel:hover {
    background: linear-gradient(135deg, #607d8b 0%, #455a64 50%, #263238 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(144, 164, 174, 0.5);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #87ceeb 0%, #4fc3f7 50%, #29b6f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.modal-btn-confirm:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
}

/* SNO修改弹窗特有样式 */
.sno-info-group {
    margin: 20px 0;
}

.sno-info-item {
    margin-bottom: 20px;
}

.sno-info-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.sno-info-item span {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    font-weight: bold;
    color: #3b82f6;
}

/* ==================== 登录验证遮罩 ==================== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-message {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-message h2 {
    color: #ef4444;
    margin-bottom: 15px;
}

.auth-message p {
    color: #666;
    margin-bottom: 20px;
}

/* ==================== 移动端优化 ==================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .content {
        padding: 20px 15px;
    }

    .status-card {
        padding: 15px;
    }

    .status-info {
        flex-direction: column;
        gap: 15px;
    }

    .status-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: rgba(0, 168, 204, 0.05);
        border-radius: 8px;
    }

    .status-value {
        font-size: 1.5em;
    }

    .control-panel {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .control-card {
        padding: 15px;
    }

    .button-group {
        justify-content: center;
    }

    .file-select-row {
        flex-direction: column;
        align-items: stretch;
    }

    .log-panel {
        max-height: 250px;
        font-size: 0.8em;
    }

    .time-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        padding: 20px;
    }

    /* 搜索框移动端优化 */
    #client-search-input {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .search-result-item {
        padding: 12px;
    }

    .client-plate {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* 覆盖内联最小宽度，适配小屏输入框 */
    #nav-fname,
    #nav-fcontent {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 确保搜索结果下拉不超出视口 */
    #search-results {
        left: 0;
        right: 0;
        max-width: 100vw;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .status-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .button-group {
        gap: 8px;
    }

    .time-modal-content {
        padding: 15px;
    }
}

/* ==================== 搜索结果弹窗样式 ==================== */
.search-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 2px solid #00ffff;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    color: #00ffff;
    max-width: 600px;
    width: 90%;
}

.search-modal-content .modal-header {
    border-bottom: 1px solid #00ffff;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.search-modal-content .modal-header h3 {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin: 0;
    font-family: 'Orbitron', 'Courier New', monospace;
}

.search-modal-content .modal-close {
    color: #ff0080;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-content .modal-close:hover {
    color: #ff4da6;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.search-input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-modal-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 25px;
    color: #00ffff;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: all 0.3s ease;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.2),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
}

.search-modal-input:focus {
    border-color: #ff0080;
    box-shadow:
        0 0 20px rgba(255, 0, 128, 0.3),
        inset 0 0 10px rgba(255, 0, 128, 0.1);
    background: rgba(255, 0, 128, 0.1);
}

.search-modal-input::placeholder {
    color: #87ceeb;
    opacity: 0.7;
}

.search-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 18px;
    pointer-events: none;
}

.search-status {
    margin-bottom: 20px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-tip {
    color: #87ceeb;
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 5px;
    border: 1px dashed #87ceeb;
}

.search-loading {
    color: #00ffff;
    text-align: center;
    animation: pulse 1.5s infinite;
}

.search-count {
    color: #00ffff;
    text-align: center;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.search-modal-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #00ffff;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
}

.search-modal-results.show {
    animation: slideDown 0.3s ease;
}

/* 防止重复动画 */
.search-modal-results.no-animate {
    animation: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
}

.search-modal-item.animate {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease forwards;
}

.search-modal-item.animate:nth-child(1) { animation-delay: 0.05s; }
.search-modal-item.animate:nth-child(2) { animation-delay: 0.1s; }
.search-modal-item.animate:nth-child(3) { animation-delay: 0.15s; }
.search-modal-item.animate:nth-child(4) { animation-delay: 0.2s; }
.search-modal-item.animate:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-modal-item:last-child {
    border-bottom: none;
}

.search-modal-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-left: 4px solid #ff0080;
    padding-left: 11px;
}

.search-modal-item.selected {
    background: rgba(0, 255, 255, 0.2);
    border-left: 4px solid #00ffff;
    padding-left: 11px;
}

.search-item-main {
    flex: 1;
}

.search-item-plate {
    font-size: 1.2em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    margin-bottom: 5px;
}

.search-item-details {
    font-size: 0.9em;
    color: #87ceeb;
    font-family: 'Courier New', monospace;
}

.search-item-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.search-item-install {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.search-item-install.installed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.search-item-install.not-installed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #87ceeb;
    font-style: italic;
}

/* 搜索结果滚动条样式 */
.search-modal-results::-webkit-scrollbar {
    width: 8px;
}

.search-modal-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.search-modal-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff0080);
    border-radius: 4px;
}

.search-modal-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff0080, #00ffff);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .search-modal-results {
        max-height: 300px;
    }

    .search-modal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-item-status {
        align-items: flex-start;
        flex-direction: row;
    }
}