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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    min-height: 600px;
}

.footer {
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer a {
    color: #999;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #667eea;
}

.title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.search-container {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:hover {
    border-color: #667eea;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f7fa;
}

.dropdown-item.active {
    background-color: #667eea;
    color: white;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.clear-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    cursor: pointer;
    display: none;
}

.clear-icon:hover {
    color: #ff6b6b;
}

.result-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    width: 80px;
    color: #888;
    font-size: 14px;
}

.result-value {
    color: #333;
    font-weight: 600;
    flex: 1;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #888;
    padding: 20px;
}

.loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.result-note {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

/* 表格样式 */
.result-table {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-top: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-header {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}


.table-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.table-cell {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.table-cell.header {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #e0e0e0;
}

.table-cell.header:last-child {
    border-right: none;
}

.table-cell:not(.header) {
    color: #333;
    font-weight: 500;
}

.table-cell:not(.header):first-child {
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 20px 100px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 20px 100px 20px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .table-row {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .table-cell {
        padding: 10px 0;
    }
    
    .table-cell.header {
        background-color: transparent;
        color: #667eea;
        padding: 0 0 8px 0;
        border-right: none;
        font-size: 13px;
    }
    
    .table-cell:not(.header) {
        padding: 8px 0 0 0;
        font-size: 14px;
    }
    
    .footer {
        padding: 8px;
    }
    
    .footer a {
        font-size: 11px;
        color: #bbb;
    }
}
