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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

header {
    background: #2563eb;
    color: white;
    padding: 32px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.search-section {
    padding: 32px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 20px;
    align-items: center;
}


.search-hints {
    text-align: center;
    margin-bottom: 16px;
}

.hint {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

#searchInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
    color: #374151;
}

#searchInput::placeholder {
    color: #9ca3af;
}

#searchInput:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#searchBtn {
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#searchBtn:hover {
    background: #1d4ed8;
}

.clear-btn {
    padding: 12px 24px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clear-btn:hover {
    background: #4b5563;
}


.results-section {
    padding: 32px;
    min-height: 200px;
    background: #ffffff;
}

.results-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.results-count {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.results-grid {
    display: grid;
    gap: 20px;
}

.no-data {
    text-align: center;
    color: #6b7280;
    padding: 60px 20px;
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-data p {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.user-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.user-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.user-avatar-section {
    flex-shrink: 0;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.user-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.validity-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.validity-valid {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.validity-expired {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.validity-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    border: 1px solid #fbbf24;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .container {
        margin: 0;
    }
    
    header {
        padding: 24px 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .search-section {
        padding: 24px 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .results-section {
        padding: 24px 20px;
    }
    
    .user-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 1.25rem;
    }
    
    .user-details {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 12px;
    }
}
